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
- Parameters:
scope
-- scope in which this resource is defined.
id
-- scoped id of the resource.
- 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
-
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
-
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
-
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
.- Parameters:
redactedFields
- The parts of the request that you want to keep out of the logs. This parameter is required.- Returns:
this
-
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
.- Parameters:
redactedFields
- The parts of the request that you want to keep out of the logs. This parameter is required.- Returns:
this
-
build
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnLoggingConfiguration>
- Returns:
- a newly built instance of
CfnLoggingConfiguration
.
-