{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-binds #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}
module Amazonka.Route53.ListHostedZonesByName
(
ListHostedZonesByName (..),
newListHostedZonesByName,
listHostedZonesByName_hostedZoneId,
listHostedZonesByName_maxItems,
listHostedZonesByName_dNSName,
ListHostedZonesByNameResponse (..),
newListHostedZonesByNameResponse,
listHostedZonesByNameResponse_hostedZoneId,
listHostedZonesByNameResponse_nextHostedZoneId,
listHostedZonesByNameResponse_dNSName,
listHostedZonesByNameResponse_nextDNSName,
listHostedZonesByNameResponse_httpStatus,
listHostedZonesByNameResponse_hostedZones,
listHostedZonesByNameResponse_isTruncated,
listHostedZonesByNameResponse_maxItems,
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
import Amazonka.Route53.Types
data ListHostedZonesByName = ListHostedZonesByName'
{
ListHostedZonesByName -> Maybe ResourceId
hostedZoneId :: Prelude.Maybe ResourceId,
ListHostedZonesByName -> Maybe Text
maxItems :: Prelude.Maybe Prelude.Text,
ListHostedZonesByName -> Maybe Text
dNSName :: Prelude.Maybe Prelude.Text
}
deriving (ListHostedZonesByName -> ListHostedZonesByName -> Bool
(ListHostedZonesByName -> ListHostedZonesByName -> Bool)
-> (ListHostedZonesByName -> ListHostedZonesByName -> Bool)
-> Eq ListHostedZonesByName
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListHostedZonesByName -> ListHostedZonesByName -> Bool
$c/= :: ListHostedZonesByName -> ListHostedZonesByName -> Bool
== :: ListHostedZonesByName -> ListHostedZonesByName -> Bool
$c== :: ListHostedZonesByName -> ListHostedZonesByName -> Bool
Prelude.Eq, ReadPrec [ListHostedZonesByName]
ReadPrec ListHostedZonesByName
Int -> ReadS ListHostedZonesByName
ReadS [ListHostedZonesByName]
(Int -> ReadS ListHostedZonesByName)
-> ReadS [ListHostedZonesByName]
-> ReadPrec ListHostedZonesByName
-> ReadPrec [ListHostedZonesByName]
-> Read ListHostedZonesByName
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListHostedZonesByName]
$creadListPrec :: ReadPrec [ListHostedZonesByName]
readPrec :: ReadPrec ListHostedZonesByName
$creadPrec :: ReadPrec ListHostedZonesByName
readList :: ReadS [ListHostedZonesByName]
$creadList :: ReadS [ListHostedZonesByName]
readsPrec :: Int -> ReadS ListHostedZonesByName
$creadsPrec :: Int -> ReadS ListHostedZonesByName
Prelude.Read, Int -> ListHostedZonesByName -> ShowS
[ListHostedZonesByName] -> ShowS
ListHostedZonesByName -> String
(Int -> ListHostedZonesByName -> ShowS)
-> (ListHostedZonesByName -> String)
-> ([ListHostedZonesByName] -> ShowS)
-> Show ListHostedZonesByName
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListHostedZonesByName] -> ShowS
$cshowList :: [ListHostedZonesByName] -> ShowS
show :: ListHostedZonesByName -> String
$cshow :: ListHostedZonesByName -> String
showsPrec :: Int -> ListHostedZonesByName -> ShowS
$cshowsPrec :: Int -> ListHostedZonesByName -> ShowS
Prelude.Show, (forall x. ListHostedZonesByName -> Rep ListHostedZonesByName x)
-> (forall x. Rep ListHostedZonesByName x -> ListHostedZonesByName)
-> Generic ListHostedZonesByName
forall x. Rep ListHostedZonesByName x -> ListHostedZonesByName
forall x. ListHostedZonesByName -> Rep ListHostedZonesByName x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ListHostedZonesByName x -> ListHostedZonesByName
$cfrom :: forall x. ListHostedZonesByName -> Rep ListHostedZonesByName x
Prelude.Generic)
newListHostedZonesByName ::
ListHostedZonesByName
newListHostedZonesByName :: ListHostedZonesByName
newListHostedZonesByName =
ListHostedZonesByName' :: Maybe ResourceId
-> Maybe Text -> Maybe Text -> ListHostedZonesByName
ListHostedZonesByName'
{ $sel:hostedZoneId:ListHostedZonesByName' :: Maybe ResourceId
hostedZoneId =
Maybe ResourceId
forall a. Maybe a
Prelude.Nothing,
$sel:maxItems:ListHostedZonesByName' :: Maybe Text
maxItems = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:dNSName:ListHostedZonesByName' :: Maybe Text
dNSName = Maybe Text
forall a. Maybe a
Prelude.Nothing
}
listHostedZonesByName_hostedZoneId :: Lens.Lens' ListHostedZonesByName (Prelude.Maybe ResourceId)
listHostedZonesByName_hostedZoneId :: (Maybe ResourceId -> f (Maybe ResourceId))
-> ListHostedZonesByName -> f ListHostedZonesByName
listHostedZonesByName_hostedZoneId = (ListHostedZonesByName -> Maybe ResourceId)
-> (ListHostedZonesByName
-> Maybe ResourceId -> ListHostedZonesByName)
-> Lens
ListHostedZonesByName
ListHostedZonesByName
(Maybe ResourceId)
(Maybe ResourceId)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListHostedZonesByName' {Maybe ResourceId
hostedZoneId :: Maybe ResourceId
$sel:hostedZoneId:ListHostedZonesByName' :: ListHostedZonesByName -> Maybe ResourceId
hostedZoneId} -> Maybe ResourceId
hostedZoneId) (\s :: ListHostedZonesByName
s@ListHostedZonesByName' {} Maybe ResourceId
a -> ListHostedZonesByName
s {$sel:hostedZoneId:ListHostedZonesByName' :: Maybe ResourceId
hostedZoneId = Maybe ResourceId
a} :: ListHostedZonesByName)
listHostedZonesByName_maxItems :: Lens.Lens' ListHostedZonesByName (Prelude.Maybe Prelude.Text)
listHostedZonesByName_maxItems :: (Maybe Text -> f (Maybe Text))
-> ListHostedZonesByName -> f ListHostedZonesByName
listHostedZonesByName_maxItems = (ListHostedZonesByName -> Maybe Text)
-> (ListHostedZonesByName -> Maybe Text -> ListHostedZonesByName)
-> Lens
ListHostedZonesByName
ListHostedZonesByName
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListHostedZonesByName' {Maybe Text
maxItems :: Maybe Text
$sel:maxItems:ListHostedZonesByName' :: ListHostedZonesByName -> Maybe Text
maxItems} -> Maybe Text
maxItems) (\s :: ListHostedZonesByName
s@ListHostedZonesByName' {} Maybe Text
a -> ListHostedZonesByName
s {$sel:maxItems:ListHostedZonesByName' :: Maybe Text
maxItems = Maybe Text
a} :: ListHostedZonesByName)
listHostedZonesByName_dNSName :: Lens.Lens' ListHostedZonesByName (Prelude.Maybe Prelude.Text)
listHostedZonesByName_dNSName :: (Maybe Text -> f (Maybe Text))
-> ListHostedZonesByName -> f ListHostedZonesByName
listHostedZonesByName_dNSName = (ListHostedZonesByName -> Maybe Text)
-> (ListHostedZonesByName -> Maybe Text -> ListHostedZonesByName)
-> Lens
ListHostedZonesByName
ListHostedZonesByName
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListHostedZonesByName' {Maybe Text
dNSName :: Maybe Text
$sel:dNSName:ListHostedZonesByName' :: ListHostedZonesByName -> Maybe Text
dNSName} -> Maybe Text
dNSName) (\s :: ListHostedZonesByName
s@ListHostedZonesByName' {} Maybe Text
a -> ListHostedZonesByName
s {$sel:dNSName:ListHostedZonesByName' :: Maybe Text
dNSName = Maybe Text
a} :: ListHostedZonesByName)
instance Core.AWSRequest ListHostedZonesByName where
type
AWSResponse ListHostedZonesByName =
ListHostedZonesByNameResponse
request :: ListHostedZonesByName -> Request ListHostedZonesByName
request = Service -> ListHostedZonesByName -> Request ListHostedZonesByName
forall a. ToRequest a => Service -> a -> Request a
Request.get Service
defaultService
response :: Logger
-> Service
-> Proxy ListHostedZonesByName
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse ListHostedZonesByName)))
response =
(Int
-> ResponseHeaders
-> [Node]
-> Either String (AWSResponse ListHostedZonesByName))
-> Logger
-> Service
-> Proxy ListHostedZonesByName
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse ListHostedZonesByName)))
forall (m :: * -> *) a.
MonadResource m =>
(Int -> ResponseHeaders -> [Node] -> Either String (AWSResponse a))
-> Logger
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveXML
( \Int
s ResponseHeaders
h [Node]
x ->
Maybe ResourceId
-> Maybe ResourceId
-> Maybe Text
-> Maybe Text
-> Int
-> [HostedZone]
-> Bool
-> Text
-> ListHostedZonesByNameResponse
ListHostedZonesByNameResponse'
(Maybe ResourceId
-> Maybe ResourceId
-> Maybe Text
-> Maybe Text
-> Int
-> [HostedZone]
-> Bool
-> Text
-> ListHostedZonesByNameResponse)
-> Either String (Maybe ResourceId)
-> Either
String
(Maybe ResourceId
-> Maybe Text
-> Maybe Text
-> Int
-> [HostedZone]
-> Bool
-> Text
-> ListHostedZonesByNameResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> ([Node]
x [Node] -> Text -> Either String (Maybe ResourceId)
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"HostedZoneId")
Either
String
(Maybe ResourceId
-> Maybe Text
-> Maybe Text
-> Int
-> [HostedZone]
-> Bool
-> Text
-> ListHostedZonesByNameResponse)
-> Either String (Maybe ResourceId)
-> Either
String
(Maybe Text
-> Maybe Text
-> Int
-> [HostedZone]
-> Bool
-> Text
-> ListHostedZonesByNameResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x [Node] -> Text -> Either String (Maybe ResourceId)
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"NextHostedZoneId")
Either
String
(Maybe Text
-> Maybe Text
-> Int
-> [HostedZone]
-> Bool
-> Text
-> ListHostedZonesByNameResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Text
-> Int
-> [HostedZone]
-> Bool
-> Text
-> ListHostedZonesByNameResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x [Node] -> Text -> Either String (Maybe Text)
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"DNSName")
Either
String
(Maybe Text
-> Int
-> [HostedZone]
-> Bool
-> Text
-> ListHostedZonesByNameResponse)
-> Either String (Maybe Text)
-> Either
String
(Int
-> [HostedZone] -> Bool -> Text -> ListHostedZonesByNameResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x [Node] -> Text -> Either String (Maybe Text)
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"NextDNSName")
Either
String
(Int
-> [HostedZone] -> Bool -> Text -> ListHostedZonesByNameResponse)
-> Either String Int
-> Either
String
([HostedZone] -> Bool -> Text -> ListHostedZonesByNameResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Int -> Either String Int
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure (Int -> Int
forall a. Enum a => a -> Int
Prelude.fromEnum Int
s))
Either
String
([HostedZone] -> Bool -> Text -> ListHostedZonesByNameResponse)
-> Either String [HostedZone]
-> Either String (Bool -> Text -> ListHostedZonesByNameResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( [Node]
x [Node] -> Text -> Either String (Maybe [Node])
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"HostedZones" Either String (Maybe [Node]) -> [Node] -> Either String [Node]
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ [Node]
forall a. Monoid a => a
Prelude.mempty
Either String [Node]
-> ([Node] -> Either String [HostedZone])
-> Either String [HostedZone]
forall (m :: * -> *) a b. Monad m => m a -> (a -> m b) -> m b
Prelude.>>= Text -> [Node] -> Either String [HostedZone]
forall a. FromXML a => Text -> [Node] -> Either String [a]
Core.parseXMLList Text
"HostedZone"
)
Either String (Bool -> Text -> ListHostedZonesByNameResponse)
-> Either String Bool
-> Either String (Text -> ListHostedZonesByNameResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x [Node] -> Text -> Either String Bool
forall a. FromXML a => [Node] -> Text -> Either String a
Core..@ Text
"IsTruncated")
Either String (Text -> ListHostedZonesByNameResponse)
-> Either String Text
-> Either String ListHostedZonesByNameResponse
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x [Node] -> Text -> Either String Text
forall a. FromXML a => [Node] -> Text -> Either String a
Core..@ Text
"MaxItems")
)
instance Prelude.Hashable ListHostedZonesByName
instance Prelude.NFData ListHostedZonesByName
instance Core.ToHeaders ListHostedZonesByName where
toHeaders :: ListHostedZonesByName -> ResponseHeaders
toHeaders = ResponseHeaders -> ListHostedZonesByName -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const ResponseHeaders
forall a. Monoid a => a
Prelude.mempty
instance Core.ToPath ListHostedZonesByName where
toPath :: ListHostedZonesByName -> ByteString
toPath =
ByteString -> ListHostedZonesByName -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/2013-04-01/hostedzonesbyname"
instance Core.ToQuery ListHostedZonesByName where
toQuery :: ListHostedZonesByName -> QueryString
toQuery ListHostedZonesByName' {Maybe Text
Maybe ResourceId
dNSName :: Maybe Text
maxItems :: Maybe Text
hostedZoneId :: Maybe ResourceId
$sel:dNSName:ListHostedZonesByName' :: ListHostedZonesByName -> Maybe Text
$sel:maxItems:ListHostedZonesByName' :: ListHostedZonesByName -> Maybe Text
$sel:hostedZoneId:ListHostedZonesByName' :: ListHostedZonesByName -> Maybe ResourceId
..} =
[QueryString] -> QueryString
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ ByteString
"hostedzoneid" ByteString -> Maybe ResourceId -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe ResourceId
hostedZoneId,
ByteString
"maxitems" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
maxItems,
ByteString
"dnsname" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
dNSName
]
data ListHostedZonesByNameResponse = ListHostedZonesByNameResponse'
{
ListHostedZonesByNameResponse -> Maybe ResourceId
hostedZoneId :: Prelude.Maybe ResourceId,
ListHostedZonesByNameResponse -> Maybe ResourceId
nextHostedZoneId :: Prelude.Maybe ResourceId,
ListHostedZonesByNameResponse -> Maybe Text
dNSName :: Prelude.Maybe Prelude.Text,
ListHostedZonesByNameResponse -> Maybe Text
nextDNSName :: Prelude.Maybe Prelude.Text,
ListHostedZonesByNameResponse -> Int
httpStatus :: Prelude.Int,
ListHostedZonesByNameResponse -> [HostedZone]
hostedZones :: [HostedZone],
ListHostedZonesByNameResponse -> Bool
isTruncated :: Prelude.Bool,
ListHostedZonesByNameResponse -> Text
maxItems :: Prelude.Text
}
deriving (ListHostedZonesByNameResponse
-> ListHostedZonesByNameResponse -> Bool
(ListHostedZonesByNameResponse
-> ListHostedZonesByNameResponse -> Bool)
-> (ListHostedZonesByNameResponse
-> ListHostedZonesByNameResponse -> Bool)
-> Eq ListHostedZonesByNameResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListHostedZonesByNameResponse
-> ListHostedZonesByNameResponse -> Bool
$c/= :: ListHostedZonesByNameResponse
-> ListHostedZonesByNameResponse -> Bool
== :: ListHostedZonesByNameResponse
-> ListHostedZonesByNameResponse -> Bool
$c== :: ListHostedZonesByNameResponse
-> ListHostedZonesByNameResponse -> Bool
Prelude.Eq, ReadPrec [ListHostedZonesByNameResponse]
ReadPrec ListHostedZonesByNameResponse
Int -> ReadS ListHostedZonesByNameResponse
ReadS [ListHostedZonesByNameResponse]
(Int -> ReadS ListHostedZonesByNameResponse)
-> ReadS [ListHostedZonesByNameResponse]
-> ReadPrec ListHostedZonesByNameResponse
-> ReadPrec [ListHostedZonesByNameResponse]
-> Read ListHostedZonesByNameResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListHostedZonesByNameResponse]
$creadListPrec :: ReadPrec [ListHostedZonesByNameResponse]
readPrec :: ReadPrec ListHostedZonesByNameResponse
$creadPrec :: ReadPrec ListHostedZonesByNameResponse
readList :: ReadS [ListHostedZonesByNameResponse]
$creadList :: ReadS [ListHostedZonesByNameResponse]
readsPrec :: Int -> ReadS ListHostedZonesByNameResponse
$creadsPrec :: Int -> ReadS ListHostedZonesByNameResponse
Prelude.Read, Int -> ListHostedZonesByNameResponse -> ShowS
[ListHostedZonesByNameResponse] -> ShowS
ListHostedZonesByNameResponse -> String
(Int -> ListHostedZonesByNameResponse -> ShowS)
-> (ListHostedZonesByNameResponse -> String)
-> ([ListHostedZonesByNameResponse] -> ShowS)
-> Show ListHostedZonesByNameResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListHostedZonesByNameResponse] -> ShowS
$cshowList :: [ListHostedZonesByNameResponse] -> ShowS
show :: ListHostedZonesByNameResponse -> String
$cshow :: ListHostedZonesByNameResponse -> String
showsPrec :: Int -> ListHostedZonesByNameResponse -> ShowS
$cshowsPrec :: Int -> ListHostedZonesByNameResponse -> ShowS
Prelude.Show, (forall x.
ListHostedZonesByNameResponse
-> Rep ListHostedZonesByNameResponse x)
-> (forall x.
Rep ListHostedZonesByNameResponse x
-> ListHostedZonesByNameResponse)
-> Generic ListHostedZonesByNameResponse
forall x.
Rep ListHostedZonesByNameResponse x
-> ListHostedZonesByNameResponse
forall x.
ListHostedZonesByNameResponse
-> Rep ListHostedZonesByNameResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListHostedZonesByNameResponse x
-> ListHostedZonesByNameResponse
$cfrom :: forall x.
ListHostedZonesByNameResponse
-> Rep ListHostedZonesByNameResponse x
Prelude.Generic)
newListHostedZonesByNameResponse ::
Prelude.Int ->
Prelude.Bool ->
Prelude.Text ->
ListHostedZonesByNameResponse
newListHostedZonesByNameResponse :: Int -> Bool -> Text -> ListHostedZonesByNameResponse
newListHostedZonesByNameResponse
Int
pHttpStatus_
Bool
pIsTruncated_
Text
pMaxItems_ =
ListHostedZonesByNameResponse' :: Maybe ResourceId
-> Maybe ResourceId
-> Maybe Text
-> Maybe Text
-> Int
-> [HostedZone]
-> Bool
-> Text
-> ListHostedZonesByNameResponse
ListHostedZonesByNameResponse'
{ $sel:hostedZoneId:ListHostedZonesByNameResponse' :: Maybe ResourceId
hostedZoneId =
Maybe ResourceId
forall a. Maybe a
Prelude.Nothing,
$sel:nextHostedZoneId:ListHostedZonesByNameResponse' :: Maybe ResourceId
nextHostedZoneId = Maybe ResourceId
forall a. Maybe a
Prelude.Nothing,
$sel:dNSName:ListHostedZonesByNameResponse' :: Maybe Text
dNSName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:nextDNSName:ListHostedZonesByNameResponse' :: Maybe Text
nextDNSName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:ListHostedZonesByNameResponse' :: Int
httpStatus = Int
pHttpStatus_,
$sel:hostedZones:ListHostedZonesByNameResponse' :: [HostedZone]
hostedZones = [HostedZone]
forall a. Monoid a => a
Prelude.mempty,
$sel:isTruncated:ListHostedZonesByNameResponse' :: Bool
isTruncated = Bool
pIsTruncated_,
$sel:maxItems:ListHostedZonesByNameResponse' :: Text
maxItems = Text
pMaxItems_
}
listHostedZonesByNameResponse_hostedZoneId :: Lens.Lens' ListHostedZonesByNameResponse (Prelude.Maybe ResourceId)
listHostedZonesByNameResponse_hostedZoneId :: (Maybe ResourceId -> f (Maybe ResourceId))
-> ListHostedZonesByNameResponse -> f ListHostedZonesByNameResponse
listHostedZonesByNameResponse_hostedZoneId = (ListHostedZonesByNameResponse -> Maybe ResourceId)
-> (ListHostedZonesByNameResponse
-> Maybe ResourceId -> ListHostedZonesByNameResponse)
-> Lens
ListHostedZonesByNameResponse
ListHostedZonesByNameResponse
(Maybe ResourceId)
(Maybe ResourceId)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListHostedZonesByNameResponse' {Maybe ResourceId
hostedZoneId :: Maybe ResourceId
$sel:hostedZoneId:ListHostedZonesByNameResponse' :: ListHostedZonesByNameResponse -> Maybe ResourceId
hostedZoneId} -> Maybe ResourceId
hostedZoneId) (\s :: ListHostedZonesByNameResponse
s@ListHostedZonesByNameResponse' {} Maybe ResourceId
a -> ListHostedZonesByNameResponse
s {$sel:hostedZoneId:ListHostedZonesByNameResponse' :: Maybe ResourceId
hostedZoneId = Maybe ResourceId
a} :: ListHostedZonesByNameResponse)
listHostedZonesByNameResponse_nextHostedZoneId :: Lens.Lens' ListHostedZonesByNameResponse (Prelude.Maybe ResourceId)
listHostedZonesByNameResponse_nextHostedZoneId :: (Maybe ResourceId -> f (Maybe ResourceId))
-> ListHostedZonesByNameResponse -> f ListHostedZonesByNameResponse
listHostedZonesByNameResponse_nextHostedZoneId = (ListHostedZonesByNameResponse -> Maybe ResourceId)
-> (ListHostedZonesByNameResponse
-> Maybe ResourceId -> ListHostedZonesByNameResponse)
-> Lens
ListHostedZonesByNameResponse
ListHostedZonesByNameResponse
(Maybe ResourceId)
(Maybe ResourceId)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListHostedZonesByNameResponse' {Maybe ResourceId
nextHostedZoneId :: Maybe ResourceId
$sel:nextHostedZoneId:ListHostedZonesByNameResponse' :: ListHostedZonesByNameResponse -> Maybe ResourceId
nextHostedZoneId} -> Maybe ResourceId
nextHostedZoneId) (\s :: ListHostedZonesByNameResponse
s@ListHostedZonesByNameResponse' {} Maybe ResourceId
a -> ListHostedZonesByNameResponse
s {$sel:nextHostedZoneId:ListHostedZonesByNameResponse' :: Maybe ResourceId
nextHostedZoneId = Maybe ResourceId
a} :: ListHostedZonesByNameResponse)
listHostedZonesByNameResponse_dNSName :: Lens.Lens' ListHostedZonesByNameResponse (Prelude.Maybe Prelude.Text)
listHostedZonesByNameResponse_dNSName :: (Maybe Text -> f (Maybe Text))
-> ListHostedZonesByNameResponse -> f ListHostedZonesByNameResponse
listHostedZonesByNameResponse_dNSName = (ListHostedZonesByNameResponse -> Maybe Text)
-> (ListHostedZonesByNameResponse
-> Maybe Text -> ListHostedZonesByNameResponse)
-> Lens
ListHostedZonesByNameResponse
ListHostedZonesByNameResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListHostedZonesByNameResponse' {Maybe Text
dNSName :: Maybe Text
$sel:dNSName:ListHostedZonesByNameResponse' :: ListHostedZonesByNameResponse -> Maybe Text
dNSName} -> Maybe Text
dNSName) (\s :: ListHostedZonesByNameResponse
s@ListHostedZonesByNameResponse' {} Maybe Text
a -> ListHostedZonesByNameResponse
s {$sel:dNSName:ListHostedZonesByNameResponse' :: Maybe Text
dNSName = Maybe Text
a} :: ListHostedZonesByNameResponse)
listHostedZonesByNameResponse_nextDNSName :: Lens.Lens' ListHostedZonesByNameResponse (Prelude.Maybe Prelude.Text)
listHostedZonesByNameResponse_nextDNSName :: (Maybe Text -> f (Maybe Text))
-> ListHostedZonesByNameResponse -> f ListHostedZonesByNameResponse
listHostedZonesByNameResponse_nextDNSName = (ListHostedZonesByNameResponse -> Maybe Text)
-> (ListHostedZonesByNameResponse
-> Maybe Text -> ListHostedZonesByNameResponse)
-> Lens
ListHostedZonesByNameResponse
ListHostedZonesByNameResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListHostedZonesByNameResponse' {Maybe Text
nextDNSName :: Maybe Text
$sel:nextDNSName:ListHostedZonesByNameResponse' :: ListHostedZonesByNameResponse -> Maybe Text
nextDNSName} -> Maybe Text
nextDNSName) (\s :: ListHostedZonesByNameResponse
s@ListHostedZonesByNameResponse' {} Maybe Text
a -> ListHostedZonesByNameResponse
s {$sel:nextDNSName:ListHostedZonesByNameResponse' :: Maybe Text
nextDNSName = Maybe Text
a} :: ListHostedZonesByNameResponse)
listHostedZonesByNameResponse_httpStatus :: Lens.Lens' ListHostedZonesByNameResponse Prelude.Int
listHostedZonesByNameResponse_httpStatus :: (Int -> f Int)
-> ListHostedZonesByNameResponse -> f ListHostedZonesByNameResponse
listHostedZonesByNameResponse_httpStatus = (ListHostedZonesByNameResponse -> Int)
-> (ListHostedZonesByNameResponse
-> Int -> ListHostedZonesByNameResponse)
-> Lens
ListHostedZonesByNameResponse ListHostedZonesByNameResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListHostedZonesByNameResponse' {Int
httpStatus :: Int
$sel:httpStatus:ListHostedZonesByNameResponse' :: ListHostedZonesByNameResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: ListHostedZonesByNameResponse
s@ListHostedZonesByNameResponse' {} Int
a -> ListHostedZonesByNameResponse
s {$sel:httpStatus:ListHostedZonesByNameResponse' :: Int
httpStatus = Int
a} :: ListHostedZonesByNameResponse)
listHostedZonesByNameResponse_hostedZones :: Lens.Lens' ListHostedZonesByNameResponse [HostedZone]
listHostedZonesByNameResponse_hostedZones :: ([HostedZone] -> f [HostedZone])
-> ListHostedZonesByNameResponse -> f ListHostedZonesByNameResponse
listHostedZonesByNameResponse_hostedZones = (ListHostedZonesByNameResponse -> [HostedZone])
-> (ListHostedZonesByNameResponse
-> [HostedZone] -> ListHostedZonesByNameResponse)
-> Lens
ListHostedZonesByNameResponse
ListHostedZonesByNameResponse
[HostedZone]
[HostedZone]
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListHostedZonesByNameResponse' {[HostedZone]
hostedZones :: [HostedZone]
$sel:hostedZones:ListHostedZonesByNameResponse' :: ListHostedZonesByNameResponse -> [HostedZone]
hostedZones} -> [HostedZone]
hostedZones) (\s :: ListHostedZonesByNameResponse
s@ListHostedZonesByNameResponse' {} [HostedZone]
a -> ListHostedZonesByNameResponse
s {$sel:hostedZones:ListHostedZonesByNameResponse' :: [HostedZone]
hostedZones = [HostedZone]
a} :: ListHostedZonesByNameResponse) (([HostedZone] -> f [HostedZone])
-> ListHostedZonesByNameResponse
-> f ListHostedZonesByNameResponse)
-> (([HostedZone] -> f [HostedZone])
-> [HostedZone] -> f [HostedZone])
-> ([HostedZone] -> f [HostedZone])
-> ListHostedZonesByNameResponse
-> f ListHostedZonesByNameResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. ([HostedZone] -> f [HostedZone]) -> [HostedZone] -> f [HostedZone]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
listHostedZonesByNameResponse_isTruncated :: Lens.Lens' ListHostedZonesByNameResponse Prelude.Bool
listHostedZonesByNameResponse_isTruncated :: (Bool -> f Bool)
-> ListHostedZonesByNameResponse -> f ListHostedZonesByNameResponse
listHostedZonesByNameResponse_isTruncated = (ListHostedZonesByNameResponse -> Bool)
-> (ListHostedZonesByNameResponse
-> Bool -> ListHostedZonesByNameResponse)
-> Lens
ListHostedZonesByNameResponse
ListHostedZonesByNameResponse
Bool
Bool
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListHostedZonesByNameResponse' {Bool
isTruncated :: Bool
$sel:isTruncated:ListHostedZonesByNameResponse' :: ListHostedZonesByNameResponse -> Bool
isTruncated} -> Bool
isTruncated) (\s :: ListHostedZonesByNameResponse
s@ListHostedZonesByNameResponse' {} Bool
a -> ListHostedZonesByNameResponse
s {$sel:isTruncated:ListHostedZonesByNameResponse' :: Bool
isTruncated = Bool
a} :: ListHostedZonesByNameResponse)
listHostedZonesByNameResponse_maxItems :: Lens.Lens' ListHostedZonesByNameResponse Prelude.Text
listHostedZonesByNameResponse_maxItems :: (Text -> f Text)
-> ListHostedZonesByNameResponse -> f ListHostedZonesByNameResponse
listHostedZonesByNameResponse_maxItems = (ListHostedZonesByNameResponse -> Text)
-> (ListHostedZonesByNameResponse
-> Text -> ListHostedZonesByNameResponse)
-> Lens
ListHostedZonesByNameResponse
ListHostedZonesByNameResponse
Text
Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListHostedZonesByNameResponse' {Text
maxItems :: Text
$sel:maxItems:ListHostedZonesByNameResponse' :: ListHostedZonesByNameResponse -> Text
maxItems} -> Text
maxItems) (\s :: ListHostedZonesByNameResponse
s@ListHostedZonesByNameResponse' {} Text
a -> ListHostedZonesByNameResponse
s {$sel:maxItems:ListHostedZonesByNameResponse' :: Text
maxItems = Text
a} :: ListHostedZonesByNameResponse)
instance Prelude.NFData ListHostedZonesByNameResponse