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

Contents

Description

To retrieve a list of your hosted zones in lexicographic order, send a GET request to the '/Route 53 API version/hostedzonesbyname' resource. The response to this request includes a HostedZones element with zero or more HostedZone child elements lexicographically ordered by DNS name. By default, the list of hosted zones is displayed on a single page. You can control the length of the page that is displayed by using the MaxItems parameter. You can use the DNSName and HostedZoneId parameters to control the hosted zone that the list begins with.

Amazon Route 53 returns a maximum of 100 items. If you set MaxItems to a value greater than 100, Amazon Route 53 returns only the first 100.

Synopsis

Creating a Request

listHostedZonesByName :: ListHostedZonesByName Source #

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

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

data ListHostedZonesByName Source #

To retrieve a list of your hosted zones in lexicographic order, send a GET request to the '/Route 53 API version/hostedzonesbyname' resource. The response to this request includes a HostedZones element with zero or more HostedZone child elements lexicographically ordered by DNS name. By default, the list of hosted zones is displayed on a single page. You can control the length of the page that is displayed by using the MaxItems parameter. You can use the DNSName and HostedZoneId parameters to control the hosted zone that the list begins with.

For more information about listing hosted zones, see Listing the Hosted Zones for an AWS Account in the Amazon Route 53 Developer Guide.

See: listHostedZonesByName smart constructor.

Instances

Eq ListHostedZonesByName Source # 
Data ListHostedZonesByName Source # 

Methods

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

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

toConstr :: ListHostedZonesByName -> Constr #

dataTypeOf :: ListHostedZonesByName -> DataType #

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

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

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

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

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

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

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

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

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

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

Read ListHostedZonesByName Source # 
Show ListHostedZonesByName Source # 
Generic ListHostedZonesByName Source # 
Hashable ListHostedZonesByName Source # 
NFData ListHostedZonesByName Source # 

Methods

rnf :: ListHostedZonesByName -> () #

AWSRequest ListHostedZonesByName Source # 
ToPath ListHostedZonesByName Source # 
ToHeaders ListHostedZonesByName Source # 
ToQuery ListHostedZonesByName Source # 
type Rep ListHostedZonesByName Source # 
type Rep ListHostedZonesByName = D1 (MetaData "ListHostedZonesByName" "Network.AWS.Route53.ListHostedZonesByName" "amazonka-route53-1.4.3-GVCZrM1VgYbI4WdWSABHKg" False) (C1 (MetaCons "ListHostedZonesByName'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_lhzbnHostedZoneId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) ((:*:) (S1 (MetaSel (Just Symbol "_lhzbnMaxItems") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_lhzbnDNSName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))))
type Rs ListHostedZonesByName Source # 

Request Lenses

lhzbnHostedZoneId :: Lens' ListHostedZonesByName (Maybe Text) Source #

If the request returned more than one page of results, submit another request and specify the value of NextDNSName and NextHostedZoneId from the last response in the DNSName and HostedZoneId parameters to get the next page of results.

lhzbnMaxItems :: Lens' ListHostedZonesByName (Maybe Text) Source #

Specify the maximum number of hosted zones to return per page of results.

lhzbnDNSName :: Lens' ListHostedZonesByName (Maybe Text) Source #

The first name in the lexicographic ordering of domain names that you want the ListHostedZonesByNameRequest request to list.

If the request returned more than one page of results, submit another request and specify the value of NextDNSName and NextHostedZoneId from the last response in the DNSName and HostedZoneId parameters to get the next page of results.

Destructuring the Response

data ListHostedZonesByNameResponse Source #

A complex type that contains the response for the request.

See: listHostedZonesByNameResponse smart constructor.

Instances

Eq ListHostedZonesByNameResponse Source # 
Data ListHostedZonesByNameResponse Source # 

Methods

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

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

toConstr :: ListHostedZonesByNameResponse -> Constr #

dataTypeOf :: ListHostedZonesByNameResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read ListHostedZonesByNameResponse Source # 
Show ListHostedZonesByNameResponse Source # 
Generic ListHostedZonesByNameResponse Source # 
NFData ListHostedZonesByNameResponse Source # 
type Rep ListHostedZonesByNameResponse Source # 
type Rep ListHostedZonesByNameResponse = D1 (MetaData "ListHostedZonesByNameResponse" "Network.AWS.Route53.ListHostedZonesByName" "amazonka-route53-1.4.3-GVCZrM1VgYbI4WdWSABHKg" False) (C1 (MetaCons "ListHostedZonesByNameResponse'" PrefixI True) ((:*:) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_lhzbnrsHostedZoneId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_lhzbnrsNextHostedZoneId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))) ((:*:) (S1 (MetaSel (Just Symbol "_lhzbnrsDNSName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_lhzbnrsNextDNSName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_lhzbnrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int)) (S1 (MetaSel (Just Symbol "_lhzbnrsHostedZones") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 [HostedZone]))) ((:*:) (S1 (MetaSel (Just Symbol "_lhzbnrsIsTruncated") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Bool)) (S1 (MetaSel (Just Symbol "_lhzbnrsMaxItems") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))))))

Response Lenses

lhzbnrsHostedZoneId :: Lens' ListHostedZonesByNameResponse (Maybe Text) Source #

The HostedZoneId value sent in the request.

lhzbnrsNextHostedZoneId :: Lens' ListHostedZonesByNameResponse (Maybe Text) Source #

If ListHostedZonesByNameResponseIsTruncated> is true, there are more hosted zones associated with the current AWS account. To get the next page of results, make another request to ListHostedZonesByName. Specify the value of ListHostedZonesByNameResponseNextDNSName> in the ListHostedZonesByNameRequestDNSName> element and ListHostedZonesByNameResponseNextHostedZoneId> in the ListHostedZonesByNameRequestHostedZoneId> element.

lhzbnrsDNSName :: Lens' ListHostedZonesByNameResponse (Maybe Text) Source #

The DNSName value sent in the request.

lhzbnrsNextDNSName :: Lens' ListHostedZonesByNameResponse (Maybe Text) Source #

If ListHostedZonesByNameResponseIsTruncated> is true, there are more hosted zones associated with the current AWS account. To get the next page of results, make another request to ListHostedZonesByName. Specify the value of ListHostedZonesByNameResponseNextDNSName> in the ListHostedZonesByNameRequestDNSName> element and ListHostedZonesByNameResponseNextHostedZoneId> in the ListHostedZonesByNameRequestHostedZoneId> element.

lhzbnrsHostedZones :: Lens' ListHostedZonesByNameResponse [HostedZone] Source #

A complex type that contains information about the hosted zones associated with the current AWS account.

lhzbnrsIsTruncated :: Lens' ListHostedZonesByNameResponse Bool Source #

A flag indicating whether there are more hosted zones to be listed. If your results were truncated, you can make a follow-up request for the next page of results by using the NextDNSName and NextHostedZoneId elements.

Valid Values: true | false

lhzbnrsMaxItems :: Lens' ListHostedZonesByNameResponse Text Source #

The maximum number of hosted zones to be included in the response body. If the number of hosted zones associated with this AWS account exceeds MaxItems, the value of ListHostedZonesByNameResponseIsTruncated> in the response is true. Call ListHostedZonesByName again and specify the value of ListHostedZonesByNameResponseNextDNSName> and ListHostedZonesByNameResponseNextHostedZoneId> elements respectively to get the next page of results.