{-# 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.Greengrass.CreateLoggerDefinitionVersion
(
CreateLoggerDefinitionVersion (..),
newCreateLoggerDefinitionVersion,
createLoggerDefinitionVersion_loggers,
createLoggerDefinitionVersion_amznClientToken,
createLoggerDefinitionVersion_loggerDefinitionId,
CreateLoggerDefinitionVersionResponse (..),
newCreateLoggerDefinitionVersionResponse,
createLoggerDefinitionVersionResponse_arn,
createLoggerDefinitionVersionResponse_creationTimestamp,
createLoggerDefinitionVersionResponse_version,
createLoggerDefinitionVersionResponse_id,
createLoggerDefinitionVersionResponse_httpStatus,
)
where
import qualified Amazonka.Core as Core
import Amazonka.Greengrass.Types
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
data CreateLoggerDefinitionVersion = CreateLoggerDefinitionVersion'
{
CreateLoggerDefinitionVersion -> Maybe [GreengrassLogger]
loggers :: Prelude.Maybe [GreengrassLogger],
CreateLoggerDefinitionVersion -> Maybe Text
amznClientToken :: Prelude.Maybe Prelude.Text,
CreateLoggerDefinitionVersion -> Text
loggerDefinitionId :: Prelude.Text
}
deriving (CreateLoggerDefinitionVersion
-> CreateLoggerDefinitionVersion -> Bool
(CreateLoggerDefinitionVersion
-> CreateLoggerDefinitionVersion -> Bool)
-> (CreateLoggerDefinitionVersion
-> CreateLoggerDefinitionVersion -> Bool)
-> Eq CreateLoggerDefinitionVersion
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: CreateLoggerDefinitionVersion
-> CreateLoggerDefinitionVersion -> Bool
$c/= :: CreateLoggerDefinitionVersion
-> CreateLoggerDefinitionVersion -> Bool
== :: CreateLoggerDefinitionVersion
-> CreateLoggerDefinitionVersion -> Bool
$c== :: CreateLoggerDefinitionVersion
-> CreateLoggerDefinitionVersion -> Bool
Prelude.Eq, ReadPrec [CreateLoggerDefinitionVersion]
ReadPrec CreateLoggerDefinitionVersion
Int -> ReadS CreateLoggerDefinitionVersion
ReadS [CreateLoggerDefinitionVersion]
(Int -> ReadS CreateLoggerDefinitionVersion)
-> ReadS [CreateLoggerDefinitionVersion]
-> ReadPrec CreateLoggerDefinitionVersion
-> ReadPrec [CreateLoggerDefinitionVersion]
-> Read CreateLoggerDefinitionVersion
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [CreateLoggerDefinitionVersion]
$creadListPrec :: ReadPrec [CreateLoggerDefinitionVersion]
readPrec :: ReadPrec CreateLoggerDefinitionVersion
$creadPrec :: ReadPrec CreateLoggerDefinitionVersion
readList :: ReadS [CreateLoggerDefinitionVersion]
$creadList :: ReadS [CreateLoggerDefinitionVersion]
readsPrec :: Int -> ReadS CreateLoggerDefinitionVersion
$creadsPrec :: Int -> ReadS CreateLoggerDefinitionVersion
Prelude.Read, Int -> CreateLoggerDefinitionVersion -> ShowS
[CreateLoggerDefinitionVersion] -> ShowS
CreateLoggerDefinitionVersion -> String
(Int -> CreateLoggerDefinitionVersion -> ShowS)
-> (CreateLoggerDefinitionVersion -> String)
-> ([CreateLoggerDefinitionVersion] -> ShowS)
-> Show CreateLoggerDefinitionVersion
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [CreateLoggerDefinitionVersion] -> ShowS
$cshowList :: [CreateLoggerDefinitionVersion] -> ShowS
show :: CreateLoggerDefinitionVersion -> String
$cshow :: CreateLoggerDefinitionVersion -> String
showsPrec :: Int -> CreateLoggerDefinitionVersion -> ShowS
$cshowsPrec :: Int -> CreateLoggerDefinitionVersion -> ShowS
Prelude.Show, (forall x.
CreateLoggerDefinitionVersion
-> Rep CreateLoggerDefinitionVersion x)
-> (forall x.
Rep CreateLoggerDefinitionVersion x
-> CreateLoggerDefinitionVersion)
-> Generic CreateLoggerDefinitionVersion
forall x.
Rep CreateLoggerDefinitionVersion x
-> CreateLoggerDefinitionVersion
forall x.
CreateLoggerDefinitionVersion
-> Rep CreateLoggerDefinitionVersion x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep CreateLoggerDefinitionVersion x
-> CreateLoggerDefinitionVersion
$cfrom :: forall x.
CreateLoggerDefinitionVersion
-> Rep CreateLoggerDefinitionVersion x
Prelude.Generic)
newCreateLoggerDefinitionVersion ::
Prelude.Text ->
CreateLoggerDefinitionVersion
newCreateLoggerDefinitionVersion :: Text -> CreateLoggerDefinitionVersion
newCreateLoggerDefinitionVersion Text
pLoggerDefinitionId_ =
CreateLoggerDefinitionVersion' :: Maybe [GreengrassLogger]
-> Maybe Text -> Text -> CreateLoggerDefinitionVersion
CreateLoggerDefinitionVersion'
{ $sel:loggers:CreateLoggerDefinitionVersion' :: Maybe [GreengrassLogger]
loggers =
Maybe [GreengrassLogger]
forall a. Maybe a
Prelude.Nothing,
$sel:amznClientToken:CreateLoggerDefinitionVersion' :: Maybe Text
amznClientToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:loggerDefinitionId:CreateLoggerDefinitionVersion' :: Text
loggerDefinitionId = Text
pLoggerDefinitionId_
}
createLoggerDefinitionVersion_loggers :: Lens.Lens' CreateLoggerDefinitionVersion (Prelude.Maybe [GreengrassLogger])
createLoggerDefinitionVersion_loggers :: (Maybe [GreengrassLogger] -> f (Maybe [GreengrassLogger]))
-> CreateLoggerDefinitionVersion -> f CreateLoggerDefinitionVersion
createLoggerDefinitionVersion_loggers = (CreateLoggerDefinitionVersion -> Maybe [GreengrassLogger])
-> (CreateLoggerDefinitionVersion
-> Maybe [GreengrassLogger] -> CreateLoggerDefinitionVersion)
-> Lens
CreateLoggerDefinitionVersion
CreateLoggerDefinitionVersion
(Maybe [GreengrassLogger])
(Maybe [GreengrassLogger])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateLoggerDefinitionVersion' {Maybe [GreengrassLogger]
loggers :: Maybe [GreengrassLogger]
$sel:loggers:CreateLoggerDefinitionVersion' :: CreateLoggerDefinitionVersion -> Maybe [GreengrassLogger]
loggers} -> Maybe [GreengrassLogger]
loggers) (\s :: CreateLoggerDefinitionVersion
s@CreateLoggerDefinitionVersion' {} Maybe [GreengrassLogger]
a -> CreateLoggerDefinitionVersion
s {$sel:loggers:CreateLoggerDefinitionVersion' :: Maybe [GreengrassLogger]
loggers = Maybe [GreengrassLogger]
a} :: CreateLoggerDefinitionVersion) ((Maybe [GreengrassLogger] -> f (Maybe [GreengrassLogger]))
-> CreateLoggerDefinitionVersion
-> f CreateLoggerDefinitionVersion)
-> ((Maybe [GreengrassLogger] -> f (Maybe [GreengrassLogger]))
-> Maybe [GreengrassLogger] -> f (Maybe [GreengrassLogger]))
-> (Maybe [GreengrassLogger] -> f (Maybe [GreengrassLogger]))
-> CreateLoggerDefinitionVersion
-> f CreateLoggerDefinitionVersion
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
[GreengrassLogger]
[GreengrassLogger]
[GreengrassLogger]
[GreengrassLogger]
-> Iso
(Maybe [GreengrassLogger])
(Maybe [GreengrassLogger])
(Maybe [GreengrassLogger])
(Maybe [GreengrassLogger])
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
[GreengrassLogger]
[GreengrassLogger]
[GreengrassLogger]
[GreengrassLogger]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
createLoggerDefinitionVersion_amznClientToken :: Lens.Lens' CreateLoggerDefinitionVersion (Prelude.Maybe Prelude.Text)
createLoggerDefinitionVersion_amznClientToken :: (Maybe Text -> f (Maybe Text))
-> CreateLoggerDefinitionVersion -> f CreateLoggerDefinitionVersion
createLoggerDefinitionVersion_amznClientToken = (CreateLoggerDefinitionVersion -> Maybe Text)
-> (CreateLoggerDefinitionVersion
-> Maybe Text -> CreateLoggerDefinitionVersion)
-> Lens
CreateLoggerDefinitionVersion
CreateLoggerDefinitionVersion
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateLoggerDefinitionVersion' {Maybe Text
amznClientToken :: Maybe Text
$sel:amznClientToken:CreateLoggerDefinitionVersion' :: CreateLoggerDefinitionVersion -> Maybe Text
amznClientToken} -> Maybe Text
amznClientToken) (\s :: CreateLoggerDefinitionVersion
s@CreateLoggerDefinitionVersion' {} Maybe Text
a -> CreateLoggerDefinitionVersion
s {$sel:amznClientToken:CreateLoggerDefinitionVersion' :: Maybe Text
amznClientToken = Maybe Text
a} :: CreateLoggerDefinitionVersion)
createLoggerDefinitionVersion_loggerDefinitionId :: Lens.Lens' CreateLoggerDefinitionVersion Prelude.Text
createLoggerDefinitionVersion_loggerDefinitionId :: (Text -> f Text)
-> CreateLoggerDefinitionVersion -> f CreateLoggerDefinitionVersion
createLoggerDefinitionVersion_loggerDefinitionId = (CreateLoggerDefinitionVersion -> Text)
-> (CreateLoggerDefinitionVersion
-> Text -> CreateLoggerDefinitionVersion)
-> Lens
CreateLoggerDefinitionVersion
CreateLoggerDefinitionVersion
Text
Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateLoggerDefinitionVersion' {Text
loggerDefinitionId :: Text
$sel:loggerDefinitionId:CreateLoggerDefinitionVersion' :: CreateLoggerDefinitionVersion -> Text
loggerDefinitionId} -> Text
loggerDefinitionId) (\s :: CreateLoggerDefinitionVersion
s@CreateLoggerDefinitionVersion' {} Text
a -> CreateLoggerDefinitionVersion
s {$sel:loggerDefinitionId:CreateLoggerDefinitionVersion' :: Text
loggerDefinitionId = Text
a} :: CreateLoggerDefinitionVersion)
instance
Core.AWSRequest
CreateLoggerDefinitionVersion
where
type
AWSResponse CreateLoggerDefinitionVersion =
CreateLoggerDefinitionVersionResponse
request :: CreateLoggerDefinitionVersion
-> Request CreateLoggerDefinitionVersion
request = Service
-> CreateLoggerDefinitionVersion
-> Request CreateLoggerDefinitionVersion
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy CreateLoggerDefinitionVersion
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse CreateLoggerDefinitionVersion)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse CreateLoggerDefinitionVersion))
-> Logger
-> Service
-> Proxy CreateLoggerDefinitionVersion
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse CreateLoggerDefinitionVersion)))
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
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Int
-> CreateLoggerDefinitionVersionResponse
CreateLoggerDefinitionVersionResponse'
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Int
-> CreateLoggerDefinitionVersionResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Int
-> CreateLoggerDefinitionVersionResponse)
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
"Arn")
Either
String
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Int
-> CreateLoggerDefinitionVersionResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Text
-> Maybe Text -> Int -> CreateLoggerDefinitionVersionResponse)
forall (f :: * -> *) a b. Applicative f => 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
"CreationTimestamp")
Either
String
(Maybe Text
-> Maybe Text -> Int -> CreateLoggerDefinitionVersionResponse)
-> Either String (Maybe Text)
-> Either
String (Maybe Text -> Int -> CreateLoggerDefinitionVersionResponse)
forall (f :: * -> *) a b. Applicative f => 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
"Version")
Either
String (Maybe Text -> Int -> CreateLoggerDefinitionVersionResponse)
-> Either String (Maybe Text)
-> Either String (Int -> CreateLoggerDefinitionVersionResponse)
forall (f :: * -> *) a b. Applicative f => 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
"Id")
Either String (Int -> CreateLoggerDefinitionVersionResponse)
-> Either String Int
-> Either String CreateLoggerDefinitionVersionResponse
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
CreateLoggerDefinitionVersion
instance Prelude.NFData CreateLoggerDefinitionVersion
instance Core.ToHeaders CreateLoggerDefinitionVersion where
toHeaders :: CreateLoggerDefinitionVersion -> ResponseHeaders
toHeaders CreateLoggerDefinitionVersion' {Maybe [GreengrassLogger]
Maybe Text
Text
loggerDefinitionId :: Text
amznClientToken :: Maybe Text
loggers :: Maybe [GreengrassLogger]
$sel:loggerDefinitionId:CreateLoggerDefinitionVersion' :: CreateLoggerDefinitionVersion -> Text
$sel:amznClientToken:CreateLoggerDefinitionVersion' :: CreateLoggerDefinitionVersion -> Maybe Text
$sel:loggers:CreateLoggerDefinitionVersion' :: CreateLoggerDefinitionVersion -> Maybe [GreengrassLogger]
..} =
[ResponseHeaders] -> ResponseHeaders
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ HeaderName
"X-Amzn-Client-Token" HeaderName -> Maybe Text -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# Maybe Text
amznClientToken,
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 CreateLoggerDefinitionVersion where
toJSON :: CreateLoggerDefinitionVersion -> Value
toJSON CreateLoggerDefinitionVersion' {Maybe [GreengrassLogger]
Maybe Text
Text
loggerDefinitionId :: Text
amznClientToken :: Maybe Text
loggers :: Maybe [GreengrassLogger]
$sel:loggerDefinitionId:CreateLoggerDefinitionVersion' :: CreateLoggerDefinitionVersion -> Text
$sel:amznClientToken:CreateLoggerDefinitionVersion' :: CreateLoggerDefinitionVersion -> Maybe Text
$sel:loggers:CreateLoggerDefinitionVersion' :: CreateLoggerDefinitionVersion -> Maybe [GreengrassLogger]
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[(Text
"Loggers" Text -> [GreengrassLogger] -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) ([GreengrassLogger] -> Pair)
-> Maybe [GreengrassLogger] -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [GreengrassLogger]
loggers]
)
instance Core.ToPath CreateLoggerDefinitionVersion where
toPath :: CreateLoggerDefinitionVersion -> ByteString
toPath CreateLoggerDefinitionVersion' {Maybe [GreengrassLogger]
Maybe Text
Text
loggerDefinitionId :: Text
amznClientToken :: Maybe Text
loggers :: Maybe [GreengrassLogger]
$sel:loggerDefinitionId:CreateLoggerDefinitionVersion' :: CreateLoggerDefinitionVersion -> Text
$sel:amznClientToken:CreateLoggerDefinitionVersion' :: CreateLoggerDefinitionVersion -> Maybe Text
$sel:loggers:CreateLoggerDefinitionVersion' :: CreateLoggerDefinitionVersion -> Maybe [GreengrassLogger]
..} =
[ByteString] -> ByteString
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ ByteString
"/greengrass/definition/loggers/",
Text -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Text
loggerDefinitionId,
ByteString
"/versions"
]
instance Core.ToQuery CreateLoggerDefinitionVersion where
toQuery :: CreateLoggerDefinitionVersion -> QueryString
toQuery = QueryString -> CreateLoggerDefinitionVersion -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data CreateLoggerDefinitionVersionResponse = CreateLoggerDefinitionVersionResponse'
{
CreateLoggerDefinitionVersionResponse -> Maybe Text
arn :: Prelude.Maybe Prelude.Text,
CreateLoggerDefinitionVersionResponse -> Maybe Text
creationTimestamp :: Prelude.Maybe Prelude.Text,
CreateLoggerDefinitionVersionResponse -> Maybe Text
version :: Prelude.Maybe Prelude.Text,
CreateLoggerDefinitionVersionResponse -> Maybe Text
id :: Prelude.Maybe Prelude.Text,
CreateLoggerDefinitionVersionResponse -> Int
httpStatus :: Prelude.Int
}
deriving (CreateLoggerDefinitionVersionResponse
-> CreateLoggerDefinitionVersionResponse -> Bool
(CreateLoggerDefinitionVersionResponse
-> CreateLoggerDefinitionVersionResponse -> Bool)
-> (CreateLoggerDefinitionVersionResponse
-> CreateLoggerDefinitionVersionResponse -> Bool)
-> Eq CreateLoggerDefinitionVersionResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: CreateLoggerDefinitionVersionResponse
-> CreateLoggerDefinitionVersionResponse -> Bool
$c/= :: CreateLoggerDefinitionVersionResponse
-> CreateLoggerDefinitionVersionResponse -> Bool
== :: CreateLoggerDefinitionVersionResponse
-> CreateLoggerDefinitionVersionResponse -> Bool
$c== :: CreateLoggerDefinitionVersionResponse
-> CreateLoggerDefinitionVersionResponse -> Bool
Prelude.Eq, ReadPrec [CreateLoggerDefinitionVersionResponse]
ReadPrec CreateLoggerDefinitionVersionResponse
Int -> ReadS CreateLoggerDefinitionVersionResponse
ReadS [CreateLoggerDefinitionVersionResponse]
(Int -> ReadS CreateLoggerDefinitionVersionResponse)
-> ReadS [CreateLoggerDefinitionVersionResponse]
-> ReadPrec CreateLoggerDefinitionVersionResponse
-> ReadPrec [CreateLoggerDefinitionVersionResponse]
-> Read CreateLoggerDefinitionVersionResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [CreateLoggerDefinitionVersionResponse]
$creadListPrec :: ReadPrec [CreateLoggerDefinitionVersionResponse]
readPrec :: ReadPrec CreateLoggerDefinitionVersionResponse
$creadPrec :: ReadPrec CreateLoggerDefinitionVersionResponse
readList :: ReadS [CreateLoggerDefinitionVersionResponse]
$creadList :: ReadS [CreateLoggerDefinitionVersionResponse]
readsPrec :: Int -> ReadS CreateLoggerDefinitionVersionResponse
$creadsPrec :: Int -> ReadS CreateLoggerDefinitionVersionResponse
Prelude.Read, Int -> CreateLoggerDefinitionVersionResponse -> ShowS
[CreateLoggerDefinitionVersionResponse] -> ShowS
CreateLoggerDefinitionVersionResponse -> String
(Int -> CreateLoggerDefinitionVersionResponse -> ShowS)
-> (CreateLoggerDefinitionVersionResponse -> String)
-> ([CreateLoggerDefinitionVersionResponse] -> ShowS)
-> Show CreateLoggerDefinitionVersionResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [CreateLoggerDefinitionVersionResponse] -> ShowS
$cshowList :: [CreateLoggerDefinitionVersionResponse] -> ShowS
show :: CreateLoggerDefinitionVersionResponse -> String
$cshow :: CreateLoggerDefinitionVersionResponse -> String
showsPrec :: Int -> CreateLoggerDefinitionVersionResponse -> ShowS
$cshowsPrec :: Int -> CreateLoggerDefinitionVersionResponse -> ShowS
Prelude.Show, (forall x.
CreateLoggerDefinitionVersionResponse
-> Rep CreateLoggerDefinitionVersionResponse x)
-> (forall x.
Rep CreateLoggerDefinitionVersionResponse x
-> CreateLoggerDefinitionVersionResponse)
-> Generic CreateLoggerDefinitionVersionResponse
forall x.
Rep CreateLoggerDefinitionVersionResponse x
-> CreateLoggerDefinitionVersionResponse
forall x.
CreateLoggerDefinitionVersionResponse
-> Rep CreateLoggerDefinitionVersionResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep CreateLoggerDefinitionVersionResponse x
-> CreateLoggerDefinitionVersionResponse
$cfrom :: forall x.
CreateLoggerDefinitionVersionResponse
-> Rep CreateLoggerDefinitionVersionResponse x
Prelude.Generic)
newCreateLoggerDefinitionVersionResponse ::
Prelude.Int ->
CreateLoggerDefinitionVersionResponse
newCreateLoggerDefinitionVersionResponse :: Int -> CreateLoggerDefinitionVersionResponse
newCreateLoggerDefinitionVersionResponse Int
pHttpStatus_ =
CreateLoggerDefinitionVersionResponse' :: Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Int
-> CreateLoggerDefinitionVersionResponse
CreateLoggerDefinitionVersionResponse'
{ $sel:arn:CreateLoggerDefinitionVersionResponse' :: Maybe Text
arn =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:creationTimestamp:CreateLoggerDefinitionVersionResponse' :: Maybe Text
creationTimestamp = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:version:CreateLoggerDefinitionVersionResponse' :: Maybe Text
version = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:id:CreateLoggerDefinitionVersionResponse' :: Maybe Text
id = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:CreateLoggerDefinitionVersionResponse' :: Int
httpStatus = Int
pHttpStatus_
}
createLoggerDefinitionVersionResponse_arn :: Lens.Lens' CreateLoggerDefinitionVersionResponse (Prelude.Maybe Prelude.Text)
createLoggerDefinitionVersionResponse_arn :: (Maybe Text -> f (Maybe Text))
-> CreateLoggerDefinitionVersionResponse
-> f CreateLoggerDefinitionVersionResponse
createLoggerDefinitionVersionResponse_arn = (CreateLoggerDefinitionVersionResponse -> Maybe Text)
-> (CreateLoggerDefinitionVersionResponse
-> Maybe Text -> CreateLoggerDefinitionVersionResponse)
-> Lens
CreateLoggerDefinitionVersionResponse
CreateLoggerDefinitionVersionResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateLoggerDefinitionVersionResponse' {Maybe Text
arn :: Maybe Text
$sel:arn:CreateLoggerDefinitionVersionResponse' :: CreateLoggerDefinitionVersionResponse -> Maybe Text
arn} -> Maybe Text
arn) (\s :: CreateLoggerDefinitionVersionResponse
s@CreateLoggerDefinitionVersionResponse' {} Maybe Text
a -> CreateLoggerDefinitionVersionResponse
s {$sel:arn:CreateLoggerDefinitionVersionResponse' :: Maybe Text
arn = Maybe Text
a} :: CreateLoggerDefinitionVersionResponse)
createLoggerDefinitionVersionResponse_creationTimestamp :: Lens.Lens' CreateLoggerDefinitionVersionResponse (Prelude.Maybe Prelude.Text)
createLoggerDefinitionVersionResponse_creationTimestamp :: (Maybe Text -> f (Maybe Text))
-> CreateLoggerDefinitionVersionResponse
-> f CreateLoggerDefinitionVersionResponse
createLoggerDefinitionVersionResponse_creationTimestamp = (CreateLoggerDefinitionVersionResponse -> Maybe Text)
-> (CreateLoggerDefinitionVersionResponse
-> Maybe Text -> CreateLoggerDefinitionVersionResponse)
-> Lens
CreateLoggerDefinitionVersionResponse
CreateLoggerDefinitionVersionResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateLoggerDefinitionVersionResponse' {Maybe Text
creationTimestamp :: Maybe Text
$sel:creationTimestamp:CreateLoggerDefinitionVersionResponse' :: CreateLoggerDefinitionVersionResponse -> Maybe Text
creationTimestamp} -> Maybe Text
creationTimestamp) (\s :: CreateLoggerDefinitionVersionResponse
s@CreateLoggerDefinitionVersionResponse' {} Maybe Text
a -> CreateLoggerDefinitionVersionResponse
s {$sel:creationTimestamp:CreateLoggerDefinitionVersionResponse' :: Maybe Text
creationTimestamp = Maybe Text
a} :: CreateLoggerDefinitionVersionResponse)
createLoggerDefinitionVersionResponse_version :: Lens.Lens' CreateLoggerDefinitionVersionResponse (Prelude.Maybe Prelude.Text)
createLoggerDefinitionVersionResponse_version :: (Maybe Text -> f (Maybe Text))
-> CreateLoggerDefinitionVersionResponse
-> f CreateLoggerDefinitionVersionResponse
createLoggerDefinitionVersionResponse_version = (CreateLoggerDefinitionVersionResponse -> Maybe Text)
-> (CreateLoggerDefinitionVersionResponse
-> Maybe Text -> CreateLoggerDefinitionVersionResponse)
-> Lens
CreateLoggerDefinitionVersionResponse
CreateLoggerDefinitionVersionResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateLoggerDefinitionVersionResponse' {Maybe Text
version :: Maybe Text
$sel:version:CreateLoggerDefinitionVersionResponse' :: CreateLoggerDefinitionVersionResponse -> Maybe Text
version} -> Maybe Text
version) (\s :: CreateLoggerDefinitionVersionResponse
s@CreateLoggerDefinitionVersionResponse' {} Maybe Text
a -> CreateLoggerDefinitionVersionResponse
s {$sel:version:CreateLoggerDefinitionVersionResponse' :: Maybe Text
version = Maybe Text
a} :: CreateLoggerDefinitionVersionResponse)
createLoggerDefinitionVersionResponse_id :: Lens.Lens' CreateLoggerDefinitionVersionResponse (Prelude.Maybe Prelude.Text)
createLoggerDefinitionVersionResponse_id :: (Maybe Text -> f (Maybe Text))
-> CreateLoggerDefinitionVersionResponse
-> f CreateLoggerDefinitionVersionResponse
createLoggerDefinitionVersionResponse_id = (CreateLoggerDefinitionVersionResponse -> Maybe Text)
-> (CreateLoggerDefinitionVersionResponse
-> Maybe Text -> CreateLoggerDefinitionVersionResponse)
-> Lens
CreateLoggerDefinitionVersionResponse
CreateLoggerDefinitionVersionResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateLoggerDefinitionVersionResponse' {Maybe Text
id :: Maybe Text
$sel:id:CreateLoggerDefinitionVersionResponse' :: CreateLoggerDefinitionVersionResponse -> Maybe Text
id} -> Maybe Text
id) (\s :: CreateLoggerDefinitionVersionResponse
s@CreateLoggerDefinitionVersionResponse' {} Maybe Text
a -> CreateLoggerDefinitionVersionResponse
s {$sel:id:CreateLoggerDefinitionVersionResponse' :: Maybe Text
id = Maybe Text
a} :: CreateLoggerDefinitionVersionResponse)
createLoggerDefinitionVersionResponse_httpStatus :: Lens.Lens' CreateLoggerDefinitionVersionResponse Prelude.Int
createLoggerDefinitionVersionResponse_httpStatus :: (Int -> f Int)
-> CreateLoggerDefinitionVersionResponse
-> f CreateLoggerDefinitionVersionResponse
createLoggerDefinitionVersionResponse_httpStatus = (CreateLoggerDefinitionVersionResponse -> Int)
-> (CreateLoggerDefinitionVersionResponse
-> Int -> CreateLoggerDefinitionVersionResponse)
-> Lens
CreateLoggerDefinitionVersionResponse
CreateLoggerDefinitionVersionResponse
Int
Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateLoggerDefinitionVersionResponse' {Int
httpStatus :: Int
$sel:httpStatus:CreateLoggerDefinitionVersionResponse' :: CreateLoggerDefinitionVersionResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: CreateLoggerDefinitionVersionResponse
s@CreateLoggerDefinitionVersionResponse' {} Int
a -> CreateLoggerDefinitionVersionResponse
s {$sel:httpStatus:CreateLoggerDefinitionVersionResponse' :: Int
httpStatus = Int
a} :: CreateLoggerDefinitionVersionResponse)
instance
Prelude.NFData
CreateLoggerDefinitionVersionResponse