Class: AWSCDK::WAFv2::CfnWebACL::DataProtectionConfigProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
wa_fv2/cfn_web_acl.rb

Overview

Specifies data protection to apply to the web request data for the web ACL.

This is a web ACL level data protection option.

The data protection that you configure for the web ACL alters the data that's available for any other data collection activity, including your AWS WAF logging destinations, web ACL request sampling, and Amazon Security Lake data collection and management. Your other option for data protection is in the logging configuration, which only affects logging.

This is part of the data protection configuration for a web ACL.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(data_protections:) ⇒ DataProtectionConfigProperty

Returns a new instance of DataProtectionConfigProperty.

Parameters:



2260
2261
2262
2263
# File 'wa_fv2/cfn_web_acl.rb', line 2260

def initialize(data_protections:)
  @data_protections = data_protections
  Jsii::Type.check_type(@data_protections, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3Nfd2FmdjIuQ2ZuV2ViQUNMLkRhdGFQcm90ZWN0UHJvcGVydHkifV19fSwia2luZCI6ImFycmF5In19XX19")), "dataProtections")
end

Instance Attribute Details

#data_protectionsAWSCDK::IResolvable, Array<AWSCDK::IResolvable, AWSCDK::WAFv2::CfnWebACL::DataProtectProperty> (readonly)

An array of data protection configurations for specific web request field types.

This is defined for each web ACL. AWS WAF applies the specified protection to all web requests that the web ACL inspects.



2271
2272
2273
# File 'wa_fv2/cfn_web_acl.rb', line 2271

def data_protections
  @data_protections
end

Class Method Details

.jsii_propertiesObject



2273
2274
2275
2276
2277
# File 'wa_fv2/cfn_web_acl.rb', line 2273

def self.jsii_properties
  {
    :data_protections => "dataProtections",
  }
end

Instance Method Details

#to_jsiiObject



2279
2280
2281
2282
2283
2284
2285
# File 'wa_fv2/cfn_web_acl.rb', line 2279

def to_jsii
  result = {}
  result.merge!({
    "dataProtections" => @data_protections,
  })
  result.compact
end