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.The owner of the logging configuration, which must be set toCUSTOMER
for the configurations that you manage.The owner of the logging configuration, which must be set toCUSTOMER
for the configurations that you manage.Used to distinguish between various logging options.Used to distinguish between various logging options.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
.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.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.
- 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
.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.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.
- 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
.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.
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:
-
logType
Used to distinguish between various logging options. Currently, there is one option.
Default:
WAF_LOGS
- Parameters:
logType
- Used to distinguish between various logging options. Currently, there is one option.Default:
WAF_LOGS
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
logType
Used to distinguish between various logging options. Currently, there is one option.
Default:
WAF_LOGS
- Parameters:
logType
- Used to distinguish between various logging options. Currently, there is one option.Default:
WAF_LOGS
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
logScope
The owner of the logging configuration, which must be set to
CUSTOMER
for the configurations that you manage.The log scope
SECURITY_LAKE
indicates a configuration that is managed through Amazon Security Lake. You can use Security Lake to collect log and event data from various sources for normalization, analysis, and management. For information, see Collecting data from Amazon Web Services services in the Amazon Security Lake user guide.Default:
CUSTOMER
- Parameters:
logScope
- The owner of the logging configuration, which must be set toCUSTOMER
for the configurations that you manage.The log scope
SECURITY_LAKE
indicates a configuration that is managed through Amazon Security Lake. You can use Security Lake to collect log and event data from various sources for normalization, analysis, and management. For information, see Collecting data from Amazon Web Services services in the Amazon Security Lake user guide.Default:
CUSTOMER
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
logScope
The owner of the logging configuration, which must be set to
CUSTOMER
for the configurations that you manage.The log scope
SECURITY_LAKE
indicates a configuration that is managed through Amazon Security Lake. You can use Security Lake to collect log and event data from various sources for normalization, analysis, and management. For information, see Collecting data from Amazon Web Services services in the Amazon Security Lake user guide.Default:
CUSTOMER
- Parameters:
logScope
- The owner of the logging configuration, which must be set toCUSTOMER
for the configurations that you manage.The log scope
SECURITY_LAKE
indicates a configuration that is managed through Amazon Security Lake. You can use Security Lake to collect log and event data from various sources for normalization, analysis, and management. For information, see Collecting data from Amazon Web Services services in the Amazon Security Lake user guide.Default:
CUSTOMER
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-