Skip to content
v2.276.0

DataProtectProperty Struct ​

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_wafv2 as wafv2 } from 'aws-cdk-lib';
const dataProtectProperty: wafv2.CfnWebACL.DataProtectProperty = {
  action: 'action',
  field: {
    fieldType: 'fieldType',

    // the properties below are optional
    fieldKeys: ['fieldKeys'],
  },

  // the properties below are optional
  excludeRateBasedDetails: false,
  excludeRuleMatchDetails: false,
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_wafv2 as wafv2

data_protect_property = wafv2.CfnWebACL.DataProtectProperty(
    action="action",
    field=wafv2.CfnWebACL.FieldToProtectProperty(
        field_type="fieldType",

        # the properties below are optional
        field_keys=["fieldKeys"]
    ),

    # the properties below are optional
    exclude_rate_based_details=False,
    exclude_rule_match_details=False
)
java
// 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.*;

DataProtectProperty dataProtectProperty = DataProtectProperty.builder()
        .action("action")
        .field(FieldToProtectProperty.builder()
                .fieldType("fieldType")

                // the properties below are optional
                .fieldKeys(List.of("fieldKeys"))
                .build())

        // the properties below are optional
        .excludeRateBasedDetails(false)
        .excludeRuleMatchDetails(false)
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// 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 dataProtectProperty = new DataProtectProperty {
    Action = "action",
    Field = new FieldToProtectProperty {
        FieldType = "fieldType",

        // the properties below are optional
        FieldKeys = new [] { "fieldKeys" }
    },

    // the properties below are optional
    ExcludeRateBasedDetails = false,
    ExcludeRuleMatchDetails = false
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

dataProtectProperty := &DataProtectProperty{
	Action: jsii.String("action"),
	Field: &FieldToProtectProperty{
		FieldType: jsii.String("fieldType"),

		// the properties below are optional
		FieldKeys: []*string{
			jsii.String("fieldKeys"),
		},
	},

	// the properties below are optional
	ExcludeRateBasedDetails: jsii.Boolean(false),
	ExcludeRuleMatchDetails: jsii.Boolean(false),
}

Properties ​

actionstringactionstractionStringActionstringAction*stringrequired#
excludeRateBasedDetailsoptionalboolean | IResolvableexclude_rate_based_detailsoptionaltyping.Union[bool, IResolvable]excludeRateBasedDetailsoptionalBooleanExcludeRateBasedDetailsoptionalboolExcludeRateBasedDetailsoptionalinterface{}#
excludeRuleMatchDetailsoptionalboolean | IResolvableexclude_rule_match_detailsoptionaltyping.Union[bool, IResolvable]excludeRuleMatchDetailsoptionalBooleanExcludeRuleMatchDetailsoptionalboolExcludeRuleMatchDetailsoptionalinterface{}#
Field in log to protect.