Class: AWSCDK::Route53::CfnRecordSetGroup::GeoLocationProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Route53::CfnRecordSetGroup::GeoLocationProperty
- Defined in:
- route53/cfn_record_set_group.rb
Overview
A complex type that contains information about a geographic location.
Instance Attribute Summary collapse
-
#continent_code ⇒ String?
readonly
For geolocation resource record sets, a two-letter abbreviation that identifies a continent.
-
#country_code ⇒ String?
readonly
For geolocation resource record sets, the two-letter code for a country.
-
#subdivision_code ⇒ String?
readonly
For geolocation resource record sets, the two-letter code for a state of the United States.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(continent_code: nil, country_code: nil, subdivision_code: nil) ⇒ GeoLocationProperty
constructor
A new instance of GeoLocationProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(continent_code: nil, country_code: nil, subdivision_code: nil) ⇒ GeoLocationProperty
Returns a new instance of GeoLocationProperty.
778 779 780 781 782 783 784 785 |
# File 'route53/cfn_record_set_group.rb', line 778 def initialize(continent_code: nil, country_code: nil, subdivision_code: nil) @continent_code = continent_code Jsii::Type.check_type(@continent_code, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "continentCode") unless @continent_code.nil? @country_code = country_code Jsii::Type.check_type(@country_code, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "countryCode") unless @country_code.nil? @subdivision_code = subdivision_code Jsii::Type.check_type(@subdivision_code, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "subdivisionCode") unless @subdivision_code.nil? end |
Instance Attribute Details
#continent_code ⇒ String? (readonly)
For geolocation resource record sets, a two-letter abbreviation that identifies a continent. Route 53 supports the following continent codes:.
- AF : Africa
- AN : Antarctica
- AS : Asia
- EU : Europe
- OC : Oceania
- NA : North America
- SA : South America
Constraint: Specifying ContinentCode with either CountryCode or SubdivisionCode returns an InvalidInput error.
801 802 803 |
# File 'route53/cfn_record_set_group.rb', line 801 def continent_code @continent_code end |
#country_code ⇒ String? (readonly)
For geolocation resource record sets, the two-letter code for a country.
Route 53 uses the two-letter country codes that are specified in ISO standard 3166-1 alpha-2 .
808 809 810 |
# File 'route53/cfn_record_set_group.rb', line 808 def country_code @country_code end |
#subdivision_code ⇒ String? (readonly)
For geolocation resource record sets, the two-letter code for a state of the United States.
Route 53 doesn't support any other values for SubdivisionCode . For a list of state abbreviations, see Appendix B: Two–Letter State and Possession Abbreviations on the United States Postal Service website.
If you specify subdivisioncode , you must also specify US for CountryCode .
817 818 819 |
# File 'route53/cfn_record_set_group.rb', line 817 def subdivision_code @subdivision_code end |
Class Method Details
.jsii_properties ⇒ Object
819 820 821 822 823 824 825 |
# File 'route53/cfn_record_set_group.rb', line 819 def self.jsii_properties { :continent_code => "continentCode", :country_code => "countryCode", :subdivision_code => "subdivisionCode", } end |
Instance Method Details
#to_jsii ⇒ Object
827 828 829 830 831 832 833 834 835 |
# File 'route53/cfn_record_set_group.rb', line 827 def to_jsii result = {} result.merge!({ "continentCode" => @continent_code, "countryCode" => @country_code, "subdivisionCode" => @subdivision_code, }) result.compact end |