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

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 geo location.

Instance Attribute Summary collapse

Instance Attribute Details

#continent_codeString

The two-letter code for the continent.

Valid values: AF | AN | AS | EU | OC | NA | SA

Constraint: Specifying ContinentCode with either CountryCode or SubdivisionCode returns an InvalidInput error.

Returns:

  • (String)


1607
1608
1609
1610
1611
1612
# File 'gems/aws-sdk-route53/lib/aws-sdk-route53/types.rb', line 1607

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

#country_codeString

The two-letter code for the country.

Returns:

  • (String)


1607
1608
1609
1610
1611
1612
# File 'gems/aws-sdk-route53/lib/aws-sdk-route53/types.rb', line 1607

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

#subdivision_codeString

The code for the subdivision, for example, a state in the United States or a province in Canada.

Returns:

  • (String)


1607
1608
1609
1610
1611
1612
# File 'gems/aws-sdk-route53/lib/aws-sdk-route53/types.rb', line 1607

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