amazonka-route53-1.4.3: 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

To retrieve a single geo location, send a GET request to the '/Route 53 API version/geolocation' 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:

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.3-GVCZrM1VgYbI4WdWSABHKg" 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 #

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:

data GetGeoLocationResponse Source #

A complex type containing information about the specified geo location.

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.3-GVCZrM1VgYbI4WdWSABHKg" False) (C1 (MetaCons "GetGeoLocationResponse'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_gglrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (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 information about the specified geo location.