Interface LoggingConfiguration.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<LoggingConfiguration.Builder,
,LoggingConfiguration> SdkBuilder<LoggingConfiguration.Builder,
,LoggingConfiguration> SdkPojo
- Enclosing class:
LoggingConfiguration
-
Method Summary
Modifier and TypeMethodDescriptionlogDestinationConfigs
(String... logDestinationConfigs) The logging destination configuration that you want to associate with the web ACL.logDestinationConfigs
(Collection<String> logDestinationConfigs) The logging destination configuration that you want to associate with the web ACL.default LoggingConfiguration.Builder
loggingFilter
(Consumer<LoggingFilter.Builder> loggingFilter) Filtering that specifies which web requests are kept in the logs and which are dropped.loggingFilter
(LoggingFilter loggingFilter) Filtering that specifies which web requests are kept in the logs and which are dropped.managedByFirewallManager
(Boolean managedByFirewallManager) Indicates whether the logging configuration was created by Firewall Manager, as part of an WAF policy configuration.redactedFields
(Collection<FieldToMatch> redactedFields) The parts of the request that you want to keep out of the logs.redactedFields
(Consumer<FieldToMatch.Builder>... redactedFields) The parts of the request that you want to keep out of the logs.redactedFields
(FieldToMatch... 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
.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
resourceArn
The Amazon Resource Name (ARN) of the web ACL that you want to associate with
LogDestinationConfigs
.- Parameters:
resourceArn
- The Amazon Resource Name (ARN) of the web ACL that you want to associate withLogDestinationConfigs
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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.You can associate one logging destination to a web ACL.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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.You can associate one logging destination to a web ACL.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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.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
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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.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
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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
.FieldToMatch.Builder
avoiding the need to create one manually viaFieldToMatch.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toredactedFields(List<FieldToMatch>)
.- Parameters:
redactedFields
- a consumer that will call methods onFieldToMatch.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
managedByFirewallManager
Indicates whether the logging configuration was created by Firewall Manager, as part of an WAF policy configuration. If true, only Firewall Manager can modify or delete the configuration.
- Parameters:
managedByFirewallManager
- Indicates whether the logging configuration was created by Firewall Manager, as part of an WAF policy configuration. If true, only Firewall Manager can modify or delete the configuration.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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. You can filter on the rule action and on the web request labels that were applied by matching rules during web ACL evaluation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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.
This is a convenience method that creates an instance of theLoggingFilter.Builder
avoiding the need to create one manually viaLoggingFilter.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tologgingFilter(LoggingFilter)
.- Parameters:
loggingFilter
- a consumer that will call methods onLoggingFilter.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-