Copyright | (c) 2013-2016 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
Retrieves 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.
- getGeoLocation :: GetGeoLocation
- data GetGeoLocation
- gglSubdivisionCode :: Lens' GetGeoLocation (Maybe Text)
- gglCountryCode :: Lens' GetGeoLocation (Maybe Text)
- gglContinentCode :: Lens' GetGeoLocation (Maybe Text)
- getGeoLocationResponse :: Int -> GeoLocationDetails -> GetGeoLocationResponse
- data GetGeoLocationResponse
- gglrsResponseStatus :: Lens' GetGeoLocationResponse Int
- gglrsGeoLocationDetails :: Lens' GetGeoLocationResponse GeoLocationDetails
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:
data GetGeoLocation Source #
A complex type that contains information about the request to get a geo location.
See: getGeoLocation
smart constructor.
Request Lenses
gglSubdivisionCode :: Lens' GetGeoLocation (Maybe Text) Source #
Amazon Route 53 uses the one- to three-letter subdivision codes that are specified in ISO standard 3166-1 alpha-2. Amazon Route 53 doesn't support subdivision codes for all countries. If you specify SubdivisionCode
, you must also specify CountryCode
.
gglCountryCode :: Lens' GetGeoLocation (Maybe Text) Source #
Amazon Route 53 uses the two-letter country codes that are specified in ISO standard 3166-1 alpha-2.
gglContinentCode :: Lens' GetGeoLocation (Maybe Text) Source #
Amazon Route 53 supports the following contintent codes:
- AF: Africa
- AN: Antarctica
- AS: Asia
- EU: Europe
- OC: Oceania
- NA: North America
- SA: South America
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:
data GetGeoLocationResponse Source #
A complex type that contains the response information for the specified geolocation code.
See: getGeoLocationResponse
smart constructor.
Response Lenses
gglrsResponseStatus :: Lens' GetGeoLocationResponse Int Source #
The response status code.
gglrsGeoLocationDetails :: Lens' GetGeoLocationResponse GeoLocationDetails Source #
A complex type that contains the codes and full continent, country, and subdivision names for the specified geolocation code.