Class: AWSCDK::WAFv2::CfnWebACL::FieldToProtectProperty

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

Overview

Specifies a field type and keys to protect in stored web request data.

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(field_type:, field_keys: nil) ⇒ FieldToProtectProperty

Returns a new instance of FieldToProtectProperty.

Parameters:

  • field_type (String)

    Specifies the web request component type to protect.

  • field_keys (Array<String>, nil) (defaults to: nil)

    Specifies the keys to protect for the specified field type.



2661
2662
2663
2664
2665
2666
# File 'wa_fv2/cfn_web_acl.rb', line 2661

def initialize(field_type:, field_keys: nil)
  @field_type = field_type
  Jsii::Type.check_type(@field_type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "fieldType")
  @field_keys = field_keys
  Jsii::Type.check_type(@field_keys, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "fieldKeys") unless @field_keys.nil?
end

Instance Attribute Details

#field_keysArray<String>? (readonly)

Specifies the keys to protect for the specified field type.

If you don't specify any key, then all keys for the field type are protected.



2679
2680
2681
# File 'wa_fv2/cfn_web_acl.rb', line 2679

def field_keys
  @field_keys
end

#field_typeString (readonly)

Specifies the web request component type to protect.



2672
2673
2674
# File 'wa_fv2/cfn_web_acl.rb', line 2672

def field_type
  @field_type
end

Class Method Details

.jsii_propertiesObject



2681
2682
2683
2684
2685
2686
# File 'wa_fv2/cfn_web_acl.rb', line 2681

def self.jsii_properties
  {
    :field_type => "fieldType",
    :field_keys => "fieldKeys",
  }
end

Instance Method Details

#to_jsiiObject



2688
2689
2690
2691
2692
2693
2694
2695
# File 'wa_fv2/cfn_web_acl.rb', line 2688

def to_jsii
  result = {}
  result.merge!({
    "fieldType" => @field_type,
    "fieldKeys" => @field_keys,
  })
  result.compact
end