amazonka-route53-1.6.0: Amazon Route 53 SDK.

Copyright(c) 2013-2018 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.AWS.Route53.ListHostedZones

Contents

Description

Retrieves a list of the public and private hosted zones that are associated with the current AWS account. The response includes a HostedZones child element for each hosted zone.

Amazon Route 53 returns a maximum of 100 items in each response. If you have a lot of hosted zones, you can use the maxitems parameter to list them in groups of up to 100.

This operation returns paginated results.

Synopsis

Creating a Request

listHostedZones :: ListHostedZones Source #

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

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

  • lhzDelegationSetId - If you're using reusable delegation sets and you want to list all of the hosted zones that are associated with a reusable delegation set, specify the ID of that reusable delegation set.
  • lhzMarker - If the value of IsTruncated in the previous response was true , you have more hosted zones. To get more hosted zones, submit another ListHostedZones request. For the value of marker , specify the value of NextMarker from the previous response, which is the ID of the first hosted zone that Amazon Route 53 will return if you submit another request. If the value of IsTruncated in the previous response was false , there are no more hosted zones to get.
  • lhzMaxItems - (Optional) The maximum number of hosted zones that you want Amazon Route 53 to return. If you have more than maxitems hosted zones, the value of IsTruncated in the response is true , and the value of NextMarker is the hosted zone ID of the first hosted zone that Amazon Route 53 will return if you submit another request.

data ListHostedZones Source #

A request to retrieve a list of the public and private hosted zones that are associated with the current AWS account.

See: listHostedZones smart constructor.

Instances

Eq ListHostedZones Source # 
Data ListHostedZones Source # 

Methods

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

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

toConstr :: ListHostedZones -> Constr #

dataTypeOf :: ListHostedZones -> DataType #

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

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

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

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

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

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

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

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

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

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

Read ListHostedZones Source # 
Show ListHostedZones Source # 
Generic ListHostedZones Source # 
Hashable ListHostedZones Source # 
NFData ListHostedZones Source # 

Methods

rnf :: ListHostedZones -> () #

AWSPager ListHostedZones Source # 
AWSRequest ListHostedZones Source # 
ToHeaders ListHostedZones Source # 
ToPath ListHostedZones Source # 
ToQuery ListHostedZones Source # 
type Rep ListHostedZones Source # 
type Rep ListHostedZones = D1 * (MetaData "ListHostedZones" "Network.AWS.Route53.ListHostedZones" "amazonka-route53-1.6.0-Ak5sZypnFS3AFXHlAYIveI" False) (C1 * (MetaCons "ListHostedZones'" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "_lhzDelegationSetId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe ResourceId))) ((:*:) * (S1 * (MetaSel (Just Symbol "_lhzMarker") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))) (S1 * (MetaSel (Just Symbol "_lhzMaxItems") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))))))
type Rs ListHostedZones Source # 

Request Lenses

lhzDelegationSetId :: Lens' ListHostedZones (Maybe ResourceId) Source #

If you're using reusable delegation sets and you want to list all of the hosted zones that are associated with a reusable delegation set, specify the ID of that reusable delegation set.

lhzMarker :: Lens' ListHostedZones (Maybe Text) Source #

If the value of IsTruncated in the previous response was true , you have more hosted zones. To get more hosted zones, submit another ListHostedZones request. For the value of marker , specify the value of NextMarker from the previous response, which is the ID of the first hosted zone that Amazon Route 53 will return if you submit another request. If the value of IsTruncated in the previous response was false , there are no more hosted zones to get.

lhzMaxItems :: Lens' ListHostedZones (Maybe Text) Source #

(Optional) The maximum number of hosted zones that you want Amazon Route 53 to return. If you have more than maxitems hosted zones, the value of IsTruncated in the response is true , and the value of NextMarker is the hosted zone ID of the first hosted zone that Amazon Route 53 will return if you submit another request.

Destructuring the Response

listHostedZonesResponse Source #

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

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

  • lhzrsMarker - For the second and subsequent calls to ListHostedZones , Marker is the value that you specified for the marker parameter in the request that produced the current response.
  • lhzrsNextMarker - If IsTruncated is true , the value of NextMarker identifies the first hosted zone in the next group of hosted zones. Submit another ListHostedZones request, and specify the value of NextMarker from the response in the marker parameter. This element is present only if IsTruncated is true .
  • lhzrsResponseStatus - -- | The response status code.
  • lhzrsHostedZones - A complex type that contains general information about the hosted zone.
  • lhzrsIsTruncated - A flag indicating whether there are more hosted zones to be listed. If the response was truncated, you can get more hosted zones by submitting another ListHostedZones request and specifying the value of NextMarker in the marker parameter.
  • lhzrsMaxItems - The value that you specified for the maxitems parameter in the call to ListHostedZones that produced the current response.

data ListHostedZonesResponse Source #

See: listHostedZonesResponse smart constructor.

Instances

Eq ListHostedZonesResponse Source # 
Data ListHostedZonesResponse Source # 

Methods

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

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

toConstr :: ListHostedZonesResponse -> Constr #

dataTypeOf :: ListHostedZonesResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read ListHostedZonesResponse Source # 
Show ListHostedZonesResponse Source # 
Generic ListHostedZonesResponse Source # 
NFData ListHostedZonesResponse Source # 

Methods

rnf :: ListHostedZonesResponse -> () #

type Rep ListHostedZonesResponse Source # 
type Rep ListHostedZonesResponse = D1 * (MetaData "ListHostedZonesResponse" "Network.AWS.Route53.ListHostedZones" "amazonka-route53-1.6.0-Ak5sZypnFS3AFXHlAYIveI" False) (C1 * (MetaCons "ListHostedZonesResponse'" PrefixI True) ((:*:) * ((:*:) * (S1 * (MetaSel (Just Symbol "_lhzrsMarker") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))) ((:*:) * (S1 * (MetaSel (Just Symbol "_lhzrsNextMarker") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))) (S1 * (MetaSel (Just Symbol "_lhzrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Int)))) ((:*:) * (S1 * (MetaSel (Just Symbol "_lhzrsHostedZones") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * [HostedZone])) ((:*:) * (S1 * (MetaSel (Just Symbol "_lhzrsIsTruncated") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Bool)) (S1 * (MetaSel (Just Symbol "_lhzrsMaxItems") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Text))))))

Response Lenses

lhzrsMarker :: Lens' ListHostedZonesResponse (Maybe Text) Source #

For the second and subsequent calls to ListHostedZones , Marker is the value that you specified for the marker parameter in the request that produced the current response.

lhzrsNextMarker :: Lens' ListHostedZonesResponse (Maybe Text) Source #

If IsTruncated is true , the value of NextMarker identifies the first hosted zone in the next group of hosted zones. Submit another ListHostedZones request, and specify the value of NextMarker from the response in the marker parameter. This element is present only if IsTruncated is true .

lhzrsHostedZones :: Lens' ListHostedZonesResponse [HostedZone] Source #

A complex type that contains general information about the hosted zone.

lhzrsIsTruncated :: Lens' ListHostedZonesResponse Bool Source #

A flag indicating whether there are more hosted zones to be listed. If the response was truncated, you can get more hosted zones by submitting another ListHostedZones request and specifying the value of NextMarker in the marker parameter.

lhzrsMaxItems :: Lens' ListHostedZonesResponse Text Source #

The value that you specified for the maxitems parameter in the call to ListHostedZones that produced the current response.