@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:42.680Z") @Stability(value=Stable) public interface CfnLoggingConfigurationProps extends software.amazon.jsii.JsiiSerializable
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();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnLoggingConfigurationProps.Builder
A builder for
CfnLoggingConfigurationProps |
static class |
CfnLoggingConfigurationProps.Jsii$Proxy
An implementation for
CfnLoggingConfigurationProps |
| Modifier and Type | Method and Description |
|---|---|
static CfnLoggingConfigurationProps.Builder |
builder() |
List<String> |
getLogDestinationConfigs()
The logging destination configuration that you want to associate with the web ACL.
|
default Object |
getLoggingFilter()
Filtering that specifies which web requests are kept in the logs and which are dropped.
|
default Object |
getRedactedFields()
The parts of the request that you want to keep out of the logs.
|
String |
getResourceArn()
The Amazon Resource Name (ARN) of the web ACL that you want to associate with `LogDestinationConfigs` .
|
@Stability(value=Stable) @NotNull List<String> getLogDestinationConfigs()
You can associate one logging destination to a web ACL.
@Stability(value=Stable) @NotNull String getResourceArn()
@Stability(value=Stable) @Nullable default Object getLoggingFilter()
You can filter on the rule action and on the web request labels that were applied by matching rules during web ACL evaluation.
@Stability(value=Stable) @Nullable default Object getRedactedFields()
For example, if you redact the SingleHeader field, the HEADER field in the logs will be xxx .
You can specify only the following fields for redaction:
UriPath,QueryString,SingleHeader,Method, andJsonBody.
@Stability(value=Stable) static CfnLoggingConfigurationProps.Builder builder()
Copyright © 2022. All rights reserved.