amazonka-route53-2.0: Amazon Route 53 SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

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

AWSRequest GetGeoLocation Source # 
Instance details

Defined in Amazonka.Route53.GetGeoLocation

Associated Types

type AWSResponse GetGeoLocation #

Generic GetGeoLocation Source # 
Instance details

Defined in Amazonka.Route53.GetGeoLocation

Associated Types

type Rep GetGeoLocation :: Type -> Type #

Read GetGeoLocation Source # 
Instance details

Defined in Amazonka.Route53.GetGeoLocation

Show GetGeoLocation Source # 
Instance details

Defined in Amazonka.Route53.GetGeoLocation

NFData GetGeoLocation Source # 
Instance details

Defined in Amazonka.Route53.GetGeoLocation

Methods

rnf :: GetGeoLocation -> () #

Eq GetGeoLocation Source # 
Instance details

Defined in Amazonka.Route53.GetGeoLocation

Hashable GetGeoLocation Source # 
Instance details

Defined in Amazonka.Route53.GetGeoLocation

type AWSResponse 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" "amazonka-route53-2.0-8wP357MyuPX6rh87d4wklb" 'False) (C1 ('MetaCons "GetGeoLocation'" 'PrefixI 'True) (S1 ('MetaSel ('Just "continentCode") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "countryCode") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "subdivisionCode") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))))

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:

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

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

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.

Request Lenses

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

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

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
Generic GetGeoLocationResponse Source # 
Instance details

Defined in Amazonka.Route53.GetGeoLocation

Associated Types

type Rep GetGeoLocationResponse :: Type -> Type #

Read GetGeoLocationResponse Source # 
Instance details

Defined in Amazonka.Route53.GetGeoLocation

Show GetGeoLocationResponse Source # 
Instance details

Defined in Amazonka.Route53.GetGeoLocation

NFData GetGeoLocationResponse Source # 
Instance details

Defined in Amazonka.Route53.GetGeoLocation

Methods

rnf :: GetGeoLocationResponse -> () #

Eq GetGeoLocationResponse Source # 
Instance details

Defined in Amazonka.Route53.GetGeoLocation

type Rep GetGeoLocationResponse Source # 
Instance details

Defined in Amazonka.Route53.GetGeoLocation

type Rep GetGeoLocationResponse = D1 ('MetaData "GetGeoLocationResponse" "Amazonka.Route53.GetGeoLocation" "amazonka-route53-2.0-8wP357MyuPX6rh87d4wklb" '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.