Class CfnLoggingConfigurationMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnLoggingConfigurationMixinProps>
- Enclosing interface:
CfnLoggingConfigurationMixinProps
CfnLoggingConfigurationMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.logDestinationConfigs(List<? extends Object> logDestinationConfigs) Sets the value ofCfnLoggingConfigurationMixinProps.getLogDestinationConfigs()loggingFilter(Object loggingFilter) Sets the value ofCfnLoggingConfigurationMixinProps.getLoggingFilter()redactedFields(List<? extends Object> redactedFields) Sets the value ofCfnLoggingConfigurationMixinProps.getRedactedFields()redactedFields(IResolvable redactedFields) Sets the value ofCfnLoggingConfigurationMixinProps.getRedactedFields()resourceArn(String resourceArn) Sets the value ofCfnLoggingConfigurationMixinProps.getResourceArn()resourceArn(IWebACLRef resourceArn) Sets the value ofCfnLoggingConfigurationMixinProps.getResourceArn()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
logDestinationConfigs
@Stability(Stable) public CfnLoggingConfigurationMixinProps.Builder logDestinationConfigs(List<? extends Object> logDestinationConfigs) Sets the value ofCfnLoggingConfigurationMixinProps.getLogDestinationConfigs()- Parameters:
logDestinationConfigs- The logging destination configuration that you want to associate with the web ACL.You can associate one logging destination to a web ACL.
- Returns:
this
-
loggingFilter
@Stability(Stable) public CfnLoggingConfigurationMixinProps.Builder loggingFilter(Object loggingFilter) Sets the value ofCfnLoggingConfigurationMixinProps.getLoggingFilter()- Parameters:
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.- Returns:
this
-
redactedFields
@Stability(Stable) public CfnLoggingConfigurationMixinProps.Builder redactedFields(IResolvable redactedFields) Sets the value ofCfnLoggingConfigurationMixinProps.getRedactedFields()- Parameters:
redactedFields- The parts of the request that you want to keep out of the logs. For example, if you redact theSingleHeaderfield, 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.- Returns:
this
-
redactedFields
@Stability(Stable) public CfnLoggingConfigurationMixinProps.Builder redactedFields(List<? extends Object> redactedFields) Sets the value ofCfnLoggingConfigurationMixinProps.getRedactedFields()- Parameters:
redactedFields- The parts of the request that you want to keep out of the logs. For example, if you redact theSingleHeaderfield, 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.- Returns:
this
-
resourceArn
Sets the value ofCfnLoggingConfigurationMixinProps.getResourceArn()- Parameters:
resourceArn- The Amazon Resource Name (ARN) of the web ACL that you want to associate withLogDestinationConfigs.- Returns:
this
-
resourceArn
@Stability(Stable) public CfnLoggingConfigurationMixinProps.Builder resourceArn(IWebACLRef resourceArn) Sets the value ofCfnLoggingConfigurationMixinProps.getResourceArn()- Parameters:
resourceArn- The Amazon Resource Name (ARN) of the web ACL that you want to associate withLogDestinationConfigs.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnLoggingConfigurationMixinProps>- Returns:
- a new instance of
CfnLoggingConfigurationMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-