Class: AWSCDK::WAFv2::CfnWebACL::FieldToProtectProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::WAFv2::CfnWebACL::FieldToProtectProperty
- 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
-
#field_keys ⇒ Array<String>?
readonly
Specifies the keys to protect for the specified field type.
-
#field_type ⇒ String
readonly
Specifies the web request component type to protect.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(field_type:, field_keys: nil) ⇒ FieldToProtectProperty
constructor
A new instance of FieldToProtectProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(field_type:, field_keys: nil) ⇒ FieldToProtectProperty
Returns a new instance of FieldToProtectProperty.
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_keys ⇒ Array<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_type ⇒ String (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_properties ⇒ Object
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_jsii ⇒ Object
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 |