Class: Aws::Route53::Types::GeoLocation
- Inherits:
-
Struct
- Object
- Struct
- Aws::Route53::Types::GeoLocation
- Includes:
- Structure
- Defined in:
- lib/aws-sdk-route53/types.rb
Overview
A complex type that contains information about a geographic location.
Constant Summary collapse
- SENSITIVE =
[]
Instance Attribute Summary collapse
-
#continent_code ⇒ String
The two-letter code for the continent.
-
#country_code ⇒ String
For geolocation resource record sets, the two-letter code for a country.
-
#subdivision_code ⇒ String
For geolocation resource record sets, the two-letter code for a state of the United States.
Instance Attribute Details
#continent_code ⇒ String
The two-letter code for the continent.
Amazon 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.
2376 2377 2378 2379 2380 2381 2382 |
# File 'lib/aws-sdk-route53/types.rb', line 2376 class GeoLocation < Struct.new( :continent_code, :country_code, :subdivision_code) SENSITIVE = [] include Aws::Structure end |
#country_code ⇒ String
For geolocation resource record sets, the two-letter code for a country.
Amazon Route 53 uses the two-letter country codes that are specified in [ISO standard 3166-1 alpha-2].
Route 53 also supports the country code UA for Ukraine.
2376 2377 2378 2379 2380 2381 2382 |
# File 'lib/aws-sdk-route53/types.rb', line 2376 class GeoLocation < Struct.new( :continent_code, :country_code, :subdivision_code) SENSITIVE = [] include Aws::Structure end |
#subdivision_code ⇒ String
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][1
-
on
the United States Postal Service website.
If you specify ‘subdivisioncode`, you must also specify `US` for `CountryCode`.
2376 2377 2378 2379 2380 2381 2382 |
# File 'lib/aws-sdk-route53/types.rb', line 2376 class GeoLocation < Struct.new( :continent_code, :country_code, :subdivision_code) SENSITIVE = [] include Aws::Structure end |