amazonka-route53-1.4.5: Amazon Route 53 SDK.

Copyright(c) 2013-2016 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

Retrieves a single geo location. Send a GET request to the 2013-04-01geolocation resource with one of these options: continentcode | countrycode | countrycode and subdivisioncode.

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:

  • gglSubdivisionCode - 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 - Amazon Route 53 uses the two-letter country codes that are specified in ISO standard 3166-1 alpha-2 .
  • gglContinentCode - Amazon Route 53 supports the following continent codes: * AF : Africa * AN : Antarctica * AS : Asia * EU : Europe * OC : Oceania * NA : North America * SA : South America

data GetGeoLocation Source #

A complex type that contains information about the request to get a geo location.

See: getGeoLocation smart constructor.

Instances

Eq GetGeoLocation Source # 
Data GetGeoLocation Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> GetGeoLocation -> c GetGeoLocation #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c GetGeoLocation #

toConstr :: GetGeoLocation -> Constr #

dataTypeOf :: GetGeoLocation -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c GetGeoLocation) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c GetGeoLocation) #

gmapT :: (forall b. Data b => b -> b) -> GetGeoLocation -> GetGeoLocation #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> GetGeoLocation -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> GetGeoLocation -> r #

gmapQ :: (forall d. Data d => d -> u) -> GetGeoLocation -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> GetGeoLocation -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> GetGeoLocation -> m GetGeoLocation #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> GetGeoLocation -> m GetGeoLocation #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> GetGeoLocation -> m GetGeoLocation #

Read GetGeoLocation Source # 
Show GetGeoLocation Source # 
Generic GetGeoLocation Source # 

Associated Types

type Rep GetGeoLocation :: * -> * #

Hashable GetGeoLocation Source # 
NFData GetGeoLocation Source # 

Methods

rnf :: GetGeoLocation -> () #

AWSRequest GetGeoLocation Source # 
ToPath GetGeoLocation Source # 
ToHeaders GetGeoLocation Source # 
ToQuery GetGeoLocation Source # 
type Rep GetGeoLocation Source # 
type Rep GetGeoLocation = D1 (MetaData "GetGeoLocation" "Network.AWS.Route53.GetGeoLocation" "amazonka-route53-1.4.5-DoQ7bXPvDC1HwWocjSAILy" False) (C1 (MetaCons "GetGeoLocation'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_gglSubdivisionCode") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) ((:*:) (S1 (MetaSel (Just Symbol "_gglCountryCode") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_gglContinentCode") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))))
type Rs GetGeoLocation Source # 

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

Instances

Eq GetGeoLocationResponse Source # 
Data GetGeoLocationResponse Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> GetGeoLocationResponse -> c GetGeoLocationResponse #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c GetGeoLocationResponse #

toConstr :: GetGeoLocationResponse -> Constr #

dataTypeOf :: GetGeoLocationResponse -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c GetGeoLocationResponse) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c GetGeoLocationResponse) #

gmapT :: (forall b. Data b => b -> b) -> GetGeoLocationResponse -> GetGeoLocationResponse #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> GetGeoLocationResponse -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> GetGeoLocationResponse -> r #

gmapQ :: (forall d. Data d => d -> u) -> GetGeoLocationResponse -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> GetGeoLocationResponse -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> GetGeoLocationResponse -> m GetGeoLocationResponse #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> GetGeoLocationResponse -> m GetGeoLocationResponse #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> GetGeoLocationResponse -> m GetGeoLocationResponse #

Read GetGeoLocationResponse Source # 
Show GetGeoLocationResponse Source # 
Generic GetGeoLocationResponse Source # 
NFData GetGeoLocationResponse Source # 

Methods

rnf :: GetGeoLocationResponse -> () #

type Rep GetGeoLocationResponse Source # 
type Rep GetGeoLocationResponse = D1 (MetaData "GetGeoLocationResponse" "Network.AWS.Route53.GetGeoLocation" "amazonka-route53-1.4.5-DoQ7bXPvDC1HwWocjSAILy" False) (C1 (MetaCons "GetGeoLocationResponse'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_gglrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedUnpack) (Rec0 Int)) (S1 (MetaSel (Just Symbol "_gglrsGeoLocationDetails") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 GeoLocationDetails))))

Response Lenses

gglrsGeoLocationDetails :: Lens' GetGeoLocationResponse GeoLocationDetails Source #

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