amazonka-route53-1.2.0.2: Amazon Route 53 SDK.

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

Network.AWS.Route53.GetGeoLocation

Contents

Description

To retrieve a single geo location, send a GET request to the '2013-04-01\/geolocation' resource with one of these options: continentcode | countrycode | countrycode and subdivisioncode.

See: AWS API Reference for GetGeoLocation.

Synopsis

Creating a Request

getGeoLocation :: GetGeoLocation Source

Creates a value of GetGeoLocation with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

Request Lenses

gglSubdivisionCode :: Lens' GetGeoLocation (Maybe Text) Source

The code for a country's subdivision (e.g., a province of Canada). A subdivision code is only valid with the appropriate country code.

Constraint: Specifying SubdivisionCode without CountryCode returns an InvalidInput error.

gglCountryCode :: Lens' GetGeoLocation (Maybe Text) Source

The code for a country geo location. The default location uses '*' for the country code and will match all locations that are not matched by a geo location.

The default geo location uses a * for the country code. All other country codes follow the ISO 3166 two-character code.

gglContinentCode :: Lens' GetGeoLocation (Maybe Text) Source

The code for a continent geo location. Note: only continent locations have a continent code.

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

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

Destructuring the Response

getGeoLocationResponse Source

Creates a value of GetGeoLocationResponse with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

Response Lenses

gglrsStatus :: Lens' GetGeoLocationResponse Int Source

The response status code.

gglrsGeoLocationDetails :: Lens' GetGeoLocationResponse GeoLocationDetails Source

A complex type that contains the information about the specified geo location.