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.GetGeoLocation

Description

Gets information about whether a specified geographic location is supported for Amazon Route 53 geolocation resource record sets.

Route 53 does not perform authorization for this API because it retrieves information that is already available to the public.

Use the following syntax to determine whether a continent is supported for geolocation:

GET /2013-04-01/geolocation?continentcode=two-letter abbreviation for a continent

Use the following syntax to determine whether a country is supported for geolocation:

GET /2013-04-01/geolocation?countrycode=two-character country code

Use the following syntax to determine whether a subdivision of a country is supported for geolocation:

GET /2013-04-01/geolocation?countrycode=two-character country code&subdivisioncode=subdivision code
Synopsis

Creating a Request

data GetGeoLocation Source #

A request for information about whether a specified geographic location is supported for Amazon Route 53 geolocation resource record sets.

See: newGetGeoLocation smart constructor.

Constructors

GetGeoLocation' 

Fields

Instances

Instances details
Eq GetGeoLocation Source # 
Instance details

Defined in Amazonka.Route53.GetGeoLocation

Read GetGeoLocation Source # 
Instance details

Defined in Amazonka.Route53.GetGeoLocation

Show GetGeoLocation Source # 
Instance details

Defined in Amazonka.Route53.GetGeoLocation

Generic GetGeoLocation Source # 
Instance details

Defined in Amazonka.Route53.GetGeoLocation

Associated Types

type Rep GetGeoLocation :: Type -> Type #

NFData GetGeoLocation Source # 
Instance details

Defined in Amazonka.Route53.GetGeoLocation

Methods

rnf :: GetGeoLocation -> () #

Hashable GetGeoLocation Source # 
Instance details

Defined in Amazonka.Route53.GetGeoLocation

AWSRequest GetGeoLocation Source # 
Instance details

Defined in Amazonka.Route53.GetGeoLocation

Associated Types

type AWSResponse GetGeoLocation #

ToHeaders GetGeoLocation Source # 
Instance details

Defined in Amazonka.Route53.GetGeoLocation

ToPath GetGeoLocation Source # 
Instance details

Defined in Amazonka.Route53.GetGeoLocation

ToQuery GetGeoLocation Source # 
Instance details

Defined in Amazonka.Route53.GetGeoLocation

type Rep GetGeoLocation Source # 
Instance details

Defined in Amazonka.Route53.GetGeoLocation

type Rep GetGeoLocation = D1 ('MetaData "GetGeoLocation" "Amazonka.Route53.GetGeoLocation" "libZSservicesZSamazonka-route53ZSamazonka-route53" 'False) (C1 ('MetaCons "GetGeoLocation'" '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)))))
type AWSResponse GetGeoLocation Source # 
Instance details

Defined in Amazonka.Route53.GetGeoLocation

newGetGeoLocation :: GetGeoLocation Source #

Create a value of GetGeoLocation 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:GetGeoLocation', getGeoLocation_subdivisionCode - The code for the subdivision, such as a particular state within the United States. For a list of US state abbreviations, see Appendix B: Two–Letter State and Possession Abbreviations on the United States Postal Service website. For a list of all supported subdivision codes, use the ListGeoLocations API.

$sel:countryCode:GetGeoLocation', getGeoLocation_countryCode - Amazon Route 53 uses the two-letter country codes that are specified in ISO standard 3166-1 alpha-2.

$sel:continentCode:GetGeoLocation', getGeoLocation_continentCode - For geolocation resource record sets, a two-letter abbreviation that identifies a 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

Request Lenses

getGeoLocation_subdivisionCode :: Lens' GetGeoLocation (Maybe Text) Source #

The code for the subdivision, such as a particular state within the United States. For a list of US state abbreviations, see Appendix B: Two–Letter State and Possession Abbreviations on the United States Postal Service website. For a list of all supported subdivision codes, use the ListGeoLocations API.

getGeoLocation_countryCode :: Lens' GetGeoLocation (Maybe Text) Source #

Amazon Route 53 uses the two-letter country codes that are specified in ISO standard 3166-1 alpha-2.

getGeoLocation_continentCode :: Lens' GetGeoLocation (Maybe Text) Source #

For geolocation resource record sets, a two-letter abbreviation that identifies a 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

Destructuring the Response

data GetGeoLocationResponse Source #

A complex type that contains the response information for the specified geolocation code.

See: newGetGeoLocationResponse smart constructor.

Constructors

GetGeoLocationResponse' 

Fields

Instances

Instances details
Eq GetGeoLocationResponse Source # 
Instance details

Defined in Amazonka.Route53.GetGeoLocation

Read GetGeoLocationResponse Source # 
Instance details

Defined in Amazonka.Route53.GetGeoLocation

Show GetGeoLocationResponse Source # 
Instance details

Defined in Amazonka.Route53.GetGeoLocation

Generic GetGeoLocationResponse Source # 
Instance details

Defined in Amazonka.Route53.GetGeoLocation

Associated Types

type Rep GetGeoLocationResponse :: Type -> Type #

NFData GetGeoLocationResponse Source # 
Instance details

Defined in Amazonka.Route53.GetGeoLocation

Methods

rnf :: GetGeoLocationResponse -> () #

type Rep GetGeoLocationResponse Source # 
Instance details

Defined in Amazonka.Route53.GetGeoLocation

type Rep GetGeoLocationResponse = D1 ('MetaData "GetGeoLocationResponse" "Amazonka.Route53.GetGeoLocation" "libZSservicesZSamazonka-route53ZSamazonka-route53" 'False) (C1 ('MetaCons "GetGeoLocationResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int) :*: S1 ('MetaSel ('Just "geoLocationDetails") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 GeoLocationDetails)))

newGetGeoLocationResponse Source #

Create a value of GetGeoLocationResponse 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:httpStatus:GetGeoLocationResponse', getGeoLocationResponse_httpStatus - The response's http status code.

$sel:geoLocationDetails:GetGeoLocationResponse', getGeoLocationResponse_geoLocationDetails - A complex type that contains the codes and full continent, country, and subdivision names for the specified geolocation code.

Response Lenses

getGeoLocationResponse_geoLocationDetails :: Lens' GetGeoLocationResponse GeoLocationDetails Source #

A complex type that contains the codes and full continent, country, and subdivision names for the specified geolocation code.