Class CfnLoggingConfigurationPropsMixin.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnLoggingConfigurationPropsMixin>
- Enclosing class:
CfnLoggingConfigurationPropsMixin
CfnLoggingConfigurationPropsMixin.-
Method Summary
Modifier and TypeMethodDescriptionbuild()create()create(CfnPropertyMixinOptions options) 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 CfnLoggingConfigurationPropsMixin.Builder create(CfnPropertyMixinOptions options) - Parameters:
options- Mixin options.- Returns:
- a new instance of
CfnLoggingConfigurationPropsMixin.Builder.
-
create
- Returns:
- a new instance of
CfnLoggingConfigurationPropsMixin.Builder.
-
logDestinationConfigs
@Stability(Stable) public CfnLoggingConfigurationPropsMixin.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:
-
loggingFilter
@Stability(Stable) public CfnLoggingConfigurationPropsMixin.Builder loggingFilter(Object 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 CfnLoggingConfigurationPropsMixin.Builder redactedFields(IResolvable redactedFields) The parts of the request that you want to keep out of the logs.For example, if you redact the
SingleHeaderfield, theHEADERfield in the logs will beREDACTEDfor all rules that use theSingleHeaderFieldToMatchsetting.If you configure data protection for the web ACL, the protection applies to the data that AWS WAF sends to the logs.
Redaction applies only to the component that's specified in the rule's
FieldToMatchsetting, so theSingleHeaderredaction doesn't apply to rules that use theHeadersFieldToMatch.You can specify only the following fields for redaction:
UriPath,QueryString,SingleHeader, andMethod. > This setting has no impact on request sampling. You can only exclude fields from request sampling by disabling sampling in the web ACL visibility configuration or by configuring data protection for the web ACL.- 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 CfnLoggingConfigurationPropsMixin.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
SingleHeaderfield, theHEADERfield in the logs will beREDACTEDfor all rules that use theSingleHeaderFieldToMatchsetting.If you configure data protection for the web ACL, the protection applies to the data that AWS WAF sends to the logs.
Redaction applies only to the component that's specified in the rule's
FieldToMatchsetting, so theSingleHeaderredaction doesn't apply to rules that use theHeadersFieldToMatch.You can specify only the following fields for redaction:
UriPath,QueryString,SingleHeader, andMethod. > This setting has no impact on request sampling. You can only exclude fields from request sampling by disabling sampling in the web ACL visibility configuration or by configuring data protection for the web ACL.- Parameters:
redactedFields- The parts of the request that you want to keep out of the logs. 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:
-
build
- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnLoggingConfigurationPropsMixin>- Returns:
- a newly built instance of
CfnLoggingConfigurationPropsMixin.
-