Safe Haskell | None |
---|---|
Language | Haskell2010 |
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.
http://docs.aws.amazon.com/Route53/latest/APIReference/API_GetGeoLocation.html
- data GetGeoLocation
- getGeoLocation :: GetGeoLocation
- gglContinentCode :: Lens' GetGeoLocation (Maybe Text)
- gglCountryCode :: Lens' GetGeoLocation (Maybe Text)
- gglSubdivisionCode :: Lens' GetGeoLocation (Maybe Text)
- data GetGeoLocationResponse
- getGeoLocationResponse :: GeoLocationDetails -> GetGeoLocationResponse
- gglrGeoLocationDetails :: Lens' GetGeoLocationResponse GeoLocationDetails
Request
data GetGeoLocation Source
Request constructor
getGeoLocation :: GetGeoLocation Source
GetGeoLocation
constructor.
The fields accessible through corresponding lenses are:
Request lenses
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.
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.
Response
Response constructor
GetGeoLocationResponse
constructor.
The fields accessible through corresponding lenses are:
Response lenses
gglrGeoLocationDetails :: Lens' GetGeoLocationResponse GeoLocationDetails Source
A complex type that contains the information about the specified geo location.