Class: Aws::Route53::Types::GeoLocation

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-route53/lib/aws-sdk-route53/types.rb

Overview

Note:

When making an API call, you may pass GeoLocation data as a hash:

{
  continent_code: "GeoLocationContinentCode",
  country_code: "GeoLocationCountryCode",
  subdivision_code: "GeoLocationSubdivisionCode",
}

A complex type that contains information about a geographic location.

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#continent_codeString

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.

Returns:

  • (String)


2436
2437
2438
2439
2440
2441
2442
# File 'gems/aws-sdk-route53/lib/aws-sdk-route53/types.rb', line 2436

class GeoLocation < Struct.new(
  :continent_code,
  :country_code,
  :subdivision_code)
  SENSITIVE = []
  include Aws::Structure
end

#country_codeString

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.

Returns:

  • (String)


2436
2437
2438
2439
2440
2441
2442
# File 'gems/aws-sdk-route53/lib/aws-sdk-route53/types.rb', line 2436

class GeoLocation < Struct.new(
  :continent_code,
  :country_code,
  :subdivision_code)
  SENSITIVE = []
  include Aws::Structure
end

#subdivision_codeString

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.

Returns:

  • (String)


2436
2437
2438
2439
2440
2441
2442
# File 'gems/aws-sdk-route53/lib/aws-sdk-route53/types.rb', line 2436

class GeoLocation < Struct.new(
  :continent_code,
  :country_code,
  :subdivision_code)
  SENSITIVE = []
  include Aws::Structure
end