Class: AWSCDK::WAFRegional::CfnSizeConstraintSetProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::WAFRegional::CfnSizeConstraintSetProps
- Defined in:
- waf_regional/cfn_size_constraint_set_props.rb
Overview
Properties for defining a CfnSizeConstraintSet.
Instance Attribute Summary collapse
-
#name ⇒ String
readonly
The name, if any, of the
SizeConstraintSet. -
#size_constraints ⇒ AWSCDK::IResolvable, ...
readonly
The size constraint and the part of the web request to check.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(name:, size_constraints: nil) ⇒ CfnSizeConstraintSetProps
constructor
A new instance of CfnSizeConstraintSetProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(name:, size_constraints: nil) ⇒ CfnSizeConstraintSetProps
Returns a new instance of CfnSizeConstraintSetProps.
11 12 13 14 15 16 |
# File 'waf_regional/cfn_size_constraint_set_props.rb', line 11 def initialize(name:, size_constraints: nil) @name = name Jsii::Type.check_type(@name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name") @size_constraints = size_constraints Jsii::Type.check_type(@size_constraints, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3Nfd2FmcmVnaW9uYWwuQ2ZuU2l6ZUNvbnN0cmFpbnRTZXQuU2l6ZUNvbnN0cmFpbnRQcm9wZXJ0eSJ9XX19LCJraW5kIjoiYXJyYXkifX1dfX0=")), "sizeConstraints") unless @size_constraints.nil? end |
Instance Attribute Details
#name ⇒ String (readonly)
The name, if any, of the SizeConstraintSet .
22 23 24 |
# File 'waf_regional/cfn_size_constraint_set_props.rb', line 22 def name @name end |
#size_constraints ⇒ AWSCDK::IResolvable, ... (readonly)
The size constraint and the part of the web request to check.
27 28 29 |
# File 'waf_regional/cfn_size_constraint_set_props.rb', line 27 def size_constraints @size_constraints end |
Class Method Details
.jsii_properties ⇒ Object
29 30 31 32 33 34 |
# File 'waf_regional/cfn_size_constraint_set_props.rb', line 29 def self.jsii_properties { :name => "name", :size_constraints => "sizeConstraints", } end |
Instance Method Details
#to_jsii ⇒ Object
36 37 38 39 40 41 42 43 |
# File 'waf_regional/cfn_size_constraint_set_props.rb', line 36 def to_jsii result = {} result.merge!({ "name" => @name, "sizeConstraints" => @size_constraints, }) result.compact end |