Class CfnLoggingConfigurationProps
Properties for defining a CfnLoggingConfiguration
.
Inheritance
Implements
Namespace: Amazon.CDK.AWS.WAFv2
Assembly: Amazon.CDK.AWS.WAFv2.dll
Syntax (csharp)
public class CfnLoggingConfigurationProps : Object, ICfnLoggingConfigurationProps
Syntax (vb)
Public Class CfnLoggingConfigurationProps
Inherits Object
Implements ICfnLoggingConfigurationProps
Remarks
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.WAFv2;
var jsonBody;
var loggingFilter;
var method;
var queryString;
var singleHeader;
var uriPath;
var cfnLoggingConfigurationProps = new CfnLoggingConfigurationProps {
LogDestinationConfigs = new [] { "logDestinationConfigs" },
ResourceArn = "resourceArn",
// the properties below are optional
LoggingFilter = loggingFilter,
RedactedFields = new [] { new FieldToMatchProperty {
JsonBody = jsonBody,
Method = method,
QueryString = queryString,
SingleHeader = singleHeader,
UriPath = uriPath
} }
};
Synopsis
Constructors
CfnLoggingConfigurationProps() |
Properties
LogDestinationConfigs | The logging destination configuration that you want to associate with the web ACL. |
LoggingFilter | Filtering that specifies which web requests are kept in the logs and which are dropped. |
RedactedFields | The parts of the request that you want to keep out of the logs. |
ResourceArn | The Amazon Resource Name (ARN) of the web ACL that you want to associate with |
Constructors
CfnLoggingConfigurationProps()
public CfnLoggingConfigurationProps()
Properties
LogDestinationConfigs
The logging destination configuration that you want to associate with the web ACL.
public string[] LogDestinationConfigs { get; set; }
Property Value
System.String[]
Remarks
You can associate one logging destination to a web ACL.
LoggingFilter
Filtering that specifies which web requests are kept in the logs and which are dropped.
public object LoggingFilter { get; set; }
Property Value
System.Object
Remarks
You can filter on the rule action and on the web request labels that were applied by matching rules during web ACL evaluation.
RedactedFields
The parts of the request that you want to keep out of the logs.
public object RedactedFields { get; set; }
Property Value
System.Object
Remarks
For example, if you redact the SingleHeader
field, the HEADER
field in the logs will be REDACTED
for all rules that use the SingleHeader
FieldToMatch
setting.
Redaction applies only to the component that's specified in the rule's FieldToMatch
setting, so the SingleHeader
redaction doesn't apply to rules that use the Headers
FieldToMatch
.
You can specify only the following fields for redaction: UriPath
, QueryString
, SingleHeader
, and Method
.
ResourceArn
The Amazon Resource Name (ARN) of the web ACL that you want to associate with LogDestinationConfigs
.
public string ResourceArn { get; set; }
Property Value
System.String