Class: AWSCDK::WAFRegional::CfnGeoMatchSet::GeoMatchConstraintProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::WAFRegional::CfnGeoMatchSet::GeoMatchConstraintProperty
- Defined in:
- waf_regional/cfn_geo_match_set.rb
Overview
AWS WAF Classic support will end on September 30, 2025.
This is AWS WAF Classic documentation. For more information, see AWS WAF Classic in the developer guide.
For the latest version of AWS WAF , use the AWS WAF V2 API and see the AWS WAF Developer Guide . With the latest version, AWS WAF has a single set of endpoints for regional and global use.
The country from which web requests originate that you want AWS WAF to search for.
Instance Attribute Summary collapse
-
#type ⇒ String
readonly
The type of geographical area you want AWS WAF to search for.
-
#value ⇒ String
readonly
The country that you want AWS WAF to search for.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(type:, value:) ⇒ GeoMatchConstraintProperty
constructor
A new instance of GeoMatchConstraintProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(type:, value:) ⇒ GeoMatchConstraintProperty
Returns a new instance of GeoMatchConstraintProperty.
531 532 533 534 535 536 |
# File 'waf_regional/cfn_geo_match_set.rb', line 531 def initialize(type:, value:) @type = type Jsii::Type.check_type(@type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "type") @value = value Jsii::Type.check_type(@value, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "value") end |
Instance Attribute Details
#type ⇒ String (readonly)
The type of geographical area you want AWS WAF to search for.
Currently Country is the only valid value.
544 545 546 |
# File 'waf_regional/cfn_geo_match_set.rb', line 544 def type @type end |
#value ⇒ String (readonly)
The country that you want AWS WAF to search for.
549 550 551 |
# File 'waf_regional/cfn_geo_match_set.rb', line 549 def value @value end |
Class Method Details
.jsii_properties ⇒ Object
551 552 553 554 555 556 |
# File 'waf_regional/cfn_geo_match_set.rb', line 551 def self.jsii_properties { :type => "type", :value => "value", } end |
Instance Method Details
#to_jsii ⇒ Object
558 559 560 561 562 563 564 565 |
# File 'waf_regional/cfn_geo_match_set.rb', line 558 def to_jsii result = {} result.merge!({ "type" => @type, "value" => @value, }) result.compact end |