{-# 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.CreateHostedZone
(
CreateHostedZone (..),
newCreateHostedZone,
createHostedZone_delegationSetId,
createHostedZone_vpc,
createHostedZone_hostedZoneConfig,
createHostedZone_name,
createHostedZone_callerReference,
CreateHostedZoneResponse (..),
newCreateHostedZoneResponse,
createHostedZoneResponse_vpc,
createHostedZoneResponse_httpStatus,
createHostedZoneResponse_hostedZone,
createHostedZoneResponse_changeInfo,
createHostedZoneResponse_delegationSet,
createHostedZoneResponse_location,
)
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 CreateHostedZone = CreateHostedZone'
{
CreateHostedZone -> Maybe ResourceId
delegationSetId :: Prelude.Maybe ResourceId,
CreateHostedZone -> Maybe VPC
vpc :: Prelude.Maybe VPC,
CreateHostedZone -> Maybe HostedZoneConfig
hostedZoneConfig :: Prelude.Maybe HostedZoneConfig,
CreateHostedZone -> Text
name :: Prelude.Text,
CreateHostedZone -> Text
callerReference :: Prelude.Text
}
deriving (CreateHostedZone -> CreateHostedZone -> Bool
(CreateHostedZone -> CreateHostedZone -> Bool)
-> (CreateHostedZone -> CreateHostedZone -> Bool)
-> Eq CreateHostedZone
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: CreateHostedZone -> CreateHostedZone -> Bool
$c/= :: CreateHostedZone -> CreateHostedZone -> Bool
== :: CreateHostedZone -> CreateHostedZone -> Bool
$c== :: CreateHostedZone -> CreateHostedZone -> Bool
Prelude.Eq, ReadPrec [CreateHostedZone]
ReadPrec CreateHostedZone
Int -> ReadS CreateHostedZone
ReadS [CreateHostedZone]
(Int -> ReadS CreateHostedZone)
-> ReadS [CreateHostedZone]
-> ReadPrec CreateHostedZone
-> ReadPrec [CreateHostedZone]
-> Read CreateHostedZone
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [CreateHostedZone]
$creadListPrec :: ReadPrec [CreateHostedZone]
readPrec :: ReadPrec CreateHostedZone
$creadPrec :: ReadPrec CreateHostedZone
readList :: ReadS [CreateHostedZone]
$creadList :: ReadS [CreateHostedZone]
readsPrec :: Int -> ReadS CreateHostedZone
$creadsPrec :: Int -> ReadS CreateHostedZone
Prelude.Read, Int -> CreateHostedZone -> ShowS
[CreateHostedZone] -> ShowS
CreateHostedZone -> String
(Int -> CreateHostedZone -> ShowS)
-> (CreateHostedZone -> String)
-> ([CreateHostedZone] -> ShowS)
-> Show CreateHostedZone
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [CreateHostedZone] -> ShowS
$cshowList :: [CreateHostedZone] -> ShowS
show :: CreateHostedZone -> String
$cshow :: CreateHostedZone -> String
showsPrec :: Int -> CreateHostedZone -> ShowS
$cshowsPrec :: Int -> CreateHostedZone -> ShowS
Prelude.Show, (forall x. CreateHostedZone -> Rep CreateHostedZone x)
-> (forall x. Rep CreateHostedZone x -> CreateHostedZone)
-> Generic CreateHostedZone
forall x. Rep CreateHostedZone x -> CreateHostedZone
forall x. CreateHostedZone -> Rep CreateHostedZone x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep CreateHostedZone x -> CreateHostedZone
$cfrom :: forall x. CreateHostedZone -> Rep CreateHostedZone x
Prelude.Generic)
newCreateHostedZone ::
Prelude.Text ->
Prelude.Text ->
CreateHostedZone
newCreateHostedZone :: Text -> Text -> CreateHostedZone
newCreateHostedZone Text
pName_ Text
pCallerReference_ =
CreateHostedZone' :: Maybe ResourceId
-> Maybe VPC
-> Maybe HostedZoneConfig
-> Text
-> Text
-> CreateHostedZone
CreateHostedZone'
{ $sel:delegationSetId:CreateHostedZone' :: Maybe ResourceId
delegationSetId =
Maybe ResourceId
forall a. Maybe a
Prelude.Nothing,
$sel:vpc:CreateHostedZone' :: Maybe VPC
vpc = Maybe VPC
forall a. Maybe a
Prelude.Nothing,
$sel:hostedZoneConfig:CreateHostedZone' :: Maybe HostedZoneConfig
hostedZoneConfig = Maybe HostedZoneConfig
forall a. Maybe a
Prelude.Nothing,
$sel:name:CreateHostedZone' :: Text
name = Text
pName_,
$sel:callerReference:CreateHostedZone' :: Text
callerReference = Text
pCallerReference_
}
createHostedZone_delegationSetId :: Lens.Lens' CreateHostedZone (Prelude.Maybe ResourceId)
createHostedZone_delegationSetId :: (Maybe ResourceId -> f (Maybe ResourceId))
-> CreateHostedZone -> f CreateHostedZone
createHostedZone_delegationSetId = (CreateHostedZone -> Maybe ResourceId)
-> (CreateHostedZone -> Maybe ResourceId -> CreateHostedZone)
-> Lens
CreateHostedZone
CreateHostedZone
(Maybe ResourceId)
(Maybe ResourceId)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateHostedZone' {Maybe ResourceId
delegationSetId :: Maybe ResourceId
$sel:delegationSetId:CreateHostedZone' :: CreateHostedZone -> Maybe ResourceId
delegationSetId} -> Maybe ResourceId
delegationSetId) (\s :: CreateHostedZone
s@CreateHostedZone' {} Maybe ResourceId
a -> CreateHostedZone
s {$sel:delegationSetId:CreateHostedZone' :: Maybe ResourceId
delegationSetId = Maybe ResourceId
a} :: CreateHostedZone)
createHostedZone_vpc :: Lens.Lens' CreateHostedZone (Prelude.Maybe VPC)
createHostedZone_vpc :: (Maybe VPC -> f (Maybe VPC))
-> CreateHostedZone -> f CreateHostedZone
createHostedZone_vpc = (CreateHostedZone -> Maybe VPC)
-> (CreateHostedZone -> Maybe VPC -> CreateHostedZone)
-> Lens CreateHostedZone CreateHostedZone (Maybe VPC) (Maybe VPC)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateHostedZone' {Maybe VPC
vpc :: Maybe VPC
$sel:vpc:CreateHostedZone' :: CreateHostedZone -> Maybe VPC
vpc} -> Maybe VPC
vpc) (\s :: CreateHostedZone
s@CreateHostedZone' {} Maybe VPC
a -> CreateHostedZone
s {$sel:vpc:CreateHostedZone' :: Maybe VPC
vpc = Maybe VPC
a} :: CreateHostedZone)
createHostedZone_hostedZoneConfig :: Lens.Lens' CreateHostedZone (Prelude.Maybe HostedZoneConfig)
createHostedZone_hostedZoneConfig :: (Maybe HostedZoneConfig -> f (Maybe HostedZoneConfig))
-> CreateHostedZone -> f CreateHostedZone
createHostedZone_hostedZoneConfig = (CreateHostedZone -> Maybe HostedZoneConfig)
-> (CreateHostedZone -> Maybe HostedZoneConfig -> CreateHostedZone)
-> Lens
CreateHostedZone
CreateHostedZone
(Maybe HostedZoneConfig)
(Maybe HostedZoneConfig)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateHostedZone' {Maybe HostedZoneConfig
hostedZoneConfig :: Maybe HostedZoneConfig
$sel:hostedZoneConfig:CreateHostedZone' :: CreateHostedZone -> Maybe HostedZoneConfig
hostedZoneConfig} -> Maybe HostedZoneConfig
hostedZoneConfig) (\s :: CreateHostedZone
s@CreateHostedZone' {} Maybe HostedZoneConfig
a -> CreateHostedZone
s {$sel:hostedZoneConfig:CreateHostedZone' :: Maybe HostedZoneConfig
hostedZoneConfig = Maybe HostedZoneConfig
a} :: CreateHostedZone)
createHostedZone_name :: Lens.Lens' CreateHostedZone Prelude.Text
createHostedZone_name :: (Text -> f Text) -> CreateHostedZone -> f CreateHostedZone
createHostedZone_name = (CreateHostedZone -> Text)
-> (CreateHostedZone -> Text -> CreateHostedZone)
-> Lens CreateHostedZone CreateHostedZone Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateHostedZone' {Text
name :: Text
$sel:name:CreateHostedZone' :: CreateHostedZone -> Text
name} -> Text
name) (\s :: CreateHostedZone
s@CreateHostedZone' {} Text
a -> CreateHostedZone
s {$sel:name:CreateHostedZone' :: Text
name = Text
a} :: CreateHostedZone)
createHostedZone_callerReference :: Lens.Lens' CreateHostedZone Prelude.Text
createHostedZone_callerReference :: (Text -> f Text) -> CreateHostedZone -> f CreateHostedZone
createHostedZone_callerReference = (CreateHostedZone -> Text)
-> (CreateHostedZone -> Text -> CreateHostedZone)
-> Lens CreateHostedZone CreateHostedZone Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateHostedZone' {Text
callerReference :: Text
$sel:callerReference:CreateHostedZone' :: CreateHostedZone -> Text
callerReference} -> Text
callerReference) (\s :: CreateHostedZone
s@CreateHostedZone' {} Text
a -> CreateHostedZone
s {$sel:callerReference:CreateHostedZone' :: Text
callerReference = Text
a} :: CreateHostedZone)
instance Core.AWSRequest CreateHostedZone where
type
AWSResponse CreateHostedZone =
CreateHostedZoneResponse
request :: CreateHostedZone -> Request CreateHostedZone
request = Service -> CreateHostedZone -> Request CreateHostedZone
forall a. (ToRequest a, ToElement a) => Service -> a -> Request a
Request.postXML Service
defaultService
response :: Logger
-> Service
-> Proxy CreateHostedZone
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse CreateHostedZone)))
response =
(Int
-> ResponseHeaders
-> [Node]
-> Either String (AWSResponse CreateHostedZone))
-> Logger
-> Service
-> Proxy CreateHostedZone
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse CreateHostedZone)))
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 VPC
-> Int
-> HostedZone
-> ChangeInfo
-> DelegationSet
-> Text
-> CreateHostedZoneResponse
CreateHostedZoneResponse'
(Maybe VPC
-> Int
-> HostedZone
-> ChangeInfo
-> DelegationSet
-> Text
-> CreateHostedZoneResponse)
-> Either String (Maybe VPC)
-> Either
String
(Int
-> HostedZone
-> ChangeInfo
-> DelegationSet
-> Text
-> CreateHostedZoneResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> ([Node]
x [Node] -> Text -> Either String (Maybe VPC)
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"VPC")
Either
String
(Int
-> HostedZone
-> ChangeInfo
-> DelegationSet
-> Text
-> CreateHostedZoneResponse)
-> Either String Int
-> Either
String
(HostedZone
-> ChangeInfo -> DelegationSet -> Text -> CreateHostedZoneResponse)
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
-> ChangeInfo -> DelegationSet -> Text -> CreateHostedZoneResponse)
-> Either String HostedZone
-> Either
String
(ChangeInfo -> DelegationSet -> Text -> CreateHostedZoneResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x [Node] -> Text -> Either String HostedZone
forall a. FromXML a => [Node] -> Text -> Either String a
Core..@ Text
"HostedZone")
Either
String
(ChangeInfo -> DelegationSet -> Text -> CreateHostedZoneResponse)
-> Either String ChangeInfo
-> Either
String (DelegationSet -> Text -> CreateHostedZoneResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x [Node] -> Text -> Either String ChangeInfo
forall a. FromXML a => [Node] -> Text -> Either String a
Core..@ Text
"ChangeInfo")
Either String (DelegationSet -> Text -> CreateHostedZoneResponse)
-> Either String DelegationSet
-> Either String (Text -> CreateHostedZoneResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x [Node] -> Text -> Either String DelegationSet
forall a. FromXML a => [Node] -> Text -> Either String a
Core..@ Text
"DelegationSet")
Either String (Text -> CreateHostedZoneResponse)
-> Either String Text -> Either String CreateHostedZoneResponse
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (ResponseHeaders
h ResponseHeaders -> HeaderName -> Either String Text
forall a.
FromText a =>
ResponseHeaders -> HeaderName -> Either String a
Core..# HeaderName
"Location")
)
instance Prelude.Hashable CreateHostedZone
instance Prelude.NFData CreateHostedZone
instance Core.ToElement CreateHostedZone where
toElement :: CreateHostedZone -> Element
toElement =
Name -> CreateHostedZone -> Element
forall a. ToXML a => Name -> a -> Element
Core.mkElement
Name
"{https://route53.amazonaws.com/doc/2013-04-01/}CreateHostedZoneRequest"
instance Core.ToHeaders CreateHostedZone where
toHeaders :: CreateHostedZone -> ResponseHeaders
toHeaders = ResponseHeaders -> CreateHostedZone -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const ResponseHeaders
forall a. Monoid a => a
Prelude.mempty
instance Core.ToPath CreateHostedZone where
toPath :: CreateHostedZone -> ByteString
toPath = ByteString -> CreateHostedZone -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/2013-04-01/hostedzone"
instance Core.ToQuery CreateHostedZone where
toQuery :: CreateHostedZone -> QueryString
toQuery = QueryString -> CreateHostedZone -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
instance Core.ToXML CreateHostedZone where
toXML :: CreateHostedZone -> XML
toXML CreateHostedZone' {Maybe ResourceId
Maybe HostedZoneConfig
Maybe VPC
Text
callerReference :: Text
name :: Text
hostedZoneConfig :: Maybe HostedZoneConfig
vpc :: Maybe VPC
delegationSetId :: Maybe ResourceId
$sel:callerReference:CreateHostedZone' :: CreateHostedZone -> Text
$sel:name:CreateHostedZone' :: CreateHostedZone -> Text
$sel:hostedZoneConfig:CreateHostedZone' :: CreateHostedZone -> Maybe HostedZoneConfig
$sel:vpc:CreateHostedZone' :: CreateHostedZone -> Maybe VPC
$sel:delegationSetId:CreateHostedZone' :: CreateHostedZone -> Maybe ResourceId
..} =
[XML] -> XML
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ Name
"DelegationSetId" Name -> Maybe ResourceId -> XML
forall a. ToXML a => Name -> a -> XML
Core.@= Maybe ResourceId
delegationSetId,
Name
"VPC" Name -> Maybe VPC -> XML
forall a. ToXML a => Name -> a -> XML
Core.@= Maybe VPC
vpc,
Name
"HostedZoneConfig" Name -> Maybe HostedZoneConfig -> XML
forall a. ToXML a => Name -> a -> XML
Core.@= Maybe HostedZoneConfig
hostedZoneConfig,
Name
"Name" Name -> Text -> XML
forall a. ToXML a => Name -> a -> XML
Core.@= Text
name,
Name
"CallerReference" Name -> Text -> XML
forall a. ToXML a => Name -> a -> XML
Core.@= Text
callerReference
]
data CreateHostedZoneResponse = CreateHostedZoneResponse'
{
CreateHostedZoneResponse -> Maybe VPC
vpc :: Prelude.Maybe VPC,
CreateHostedZoneResponse -> Int
httpStatus :: Prelude.Int,
CreateHostedZoneResponse -> HostedZone
hostedZone :: HostedZone,
CreateHostedZoneResponse -> ChangeInfo
changeInfo :: ChangeInfo,
CreateHostedZoneResponse -> DelegationSet
delegationSet :: DelegationSet,
CreateHostedZoneResponse -> Text
location :: Prelude.Text
}
deriving (CreateHostedZoneResponse -> CreateHostedZoneResponse -> Bool
(CreateHostedZoneResponse -> CreateHostedZoneResponse -> Bool)
-> (CreateHostedZoneResponse -> CreateHostedZoneResponse -> Bool)
-> Eq CreateHostedZoneResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: CreateHostedZoneResponse -> CreateHostedZoneResponse -> Bool
$c/= :: CreateHostedZoneResponse -> CreateHostedZoneResponse -> Bool
== :: CreateHostedZoneResponse -> CreateHostedZoneResponse -> Bool
$c== :: CreateHostedZoneResponse -> CreateHostedZoneResponse -> Bool
Prelude.Eq, ReadPrec [CreateHostedZoneResponse]
ReadPrec CreateHostedZoneResponse
Int -> ReadS CreateHostedZoneResponse
ReadS [CreateHostedZoneResponse]
(Int -> ReadS CreateHostedZoneResponse)
-> ReadS [CreateHostedZoneResponse]
-> ReadPrec CreateHostedZoneResponse
-> ReadPrec [CreateHostedZoneResponse]
-> Read CreateHostedZoneResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [CreateHostedZoneResponse]
$creadListPrec :: ReadPrec [CreateHostedZoneResponse]
readPrec :: ReadPrec CreateHostedZoneResponse
$creadPrec :: ReadPrec CreateHostedZoneResponse
readList :: ReadS [CreateHostedZoneResponse]
$creadList :: ReadS [CreateHostedZoneResponse]
readsPrec :: Int -> ReadS CreateHostedZoneResponse
$creadsPrec :: Int -> ReadS CreateHostedZoneResponse
Prelude.Read, Int -> CreateHostedZoneResponse -> ShowS
[CreateHostedZoneResponse] -> ShowS
CreateHostedZoneResponse -> String
(Int -> CreateHostedZoneResponse -> ShowS)
-> (CreateHostedZoneResponse -> String)
-> ([CreateHostedZoneResponse] -> ShowS)
-> Show CreateHostedZoneResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [CreateHostedZoneResponse] -> ShowS
$cshowList :: [CreateHostedZoneResponse] -> ShowS
show :: CreateHostedZoneResponse -> String
$cshow :: CreateHostedZoneResponse -> String
showsPrec :: Int -> CreateHostedZoneResponse -> ShowS
$cshowsPrec :: Int -> CreateHostedZoneResponse -> ShowS
Prelude.Show, (forall x.
CreateHostedZoneResponse -> Rep CreateHostedZoneResponse x)
-> (forall x.
Rep CreateHostedZoneResponse x -> CreateHostedZoneResponse)
-> Generic CreateHostedZoneResponse
forall x.
Rep CreateHostedZoneResponse x -> CreateHostedZoneResponse
forall x.
CreateHostedZoneResponse -> Rep CreateHostedZoneResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep CreateHostedZoneResponse x -> CreateHostedZoneResponse
$cfrom :: forall x.
CreateHostedZoneResponse -> Rep CreateHostedZoneResponse x
Prelude.Generic)
newCreateHostedZoneResponse ::
Prelude.Int ->
HostedZone ->
ChangeInfo ->
DelegationSet ->
Prelude.Text ->
CreateHostedZoneResponse
newCreateHostedZoneResponse :: Int
-> HostedZone
-> ChangeInfo
-> DelegationSet
-> Text
-> CreateHostedZoneResponse
newCreateHostedZoneResponse
Int
pHttpStatus_
HostedZone
pHostedZone_
ChangeInfo
pChangeInfo_
DelegationSet
pDelegationSet_
Text
pLocation_ =
CreateHostedZoneResponse' :: Maybe VPC
-> Int
-> HostedZone
-> ChangeInfo
-> DelegationSet
-> Text
-> CreateHostedZoneResponse
CreateHostedZoneResponse'
{ $sel:vpc:CreateHostedZoneResponse' :: Maybe VPC
vpc = Maybe VPC
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:CreateHostedZoneResponse' :: Int
httpStatus = Int
pHttpStatus_,
$sel:hostedZone:CreateHostedZoneResponse' :: HostedZone
hostedZone = HostedZone
pHostedZone_,
$sel:changeInfo:CreateHostedZoneResponse' :: ChangeInfo
changeInfo = ChangeInfo
pChangeInfo_,
$sel:delegationSet:CreateHostedZoneResponse' :: DelegationSet
delegationSet = DelegationSet
pDelegationSet_,
$sel:location:CreateHostedZoneResponse' :: Text
location = Text
pLocation_
}
createHostedZoneResponse_vpc :: Lens.Lens' CreateHostedZoneResponse (Prelude.Maybe VPC)
createHostedZoneResponse_vpc :: (Maybe VPC -> f (Maybe VPC))
-> CreateHostedZoneResponse -> f CreateHostedZoneResponse
createHostedZoneResponse_vpc = (CreateHostedZoneResponse -> Maybe VPC)
-> (CreateHostedZoneResponse
-> Maybe VPC -> CreateHostedZoneResponse)
-> Lens
CreateHostedZoneResponse
CreateHostedZoneResponse
(Maybe VPC)
(Maybe VPC)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateHostedZoneResponse' {Maybe VPC
vpc :: Maybe VPC
$sel:vpc:CreateHostedZoneResponse' :: CreateHostedZoneResponse -> Maybe VPC
vpc} -> Maybe VPC
vpc) (\s :: CreateHostedZoneResponse
s@CreateHostedZoneResponse' {} Maybe VPC
a -> CreateHostedZoneResponse
s {$sel:vpc:CreateHostedZoneResponse' :: Maybe VPC
vpc = Maybe VPC
a} :: CreateHostedZoneResponse)
createHostedZoneResponse_httpStatus :: Lens.Lens' CreateHostedZoneResponse Prelude.Int
createHostedZoneResponse_httpStatus :: (Int -> f Int)
-> CreateHostedZoneResponse -> f CreateHostedZoneResponse
createHostedZoneResponse_httpStatus = (CreateHostedZoneResponse -> Int)
-> (CreateHostedZoneResponse -> Int -> CreateHostedZoneResponse)
-> Lens CreateHostedZoneResponse CreateHostedZoneResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateHostedZoneResponse' {Int
httpStatus :: Int
$sel:httpStatus:CreateHostedZoneResponse' :: CreateHostedZoneResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: CreateHostedZoneResponse
s@CreateHostedZoneResponse' {} Int
a -> CreateHostedZoneResponse
s {$sel:httpStatus:CreateHostedZoneResponse' :: Int
httpStatus = Int
a} :: CreateHostedZoneResponse)
createHostedZoneResponse_hostedZone :: Lens.Lens' CreateHostedZoneResponse HostedZone
createHostedZoneResponse_hostedZone :: (HostedZone -> f HostedZone)
-> CreateHostedZoneResponse -> f CreateHostedZoneResponse
createHostedZoneResponse_hostedZone = (CreateHostedZoneResponse -> HostedZone)
-> (CreateHostedZoneResponse
-> HostedZone -> CreateHostedZoneResponse)
-> Lens
CreateHostedZoneResponse
CreateHostedZoneResponse
HostedZone
HostedZone
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateHostedZoneResponse' {HostedZone
hostedZone :: HostedZone
$sel:hostedZone:CreateHostedZoneResponse' :: CreateHostedZoneResponse -> HostedZone
hostedZone} -> HostedZone
hostedZone) (\s :: CreateHostedZoneResponse
s@CreateHostedZoneResponse' {} HostedZone
a -> CreateHostedZoneResponse
s {$sel:hostedZone:CreateHostedZoneResponse' :: HostedZone
hostedZone = HostedZone
a} :: CreateHostedZoneResponse)
createHostedZoneResponse_changeInfo :: Lens.Lens' CreateHostedZoneResponse ChangeInfo
createHostedZoneResponse_changeInfo :: (ChangeInfo -> f ChangeInfo)
-> CreateHostedZoneResponse -> f CreateHostedZoneResponse
createHostedZoneResponse_changeInfo = (CreateHostedZoneResponse -> ChangeInfo)
-> (CreateHostedZoneResponse
-> ChangeInfo -> CreateHostedZoneResponse)
-> Lens
CreateHostedZoneResponse
CreateHostedZoneResponse
ChangeInfo
ChangeInfo
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateHostedZoneResponse' {ChangeInfo
changeInfo :: ChangeInfo
$sel:changeInfo:CreateHostedZoneResponse' :: CreateHostedZoneResponse -> ChangeInfo
changeInfo} -> ChangeInfo
changeInfo) (\s :: CreateHostedZoneResponse
s@CreateHostedZoneResponse' {} ChangeInfo
a -> CreateHostedZoneResponse
s {$sel:changeInfo:CreateHostedZoneResponse' :: ChangeInfo
changeInfo = ChangeInfo
a} :: CreateHostedZoneResponse)
createHostedZoneResponse_delegationSet :: Lens.Lens' CreateHostedZoneResponse DelegationSet
createHostedZoneResponse_delegationSet :: (DelegationSet -> f DelegationSet)
-> CreateHostedZoneResponse -> f CreateHostedZoneResponse
createHostedZoneResponse_delegationSet = (CreateHostedZoneResponse -> DelegationSet)
-> (CreateHostedZoneResponse
-> DelegationSet -> CreateHostedZoneResponse)
-> Lens
CreateHostedZoneResponse
CreateHostedZoneResponse
DelegationSet
DelegationSet
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateHostedZoneResponse' {DelegationSet
delegationSet :: DelegationSet
$sel:delegationSet:CreateHostedZoneResponse' :: CreateHostedZoneResponse -> DelegationSet
delegationSet} -> DelegationSet
delegationSet) (\s :: CreateHostedZoneResponse
s@CreateHostedZoneResponse' {} DelegationSet
a -> CreateHostedZoneResponse
s {$sel:delegationSet:CreateHostedZoneResponse' :: DelegationSet
delegationSet = DelegationSet
a} :: CreateHostedZoneResponse)
createHostedZoneResponse_location :: Lens.Lens' CreateHostedZoneResponse Prelude.Text
createHostedZoneResponse_location :: (Text -> f Text)
-> CreateHostedZoneResponse -> f CreateHostedZoneResponse
createHostedZoneResponse_location = (CreateHostedZoneResponse -> Text)
-> (CreateHostedZoneResponse -> Text -> CreateHostedZoneResponse)
-> Lens CreateHostedZoneResponse CreateHostedZoneResponse Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateHostedZoneResponse' {Text
location :: Text
$sel:location:CreateHostedZoneResponse' :: CreateHostedZoneResponse -> Text
location} -> Text
location) (\s :: CreateHostedZoneResponse
s@CreateHostedZoneResponse' {} Text
a -> CreateHostedZoneResponse
s {$sel:location:CreateHostedZoneResponse' :: Text
location = Text
a} :: CreateHostedZoneResponse)
instance Prelude.NFData CreateHostedZoneResponse