libZSservicesZSamazonka-route53ZSamazonka-route53
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.Route53.Types.GeoLocation

Description

 
Synopsis

Documentation

data GeoLocation Source #

A complex type that contains information about a geographic location.

See: newGeoLocation smart constructor.

Constructors

GeoLocation' 

Fields

  • subdivisionCode :: Maybe Text

    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.

  • countryCode :: Maybe Text

    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.

  • continentCode :: Maybe Text

    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.

Instances

Instances details
Eq GeoLocation Source # 
Instance details

Defined in Amazonka.Route53.Types.GeoLocation

Read GeoLocation Source # 
Instance details

Defined in Amazonka.Route53.Types.GeoLocation

Show GeoLocation Source # 
Instance details

Defined in Amazonka.Route53.Types.GeoLocation

Generic GeoLocation Source # 
Instance details

Defined in Amazonka.Route53.Types.GeoLocation

Associated Types

type Rep GeoLocation :: Type -> Type #

NFData GeoLocation Source # 
Instance details

Defined in Amazonka.Route53.Types.GeoLocation

Methods

rnf :: GeoLocation -> () #

Hashable GeoLocation Source # 
Instance details

Defined in Amazonka.Route53.Types.GeoLocation

FromXML GeoLocation Source # 
Instance details

Defined in Amazonka.Route53.Types.GeoLocation

ToXML GeoLocation Source # 
Instance details

Defined in Amazonka.Route53.Types.GeoLocation

Methods

toXML :: GeoLocation -> XML #

type Rep GeoLocation Source # 
Instance details

Defined in Amazonka.Route53.Types.GeoLocation

type Rep GeoLocation = D1 ('MetaData "GeoLocation" "Amazonka.Route53.Types.GeoLocation" "libZSservicesZSamazonka-route53ZSamazonka-route53" 'False) (C1 ('MetaCons "GeoLocation'" 'PrefixI 'True) (S1 ('MetaSel ('Just "subdivisionCode") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "countryCode") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "continentCode") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))))

newGeoLocation :: GeoLocation Source #

Create a value of GeoLocation with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:subdivisionCode:GeoLocation', geoLocation_subdivisionCode - 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.

$sel:countryCode:GeoLocation', geoLocation_countryCode - 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.

$sel:continentCode:GeoLocation', geoLocation_continentCode - 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.

geoLocation_subdivisionCode :: Lens' GeoLocation (Maybe Text) Source #

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.

geoLocation_countryCode :: Lens' GeoLocation (Maybe Text) Source #

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.

geoLocation_continentCode :: Lens' GeoLocation (Maybe Text) Source #

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.