Class: AWSCDK::WAFRegional::CfnGeoMatchSetProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::WAFRegional::CfnGeoMatchSetProps
- Defined in:
- waf_regional/cfn_geo_match_set_props.rb
Overview
Properties for defining a CfnGeoMatchSet.
Instance Attribute Summary collapse
-
#geo_match_constraints ⇒ AWSCDK::IResolvable, ...
readonly
An array of
GeoMatchConstraintobjects, which contain the country that you want AWS WAF to search for. -
#name ⇒ String
readonly
A friendly name or description of the
GeoMatchSet.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(name:, geo_match_constraints: nil) ⇒ CfnGeoMatchSetProps
constructor
A new instance of CfnGeoMatchSetProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(name:, geo_match_constraints: nil) ⇒ CfnGeoMatchSetProps
Returns a new instance of CfnGeoMatchSetProps.
11 12 13 14 15 16 |
# File 'waf_regional/cfn_geo_match_set_props.rb', line 11 def initialize(name:, geo_match_constraints: nil) @name = name Jsii::Type.check_type(@name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name") @geo_match_constraints = geo_match_constraints Jsii::Type.check_type(@geo_match_constraints, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3Nfd2FmcmVnaW9uYWwuQ2ZuR2VvTWF0Y2hTZXQuR2VvTWF0Y2hDb25zdHJhaW50UHJvcGVydHkifV19fSwia2luZCI6ImFycmF5In19XX19")), "geoMatchConstraints") unless @geo_match_constraints.nil? end |
Instance Attribute Details
#geo_match_constraints ⇒ AWSCDK::IResolvable, ... (readonly)
An array of GeoMatchConstraint objects, which contain the country that you want AWS WAF to search for.
29 30 31 |
# File 'waf_regional/cfn_geo_match_set_props.rb', line 29 def geo_match_constraints @geo_match_constraints end |
#name ⇒ String (readonly)
A friendly name or description of the GeoMatchSet .
You can't change the name of an GeoMatchSet after you create it.
24 25 26 |
# File 'waf_regional/cfn_geo_match_set_props.rb', line 24 def name @name end |
Class Method Details
.jsii_properties ⇒ Object
31 32 33 34 35 36 |
# File 'waf_regional/cfn_geo_match_set_props.rb', line 31 def self.jsii_properties { :name => "name", :geo_match_constraints => "geoMatchConstraints", } end |
Instance Method Details
#to_jsii ⇒ Object
38 39 40 41 42 43 44 45 |
# File 'waf_regional/cfn_geo_match_set_props.rb', line 38 def to_jsii result = {} result.merge!({ "name" => @name, "geoMatchConstraints" => @geo_match_constraints, }) result.compact end |