Interface CfnLoggingConfigurationProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnLoggingConfigurationProps.Jsii$Proxy
CfnLoggingConfiguration
.
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import software.amazon.awscdk.services.wafv2.*; Object jsonBody; Object loggingFilter; Object method; Object queryString; Object singleHeader; Object uriPath; CfnLoggingConfigurationProps cfnLoggingConfigurationProps = CfnLoggingConfigurationProps.builder() .logDestinationConfigs(List.of("logDestinationConfigs")) .resourceArn("resourceArn") // the properties below are optional .loggingFilter(loggingFilter) .redactedFields(List.of(FieldToMatchProperty.builder() .jsonBody(jsonBody) .method(method) .queryString(queryString) .singleHeader(singleHeader) .uriPath(uriPath) .build())) .build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final class
A builder forCfnLoggingConfigurationProps
static final class
An implementation forCfnLoggingConfigurationProps
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
The logging destination configuration that you want to associate with the web ACL.default Object
Filtering that specifies which web requests are kept in the logs and which are dropped.default Object
The parts of the request that you want to keep out of the logs.The Amazon Resource Name (ARN) of the web ACL that you want to associate withLogDestinationConfigs
.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getLogDestinationConfigs
The logging destination configuration that you want to associate with the web ACL.You can associate one logging destination to a web ACL.
- See Also:
-
getResourceArn
The Amazon Resource Name (ARN) of the web ACL that you want to associate withLogDestinationConfigs
.- See Also:
-
getLoggingFilter
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.
- See Also:
-
getRedactedFields
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.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
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. 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.- See Also:
-
builder
-