Class: AWSCDK::WAFRegional::CfnGeoMatchSet::GeoMatchConstraintProperty

Inherits:
Jsii::Struct
  • Object
show all
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

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(type:, value:) ⇒ GeoMatchConstraintProperty

Returns a new instance of GeoMatchConstraintProperty.

Parameters:

  • type (String)

    The type of geographical area you want AWS WAF to search for.

  • value (String)

    The country that you want AWS WAF to search for.



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

#typeString (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

#valueString (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_propertiesObject



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_jsiiObject



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