AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

You are viewing documentation for version 2 of the AWS SDK for Ruby. Version 3 documentation can be found here.

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

Inherits:
Struct
  • Object
show all
Defined in:
(unknown)

Overview

Note:

When passing GeoLocation as input to an Aws::Client method, you can use a vanilla Hash:

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

A complex type that contains information about a geographic location.

Returned by:

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)

    The two-letter code for the continent.

#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)

    For geolocation resource record sets, the two-letter code for a country.

#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)

    For geolocation resource record sets, the two-letter code for a state of the United States.