{-# 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.Route53AutoNaming.CreatePublicDnsNamespace
(
CreatePublicDnsNamespace (..),
newCreatePublicDnsNamespace,
createPublicDnsNamespace_creatorRequestId,
createPublicDnsNamespace_description,
createPublicDnsNamespace_tags,
createPublicDnsNamespace_properties,
createPublicDnsNamespace_name,
CreatePublicDnsNamespaceResponse (..),
newCreatePublicDnsNamespaceResponse,
createPublicDnsNamespaceResponse_operationId,
createPublicDnsNamespaceResponse_httpStatus,
)
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.Route53AutoNaming.Types
data CreatePublicDnsNamespace = CreatePublicDnsNamespace'
{
CreatePublicDnsNamespace -> Maybe Text
creatorRequestId :: Prelude.Maybe Prelude.Text,
CreatePublicDnsNamespace -> Maybe Text
description :: Prelude.Maybe Prelude.Text,
CreatePublicDnsNamespace -> Maybe [Tag]
tags :: Prelude.Maybe [Tag],
CreatePublicDnsNamespace -> Maybe PublicDnsNamespaceProperties
properties :: Prelude.Maybe PublicDnsNamespaceProperties,
CreatePublicDnsNamespace -> Text
name :: Prelude.Text
}
deriving (CreatePublicDnsNamespace -> CreatePublicDnsNamespace -> Bool
(CreatePublicDnsNamespace -> CreatePublicDnsNamespace -> Bool)
-> (CreatePublicDnsNamespace -> CreatePublicDnsNamespace -> Bool)
-> Eq CreatePublicDnsNamespace
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: CreatePublicDnsNamespace -> CreatePublicDnsNamespace -> Bool
$c/= :: CreatePublicDnsNamespace -> CreatePublicDnsNamespace -> Bool
== :: CreatePublicDnsNamespace -> CreatePublicDnsNamespace -> Bool
$c== :: CreatePublicDnsNamespace -> CreatePublicDnsNamespace -> Bool
Prelude.Eq, ReadPrec [CreatePublicDnsNamespace]
ReadPrec CreatePublicDnsNamespace
Int -> ReadS CreatePublicDnsNamespace
ReadS [CreatePublicDnsNamespace]
(Int -> ReadS CreatePublicDnsNamespace)
-> ReadS [CreatePublicDnsNamespace]
-> ReadPrec CreatePublicDnsNamespace
-> ReadPrec [CreatePublicDnsNamespace]
-> Read CreatePublicDnsNamespace
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [CreatePublicDnsNamespace]
$creadListPrec :: ReadPrec [CreatePublicDnsNamespace]
readPrec :: ReadPrec CreatePublicDnsNamespace
$creadPrec :: ReadPrec CreatePublicDnsNamespace
readList :: ReadS [CreatePublicDnsNamespace]
$creadList :: ReadS [CreatePublicDnsNamespace]
readsPrec :: Int -> ReadS CreatePublicDnsNamespace
$creadsPrec :: Int -> ReadS CreatePublicDnsNamespace
Prelude.Read, Int -> CreatePublicDnsNamespace -> ShowS
[CreatePublicDnsNamespace] -> ShowS
CreatePublicDnsNamespace -> String
(Int -> CreatePublicDnsNamespace -> ShowS)
-> (CreatePublicDnsNamespace -> String)
-> ([CreatePublicDnsNamespace] -> ShowS)
-> Show CreatePublicDnsNamespace
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [CreatePublicDnsNamespace] -> ShowS
$cshowList :: [CreatePublicDnsNamespace] -> ShowS
show :: CreatePublicDnsNamespace -> String
$cshow :: CreatePublicDnsNamespace -> String
showsPrec :: Int -> CreatePublicDnsNamespace -> ShowS
$cshowsPrec :: Int -> CreatePublicDnsNamespace -> ShowS
Prelude.Show, (forall x.
CreatePublicDnsNamespace -> Rep CreatePublicDnsNamespace x)
-> (forall x.
Rep CreatePublicDnsNamespace x -> CreatePublicDnsNamespace)
-> Generic CreatePublicDnsNamespace
forall x.
Rep CreatePublicDnsNamespace x -> CreatePublicDnsNamespace
forall x.
CreatePublicDnsNamespace -> Rep CreatePublicDnsNamespace x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep CreatePublicDnsNamespace x -> CreatePublicDnsNamespace
$cfrom :: forall x.
CreatePublicDnsNamespace -> Rep CreatePublicDnsNamespace x
Prelude.Generic)
newCreatePublicDnsNamespace ::
Prelude.Text ->
CreatePublicDnsNamespace
newCreatePublicDnsNamespace :: Text -> CreatePublicDnsNamespace
newCreatePublicDnsNamespace Text
pName_ =
CreatePublicDnsNamespace' :: Maybe Text
-> Maybe Text
-> Maybe [Tag]
-> Maybe PublicDnsNamespaceProperties
-> Text
-> CreatePublicDnsNamespace
CreatePublicDnsNamespace'
{ $sel:creatorRequestId:CreatePublicDnsNamespace' :: Maybe Text
creatorRequestId =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:description:CreatePublicDnsNamespace' :: Maybe Text
description = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:tags:CreatePublicDnsNamespace' :: Maybe [Tag]
tags = Maybe [Tag]
forall a. Maybe a
Prelude.Nothing,
$sel:properties:CreatePublicDnsNamespace' :: Maybe PublicDnsNamespaceProperties
properties = Maybe PublicDnsNamespaceProperties
forall a. Maybe a
Prelude.Nothing,
$sel:name:CreatePublicDnsNamespace' :: Text
name = Text
pName_
}
createPublicDnsNamespace_creatorRequestId :: Lens.Lens' CreatePublicDnsNamespace (Prelude.Maybe Prelude.Text)
createPublicDnsNamespace_creatorRequestId :: (Maybe Text -> f (Maybe Text))
-> CreatePublicDnsNamespace -> f CreatePublicDnsNamespace
createPublicDnsNamespace_creatorRequestId = (CreatePublicDnsNamespace -> Maybe Text)
-> (CreatePublicDnsNamespace
-> Maybe Text -> CreatePublicDnsNamespace)
-> Lens
CreatePublicDnsNamespace
CreatePublicDnsNamespace
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreatePublicDnsNamespace' {Maybe Text
creatorRequestId :: Maybe Text
$sel:creatorRequestId:CreatePublicDnsNamespace' :: CreatePublicDnsNamespace -> Maybe Text
creatorRequestId} -> Maybe Text
creatorRequestId) (\s :: CreatePublicDnsNamespace
s@CreatePublicDnsNamespace' {} Maybe Text
a -> CreatePublicDnsNamespace
s {$sel:creatorRequestId:CreatePublicDnsNamespace' :: Maybe Text
creatorRequestId = Maybe Text
a} :: CreatePublicDnsNamespace)
createPublicDnsNamespace_description :: Lens.Lens' CreatePublicDnsNamespace (Prelude.Maybe Prelude.Text)
createPublicDnsNamespace_description :: (Maybe Text -> f (Maybe Text))
-> CreatePublicDnsNamespace -> f CreatePublicDnsNamespace
createPublicDnsNamespace_description = (CreatePublicDnsNamespace -> Maybe Text)
-> (CreatePublicDnsNamespace
-> Maybe Text -> CreatePublicDnsNamespace)
-> Lens
CreatePublicDnsNamespace
CreatePublicDnsNamespace
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreatePublicDnsNamespace' {Maybe Text
description :: Maybe Text
$sel:description:CreatePublicDnsNamespace' :: CreatePublicDnsNamespace -> Maybe Text
description} -> Maybe Text
description) (\s :: CreatePublicDnsNamespace
s@CreatePublicDnsNamespace' {} Maybe Text
a -> CreatePublicDnsNamespace
s {$sel:description:CreatePublicDnsNamespace' :: Maybe Text
description = Maybe Text
a} :: CreatePublicDnsNamespace)
createPublicDnsNamespace_tags :: Lens.Lens' CreatePublicDnsNamespace (Prelude.Maybe [Tag])
createPublicDnsNamespace_tags :: (Maybe [Tag] -> f (Maybe [Tag]))
-> CreatePublicDnsNamespace -> f CreatePublicDnsNamespace
createPublicDnsNamespace_tags = (CreatePublicDnsNamespace -> Maybe [Tag])
-> (CreatePublicDnsNamespace
-> Maybe [Tag] -> CreatePublicDnsNamespace)
-> Lens
CreatePublicDnsNamespace
CreatePublicDnsNamespace
(Maybe [Tag])
(Maybe [Tag])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreatePublicDnsNamespace' {Maybe [Tag]
tags :: Maybe [Tag]
$sel:tags:CreatePublicDnsNamespace' :: CreatePublicDnsNamespace -> Maybe [Tag]
tags} -> Maybe [Tag]
tags) (\s :: CreatePublicDnsNamespace
s@CreatePublicDnsNamespace' {} Maybe [Tag]
a -> CreatePublicDnsNamespace
s {$sel:tags:CreatePublicDnsNamespace' :: Maybe [Tag]
tags = Maybe [Tag]
a} :: CreatePublicDnsNamespace) ((Maybe [Tag] -> f (Maybe [Tag]))
-> CreatePublicDnsNamespace -> f CreatePublicDnsNamespace)
-> ((Maybe [Tag] -> f (Maybe [Tag]))
-> Maybe [Tag] -> f (Maybe [Tag]))
-> (Maybe [Tag] -> f (Maybe [Tag]))
-> CreatePublicDnsNamespace
-> f CreatePublicDnsNamespace
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [Tag] [Tag] [Tag] [Tag]
-> Iso (Maybe [Tag]) (Maybe [Tag]) (Maybe [Tag]) (Maybe [Tag])
forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping AnIso [Tag] [Tag] [Tag] [Tag]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
createPublicDnsNamespace_properties :: Lens.Lens' CreatePublicDnsNamespace (Prelude.Maybe PublicDnsNamespaceProperties)
createPublicDnsNamespace_properties :: (Maybe PublicDnsNamespaceProperties
-> f (Maybe PublicDnsNamespaceProperties))
-> CreatePublicDnsNamespace -> f CreatePublicDnsNamespace
createPublicDnsNamespace_properties = (CreatePublicDnsNamespace -> Maybe PublicDnsNamespaceProperties)
-> (CreatePublicDnsNamespace
-> Maybe PublicDnsNamespaceProperties -> CreatePublicDnsNamespace)
-> Lens
CreatePublicDnsNamespace
CreatePublicDnsNamespace
(Maybe PublicDnsNamespaceProperties)
(Maybe PublicDnsNamespaceProperties)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreatePublicDnsNamespace' {Maybe PublicDnsNamespaceProperties
properties :: Maybe PublicDnsNamespaceProperties
$sel:properties:CreatePublicDnsNamespace' :: CreatePublicDnsNamespace -> Maybe PublicDnsNamespaceProperties
properties} -> Maybe PublicDnsNamespaceProperties
properties) (\s :: CreatePublicDnsNamespace
s@CreatePublicDnsNamespace' {} Maybe PublicDnsNamespaceProperties
a -> CreatePublicDnsNamespace
s {$sel:properties:CreatePublicDnsNamespace' :: Maybe PublicDnsNamespaceProperties
properties = Maybe PublicDnsNamespaceProperties
a} :: CreatePublicDnsNamespace)
createPublicDnsNamespace_name :: Lens.Lens' CreatePublicDnsNamespace Prelude.Text
createPublicDnsNamespace_name :: (Text -> f Text)
-> CreatePublicDnsNamespace -> f CreatePublicDnsNamespace
createPublicDnsNamespace_name = (CreatePublicDnsNamespace -> Text)
-> (CreatePublicDnsNamespace -> Text -> CreatePublicDnsNamespace)
-> Lens CreatePublicDnsNamespace CreatePublicDnsNamespace Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreatePublicDnsNamespace' {Text
name :: Text
$sel:name:CreatePublicDnsNamespace' :: CreatePublicDnsNamespace -> Text
name} -> Text
name) (\s :: CreatePublicDnsNamespace
s@CreatePublicDnsNamespace' {} Text
a -> CreatePublicDnsNamespace
s {$sel:name:CreatePublicDnsNamespace' :: Text
name = Text
a} :: CreatePublicDnsNamespace)
instance Core.AWSRequest CreatePublicDnsNamespace where
type
AWSResponse CreatePublicDnsNamespace =
CreatePublicDnsNamespaceResponse
request :: CreatePublicDnsNamespace -> Request CreatePublicDnsNamespace
request = Service
-> CreatePublicDnsNamespace -> Request CreatePublicDnsNamespace
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy CreatePublicDnsNamespace
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse CreatePublicDnsNamespace)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse CreatePublicDnsNamespace))
-> Logger
-> Service
-> Proxy CreatePublicDnsNamespace
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse CreatePublicDnsNamespace)))
forall (m :: * -> *) a.
MonadResource m =>
(Int -> ResponseHeaders -> Object -> Either String (AWSResponse a))
-> Logger
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveJSON
( \Int
s ResponseHeaders
h Object
x ->
Maybe Text -> Int -> CreatePublicDnsNamespaceResponse
CreatePublicDnsNamespaceResponse'
(Maybe Text -> Int -> CreatePublicDnsNamespaceResponse)
-> Either String (Maybe Text)
-> Either String (Int -> CreatePublicDnsNamespaceResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Either String (Maybe Text)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"OperationId")
Either String (Int -> CreatePublicDnsNamespaceResponse)
-> Either String Int
-> Either String CreatePublicDnsNamespaceResponse
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))
)
instance Prelude.Hashable CreatePublicDnsNamespace
instance Prelude.NFData CreatePublicDnsNamespace
instance Core.ToHeaders CreatePublicDnsNamespace where
toHeaders :: CreatePublicDnsNamespace -> ResponseHeaders
toHeaders =
ResponseHeaders -> CreatePublicDnsNamespace -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const
( [ResponseHeaders] -> ResponseHeaders
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ HeaderName
"X-Amz-Target"
HeaderName -> ByteString -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# ( ByteString
"Route53AutoNaming_v20170314.CreatePublicDnsNamespace" ::
Prelude.ByteString
),
HeaderName
"Content-Type"
HeaderName -> ByteString -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# ( ByteString
"application/x-amz-json-1.1" ::
Prelude.ByteString
)
]
)
instance Core.ToJSON CreatePublicDnsNamespace where
toJSON :: CreatePublicDnsNamespace -> Value
toJSON CreatePublicDnsNamespace' {Maybe [Tag]
Maybe Text
Maybe PublicDnsNamespaceProperties
Text
name :: Text
properties :: Maybe PublicDnsNamespaceProperties
tags :: Maybe [Tag]
description :: Maybe Text
creatorRequestId :: Maybe Text
$sel:name:CreatePublicDnsNamespace' :: CreatePublicDnsNamespace -> Text
$sel:properties:CreatePublicDnsNamespace' :: CreatePublicDnsNamespace -> Maybe PublicDnsNamespaceProperties
$sel:tags:CreatePublicDnsNamespace' :: CreatePublicDnsNamespace -> Maybe [Tag]
$sel:description:CreatePublicDnsNamespace' :: CreatePublicDnsNamespace -> Maybe Text
$sel:creatorRequestId:CreatePublicDnsNamespace' :: CreatePublicDnsNamespace -> Maybe Text
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Text
"CreatorRequestId" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
creatorRequestId,
(Text
"Description" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
description,
(Text
"Tags" Text -> [Tag] -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) ([Tag] -> Pair) -> Maybe [Tag] -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Tag]
tags,
(Text
"Properties" Text -> PublicDnsNamespaceProperties -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (PublicDnsNamespaceProperties -> Pair)
-> Maybe PublicDnsNamespaceProperties -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe PublicDnsNamespaceProperties
properties,
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"Name" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
name)
]
)
instance Core.ToPath CreatePublicDnsNamespace where
toPath :: CreatePublicDnsNamespace -> ByteString
toPath = ByteString -> CreatePublicDnsNamespace -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Core.ToQuery CreatePublicDnsNamespace where
toQuery :: CreatePublicDnsNamespace -> QueryString
toQuery = QueryString -> CreatePublicDnsNamespace -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data CreatePublicDnsNamespaceResponse = CreatePublicDnsNamespaceResponse'
{
CreatePublicDnsNamespaceResponse -> Maybe Text
operationId :: Prelude.Maybe Prelude.Text,
CreatePublicDnsNamespaceResponse -> Int
httpStatus :: Prelude.Int
}
deriving (CreatePublicDnsNamespaceResponse
-> CreatePublicDnsNamespaceResponse -> Bool
(CreatePublicDnsNamespaceResponse
-> CreatePublicDnsNamespaceResponse -> Bool)
-> (CreatePublicDnsNamespaceResponse
-> CreatePublicDnsNamespaceResponse -> Bool)
-> Eq CreatePublicDnsNamespaceResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: CreatePublicDnsNamespaceResponse
-> CreatePublicDnsNamespaceResponse -> Bool
$c/= :: CreatePublicDnsNamespaceResponse
-> CreatePublicDnsNamespaceResponse -> Bool
== :: CreatePublicDnsNamespaceResponse
-> CreatePublicDnsNamespaceResponse -> Bool
$c== :: CreatePublicDnsNamespaceResponse
-> CreatePublicDnsNamespaceResponse -> Bool
Prelude.Eq, ReadPrec [CreatePublicDnsNamespaceResponse]
ReadPrec CreatePublicDnsNamespaceResponse
Int -> ReadS CreatePublicDnsNamespaceResponse
ReadS [CreatePublicDnsNamespaceResponse]
(Int -> ReadS CreatePublicDnsNamespaceResponse)
-> ReadS [CreatePublicDnsNamespaceResponse]
-> ReadPrec CreatePublicDnsNamespaceResponse
-> ReadPrec [CreatePublicDnsNamespaceResponse]
-> Read CreatePublicDnsNamespaceResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [CreatePublicDnsNamespaceResponse]
$creadListPrec :: ReadPrec [CreatePublicDnsNamespaceResponse]
readPrec :: ReadPrec CreatePublicDnsNamespaceResponse
$creadPrec :: ReadPrec CreatePublicDnsNamespaceResponse
readList :: ReadS [CreatePublicDnsNamespaceResponse]
$creadList :: ReadS [CreatePublicDnsNamespaceResponse]
readsPrec :: Int -> ReadS CreatePublicDnsNamespaceResponse
$creadsPrec :: Int -> ReadS CreatePublicDnsNamespaceResponse
Prelude.Read, Int -> CreatePublicDnsNamespaceResponse -> ShowS
[CreatePublicDnsNamespaceResponse] -> ShowS
CreatePublicDnsNamespaceResponse -> String
(Int -> CreatePublicDnsNamespaceResponse -> ShowS)
-> (CreatePublicDnsNamespaceResponse -> String)
-> ([CreatePublicDnsNamespaceResponse] -> ShowS)
-> Show CreatePublicDnsNamespaceResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [CreatePublicDnsNamespaceResponse] -> ShowS
$cshowList :: [CreatePublicDnsNamespaceResponse] -> ShowS
show :: CreatePublicDnsNamespaceResponse -> String
$cshow :: CreatePublicDnsNamespaceResponse -> String
showsPrec :: Int -> CreatePublicDnsNamespaceResponse -> ShowS
$cshowsPrec :: Int -> CreatePublicDnsNamespaceResponse -> ShowS
Prelude.Show, (forall x.
CreatePublicDnsNamespaceResponse
-> Rep CreatePublicDnsNamespaceResponse x)
-> (forall x.
Rep CreatePublicDnsNamespaceResponse x
-> CreatePublicDnsNamespaceResponse)
-> Generic CreatePublicDnsNamespaceResponse
forall x.
Rep CreatePublicDnsNamespaceResponse x
-> CreatePublicDnsNamespaceResponse
forall x.
CreatePublicDnsNamespaceResponse
-> Rep CreatePublicDnsNamespaceResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep CreatePublicDnsNamespaceResponse x
-> CreatePublicDnsNamespaceResponse
$cfrom :: forall x.
CreatePublicDnsNamespaceResponse
-> Rep CreatePublicDnsNamespaceResponse x
Prelude.Generic)
newCreatePublicDnsNamespaceResponse ::
Prelude.Int ->
CreatePublicDnsNamespaceResponse
newCreatePublicDnsNamespaceResponse :: Int -> CreatePublicDnsNamespaceResponse
newCreatePublicDnsNamespaceResponse Int
pHttpStatus_ =
CreatePublicDnsNamespaceResponse' :: Maybe Text -> Int -> CreatePublicDnsNamespaceResponse
CreatePublicDnsNamespaceResponse'
{ $sel:operationId:CreatePublicDnsNamespaceResponse' :: Maybe Text
operationId =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:CreatePublicDnsNamespaceResponse' :: Int
httpStatus = Int
pHttpStatus_
}
createPublicDnsNamespaceResponse_operationId :: Lens.Lens' CreatePublicDnsNamespaceResponse (Prelude.Maybe Prelude.Text)
createPublicDnsNamespaceResponse_operationId :: (Maybe Text -> f (Maybe Text))
-> CreatePublicDnsNamespaceResponse
-> f CreatePublicDnsNamespaceResponse
createPublicDnsNamespaceResponse_operationId = (CreatePublicDnsNamespaceResponse -> Maybe Text)
-> (CreatePublicDnsNamespaceResponse
-> Maybe Text -> CreatePublicDnsNamespaceResponse)
-> Lens
CreatePublicDnsNamespaceResponse
CreatePublicDnsNamespaceResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreatePublicDnsNamespaceResponse' {Maybe Text
operationId :: Maybe Text
$sel:operationId:CreatePublicDnsNamespaceResponse' :: CreatePublicDnsNamespaceResponse -> Maybe Text
operationId} -> Maybe Text
operationId) (\s :: CreatePublicDnsNamespaceResponse
s@CreatePublicDnsNamespaceResponse' {} Maybe Text
a -> CreatePublicDnsNamespaceResponse
s {$sel:operationId:CreatePublicDnsNamespaceResponse' :: Maybe Text
operationId = Maybe Text
a} :: CreatePublicDnsNamespaceResponse)
createPublicDnsNamespaceResponse_httpStatus :: Lens.Lens' CreatePublicDnsNamespaceResponse Prelude.Int
createPublicDnsNamespaceResponse_httpStatus :: (Int -> f Int)
-> CreatePublicDnsNamespaceResponse
-> f CreatePublicDnsNamespaceResponse
createPublicDnsNamespaceResponse_httpStatus = (CreatePublicDnsNamespaceResponse -> Int)
-> (CreatePublicDnsNamespaceResponse
-> Int -> CreatePublicDnsNamespaceResponse)
-> Lens
CreatePublicDnsNamespaceResponse
CreatePublicDnsNamespaceResponse
Int
Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreatePublicDnsNamespaceResponse' {Int
httpStatus :: Int
$sel:httpStatus:CreatePublicDnsNamespaceResponse' :: CreatePublicDnsNamespaceResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: CreatePublicDnsNamespaceResponse
s@CreatePublicDnsNamespaceResponse' {} Int
a -> CreatePublicDnsNamespaceResponse
s {$sel:httpStatus:CreatePublicDnsNamespaceResponse' :: Int
httpStatus = Int
a} :: CreatePublicDnsNamespaceResponse)
instance
Prelude.NFData
CreatePublicDnsNamespaceResponse