amazonka-route53-1.4.1: 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.ListGeoLocations

Contents

Description

To retrieve a list of supported geo locations, send a GET request to the '/Route 53 API version/geolocations' resource. The response to this request includes a GeoLocationDetailsList element with zero, one, or multiple GeoLocationDetails child elements. The list is sorted by country code, and then subdivision code, followed by continents at the end of the list.

By default, the list of geo locations is displayed on a single page. You can control the length of the page that is displayed by using the MaxItems parameter. If the list is truncated, IsTruncated will be set to true and a combination of 'NextContinentCode, NextCountryCode, NextSubdivisionCode' will be populated. You can pass these as parameters to 'StartContinentCode, StartCountryCode, StartSubdivisionCode' to control the geo location that the list begins with.

Synopsis

Creating a Request

listGeoLocations :: ListGeoLocations Source #

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

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

data ListGeoLocations Source #

The input for a ListGeoLocations request.

See: listGeoLocations smart constructor.

Instances

Eq ListGeoLocations Source # 
Data ListGeoLocations Source # 

Methods

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

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

toConstr :: ListGeoLocations -> Constr #

dataTypeOf :: ListGeoLocations -> DataType #

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

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

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

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

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

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

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

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

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

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

Read ListGeoLocations Source # 
Show ListGeoLocations Source # 
Generic ListGeoLocations Source # 
Hashable ListGeoLocations Source # 
NFData ListGeoLocations Source # 

Methods

rnf :: ListGeoLocations -> () #

AWSRequest ListGeoLocations Source # 
ToQuery ListGeoLocations Source # 
ToPath ListGeoLocations Source # 
ToHeaders ListGeoLocations Source # 
type Rep ListGeoLocations Source # 
type Rep ListGeoLocations = D1 (MetaData "ListGeoLocations" "Network.AWS.Route53.ListGeoLocations" "amazonka-route53-1.4.1-7tbQwgQHkMc6ifX3UPZcPu" False) (C1 (MetaCons "ListGeoLocations'" PrefixI True) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_lglStartSubdivisionCode") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_lglMaxItems") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))) ((:*:) (S1 (MetaSel (Just Symbol "_lglStartCountryCode") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_lglStartContinentCode") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))))
type Rs ListGeoLocations Source # 

Request Lenses

lglStartSubdivisionCode :: Lens' ListGeoLocations (Maybe Text) Source #

The first subdivision code in the lexicographic ordering of geo locations that you want the ListGeoLocations request to list.

Constraint: Specifying SubdivisionCode without CountryCode returns an InvalidInput error.

lglMaxItems :: Lens' ListGeoLocations (Maybe Text) Source #

The maximum number of geo locations you want in the response body.

lglStartCountryCode :: Lens' ListGeoLocations (Maybe Text) Source #

The first country code in the lexicographic ordering of geo locations that you want the ListGeoLocations request to list.

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

lglStartContinentCode :: Lens' ListGeoLocations (Maybe Text) Source #

The first continent code in the lexicographic ordering of geo locations that you want the ListGeoLocations request to list. For non-continent geo locations, this should be null.

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

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

Destructuring the Response

data ListGeoLocationsResponse Source #

A complex type that contains information about the geo locations that are returned by the request and information about the response.

See: listGeoLocationsResponse smart constructor.

Instances

Eq ListGeoLocationsResponse Source # 
Data ListGeoLocationsResponse Source # 

Methods

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

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

toConstr :: ListGeoLocationsResponse -> Constr #

dataTypeOf :: ListGeoLocationsResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read ListGeoLocationsResponse Source # 
Show ListGeoLocationsResponse Source # 
Generic ListGeoLocationsResponse Source # 
NFData ListGeoLocationsResponse Source # 
type Rep ListGeoLocationsResponse Source # 
type Rep ListGeoLocationsResponse = D1 (MetaData "ListGeoLocationsResponse" "Network.AWS.Route53.ListGeoLocations" "amazonka-route53-1.4.1-7tbQwgQHkMc6ifX3UPZcPu" False) (C1 (MetaCons "ListGeoLocationsResponse'" PrefixI True) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_lglrsNextContinentCode") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) ((:*:) (S1 (MetaSel (Just Symbol "_lglrsNextCountryCode") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_lglrsNextSubdivisionCode") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_lglrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int)) (S1 (MetaSel (Just Symbol "_lglrsGeoLocationDetailsList") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 [GeoLocationDetails]))) ((:*:) (S1 (MetaSel (Just Symbol "_lglrsIsTruncated") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Bool)) (S1 (MetaSel (Just Symbol "_lglrsMaxItems") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))))))

Response Lenses

lglrsNextContinentCode :: Lens' ListGeoLocationsResponse (Maybe Text) Source #

If the results were truncated, the continent code of the next geo location in the list. This element is present only if ListGeoLocationsResponse$IsTruncated is true and the next geo location to list is a continent location.

lglrsNextCountryCode :: Lens' ListGeoLocationsResponse (Maybe Text) Source #

If the results were truncated, the country code of the next geo location in the list. This element is present only if ListGeoLocationsResponse$IsTruncated is true and the next geo location to list is not a continent location.

lglrsNextSubdivisionCode :: Lens' ListGeoLocationsResponse (Maybe Text) Source #

If the results were truncated, the subdivision code of the next geo location in the list. This element is present only if ListGeoLocationsResponse$IsTruncated is true and the next geo location has a subdivision.

lglrsGeoLocationDetailsList :: Lens' ListGeoLocationsResponse [GeoLocationDetails] Source #

A complex type that contains information about the geo locations that are returned by the request.

lglrsIsTruncated :: Lens' ListGeoLocationsResponse Bool Source #

A flag that indicates whether there are more geo locations to be listed. If your results were truncated, you can make a follow-up request for the next page of results by using the values included in the ListGeoLocationsResponse$NextContinentCode, ListGeoLocationsResponse$NextCountryCode and ListGeoLocationsResponse$NextSubdivisionCode elements.

Valid Values: true | false

lglrsMaxItems :: Lens' ListGeoLocationsResponse Text Source #

The maximum number of records you requested. The maximum value of MaxItems is 100.