Class CfnLoggingConfiguration.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnLoggingConfiguration>
- Enclosing class:
CfnLoggingConfiguration
CfnLoggingConfiguration
.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
logDestinationConfigs
(List<String> logDestinationConfigs) The logging destination configuration that you want to associate with the web ACL.loggingFilter
(Object loggingFilter) Filtering that specifies which web requests are kept in the logs and which are dropped.redactedFields
(List<? extends Object> redactedFields) The parts of the request that you want to keep out of the logs.redactedFields
(IResolvable redactedFields) The parts of the request that you want to keep out of the logs.resourceArn
(String resourceArn) The Amazon Resource Name (ARN) of the web ACL that you want to associate withLogDestinationConfigs
.
-
Method Details
-
create
@Stability(Stable) public static CfnLoggingConfiguration.Builder create(software.constructs.Construct scope, String id) - Parameters:
scope
- Scope in which this resource is defined. This parameter is required.id
- Construct identifier for this resource (unique in its scope). This parameter is required.- Returns:
- a new instance of
CfnLoggingConfiguration.Builder
.
-
logDestinationConfigs
@Stability(Stable) public CfnLoggingConfiguration.Builder logDestinationConfigs(List<String> logDestinationConfigs) The logging destination configuration that you want to associate with the web ACL.You can associate one logging destination to a web ACL.
- Parameters:
logDestinationConfigs
- The logging destination configuration that you want to associate with the web ACL. This parameter is required.- Returns:
this
- See Also:
-
resourceArn
The Amazon Resource Name (ARN) of the web ACL that you want to associate withLogDestinationConfigs
.- Parameters:
resourceArn
- The Amazon Resource Name (ARN) of the web ACL that you want to associate withLogDestinationConfigs
. This parameter is required.- Returns:
this
- See Also:
-
loggingFilter
Filtering that specifies which web requests are kept in the logs and which are dropped.You can filter on the rule action and on the web request labels that were applied by matching rules during web ACL evaluation.
- Parameters:
loggingFilter
- Filtering that specifies which web requests are kept in the logs and which are dropped. This parameter is required.- Returns:
this
- See Also:
-
redactedFields
@Stability(Stable) public CfnLoggingConfiguration.Builder redactedFields(IResolvable redactedFields) The parts of the request that you want to keep out of the logs.For example, if you redact the
SingleHeader
field, theHEADER
field in the logs will beREDACTED
for all rules that use theSingleHeader
FieldToMatch
setting.Redaction applies only to the component that's specified in the rule's
FieldToMatch
setting, so theSingleHeader
redaction doesn't apply to rules that use theHeaders
FieldToMatch
.You can specify only the following fields for redaction:
UriPath
,QueryString
,SingleHeader
, andMethod
. > This setting has no impact on request sampling. With request sampling, the only way to exclude fields is by disabling sampling in the web ACL visibility configuration.- Parameters:
redactedFields
- The parts of the request that you want to keep out of the logs. This parameter is required.- Returns:
this
- See Also:
-
redactedFields
@Stability(Stable) public CfnLoggingConfiguration.Builder redactedFields(List<? extends Object> redactedFields) The parts of the request that you want to keep out of the logs.For example, if you redact the
SingleHeader
field, theHEADER
field in the logs will beREDACTED
for all rules that use theSingleHeader
FieldToMatch
setting.Redaction applies only to the component that's specified in the rule's
FieldToMatch
setting, so theSingleHeader
redaction doesn't apply to rules that use theHeaders
FieldToMatch
.You can specify only the following fields for redaction:
UriPath
,QueryString
,SingleHeader
, andMethod
. > This setting has no impact on request sampling. With request sampling, the only way to exclude fields is by disabling sampling in the web ACL visibility configuration.- Parameters:
redactedFields
- The parts of the request that you want to keep out of the logs. This parameter is required.- Returns:
this
- See Also:
-
build
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnLoggingConfiguration>
- Returns:
- a newly built instance of
CfnLoggingConfiguration
.
-