{-# 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.CreateCoreDefinitionVersion
(
CreateCoreDefinitionVersion (..),
newCreateCoreDefinitionVersion,
createCoreDefinitionVersion_amznClientToken,
createCoreDefinitionVersion_cores,
createCoreDefinitionVersion_coreDefinitionId,
CreateCoreDefinitionVersionResponse (..),
newCreateCoreDefinitionVersionResponse,
createCoreDefinitionVersionResponse_arn,
createCoreDefinitionVersionResponse_creationTimestamp,
createCoreDefinitionVersionResponse_version,
createCoreDefinitionVersionResponse_id,
createCoreDefinitionVersionResponse_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 CreateCoreDefinitionVersion = CreateCoreDefinitionVersion'
{
CreateCoreDefinitionVersion -> Maybe Text
amznClientToken :: Prelude.Maybe Prelude.Text,
CreateCoreDefinitionVersion -> Maybe [Core]
cores :: Prelude.Maybe [Core],
CreateCoreDefinitionVersion -> Text
coreDefinitionId :: Prelude.Text
}
deriving (CreateCoreDefinitionVersion -> CreateCoreDefinitionVersion -> Bool
(CreateCoreDefinitionVersion
-> CreateCoreDefinitionVersion -> Bool)
-> (CreateCoreDefinitionVersion
-> CreateCoreDefinitionVersion -> Bool)
-> Eq CreateCoreDefinitionVersion
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: CreateCoreDefinitionVersion -> CreateCoreDefinitionVersion -> Bool
$c/= :: CreateCoreDefinitionVersion -> CreateCoreDefinitionVersion -> Bool
== :: CreateCoreDefinitionVersion -> CreateCoreDefinitionVersion -> Bool
$c== :: CreateCoreDefinitionVersion -> CreateCoreDefinitionVersion -> Bool
Prelude.Eq, ReadPrec [CreateCoreDefinitionVersion]
ReadPrec CreateCoreDefinitionVersion
Int -> ReadS CreateCoreDefinitionVersion
ReadS [CreateCoreDefinitionVersion]
(Int -> ReadS CreateCoreDefinitionVersion)
-> ReadS [CreateCoreDefinitionVersion]
-> ReadPrec CreateCoreDefinitionVersion
-> ReadPrec [CreateCoreDefinitionVersion]
-> Read CreateCoreDefinitionVersion
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [CreateCoreDefinitionVersion]
$creadListPrec :: ReadPrec [CreateCoreDefinitionVersion]
readPrec :: ReadPrec CreateCoreDefinitionVersion
$creadPrec :: ReadPrec CreateCoreDefinitionVersion
readList :: ReadS [CreateCoreDefinitionVersion]
$creadList :: ReadS [CreateCoreDefinitionVersion]
readsPrec :: Int -> ReadS CreateCoreDefinitionVersion
$creadsPrec :: Int -> ReadS CreateCoreDefinitionVersion
Prelude.Read, Int -> CreateCoreDefinitionVersion -> ShowS
[CreateCoreDefinitionVersion] -> ShowS
CreateCoreDefinitionVersion -> String
(Int -> CreateCoreDefinitionVersion -> ShowS)
-> (CreateCoreDefinitionVersion -> String)
-> ([CreateCoreDefinitionVersion] -> ShowS)
-> Show CreateCoreDefinitionVersion
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [CreateCoreDefinitionVersion] -> ShowS
$cshowList :: [CreateCoreDefinitionVersion] -> ShowS
show :: CreateCoreDefinitionVersion -> String
$cshow :: CreateCoreDefinitionVersion -> String
showsPrec :: Int -> CreateCoreDefinitionVersion -> ShowS
$cshowsPrec :: Int -> CreateCoreDefinitionVersion -> ShowS
Prelude.Show, (forall x.
CreateCoreDefinitionVersion -> Rep CreateCoreDefinitionVersion x)
-> (forall x.
Rep CreateCoreDefinitionVersion x -> CreateCoreDefinitionVersion)
-> Generic CreateCoreDefinitionVersion
forall x.
Rep CreateCoreDefinitionVersion x -> CreateCoreDefinitionVersion
forall x.
CreateCoreDefinitionVersion -> Rep CreateCoreDefinitionVersion x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep CreateCoreDefinitionVersion x -> CreateCoreDefinitionVersion
$cfrom :: forall x.
CreateCoreDefinitionVersion -> Rep CreateCoreDefinitionVersion x
Prelude.Generic)
newCreateCoreDefinitionVersion ::
Prelude.Text ->
CreateCoreDefinitionVersion
newCreateCoreDefinitionVersion :: Text -> CreateCoreDefinitionVersion
newCreateCoreDefinitionVersion Text
pCoreDefinitionId_ =
CreateCoreDefinitionVersion' :: Maybe Text -> Maybe [Core] -> Text -> CreateCoreDefinitionVersion
CreateCoreDefinitionVersion'
{ $sel:amznClientToken:CreateCoreDefinitionVersion' :: Maybe Text
amznClientToken =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:cores:CreateCoreDefinitionVersion' :: Maybe [Core]
cores = Maybe [Core]
forall a. Maybe a
Prelude.Nothing,
$sel:coreDefinitionId:CreateCoreDefinitionVersion' :: Text
coreDefinitionId = Text
pCoreDefinitionId_
}
createCoreDefinitionVersion_amznClientToken :: Lens.Lens' CreateCoreDefinitionVersion (Prelude.Maybe Prelude.Text)
createCoreDefinitionVersion_amznClientToken :: (Maybe Text -> f (Maybe Text))
-> CreateCoreDefinitionVersion -> f CreateCoreDefinitionVersion
createCoreDefinitionVersion_amznClientToken = (CreateCoreDefinitionVersion -> Maybe Text)
-> (CreateCoreDefinitionVersion
-> Maybe Text -> CreateCoreDefinitionVersion)
-> Lens
CreateCoreDefinitionVersion
CreateCoreDefinitionVersion
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateCoreDefinitionVersion' {Maybe Text
amznClientToken :: Maybe Text
$sel:amznClientToken:CreateCoreDefinitionVersion' :: CreateCoreDefinitionVersion -> Maybe Text
amznClientToken} -> Maybe Text
amznClientToken) (\s :: CreateCoreDefinitionVersion
s@CreateCoreDefinitionVersion' {} Maybe Text
a -> CreateCoreDefinitionVersion
s {$sel:amznClientToken:CreateCoreDefinitionVersion' :: Maybe Text
amznClientToken = Maybe Text
a} :: CreateCoreDefinitionVersion)
createCoreDefinitionVersion_cores :: Lens.Lens' CreateCoreDefinitionVersion (Prelude.Maybe [Core])
createCoreDefinitionVersion_cores :: (Maybe [Core] -> f (Maybe [Core]))
-> CreateCoreDefinitionVersion -> f CreateCoreDefinitionVersion
createCoreDefinitionVersion_cores = (CreateCoreDefinitionVersion -> Maybe [Core])
-> (CreateCoreDefinitionVersion
-> Maybe [Core] -> CreateCoreDefinitionVersion)
-> Lens
CreateCoreDefinitionVersion
CreateCoreDefinitionVersion
(Maybe [Core])
(Maybe [Core])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateCoreDefinitionVersion' {Maybe [Core]
cores :: Maybe [Core]
$sel:cores:CreateCoreDefinitionVersion' :: CreateCoreDefinitionVersion -> Maybe [Core]
cores} -> Maybe [Core]
cores) (\s :: CreateCoreDefinitionVersion
s@CreateCoreDefinitionVersion' {} Maybe [Core]
a -> CreateCoreDefinitionVersion
s {$sel:cores:CreateCoreDefinitionVersion' :: Maybe [Core]
cores = Maybe [Core]
a} :: CreateCoreDefinitionVersion) ((Maybe [Core] -> f (Maybe [Core]))
-> CreateCoreDefinitionVersion -> f CreateCoreDefinitionVersion)
-> ((Maybe [Core] -> f (Maybe [Core]))
-> Maybe [Core] -> f (Maybe [Core]))
-> (Maybe [Core] -> f (Maybe [Core]))
-> CreateCoreDefinitionVersion
-> f CreateCoreDefinitionVersion
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [Core] [Core] [Core] [Core]
-> Iso (Maybe [Core]) (Maybe [Core]) (Maybe [Core]) (Maybe [Core])
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 [Core] [Core] [Core] [Core]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
createCoreDefinitionVersion_coreDefinitionId :: Lens.Lens' CreateCoreDefinitionVersion Prelude.Text
createCoreDefinitionVersion_coreDefinitionId :: (Text -> f Text)
-> CreateCoreDefinitionVersion -> f CreateCoreDefinitionVersion
createCoreDefinitionVersion_coreDefinitionId = (CreateCoreDefinitionVersion -> Text)
-> (CreateCoreDefinitionVersion
-> Text -> CreateCoreDefinitionVersion)
-> Lens
CreateCoreDefinitionVersion CreateCoreDefinitionVersion Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateCoreDefinitionVersion' {Text
coreDefinitionId :: Text
$sel:coreDefinitionId:CreateCoreDefinitionVersion' :: CreateCoreDefinitionVersion -> Text
coreDefinitionId} -> Text
coreDefinitionId) (\s :: CreateCoreDefinitionVersion
s@CreateCoreDefinitionVersion' {} Text
a -> CreateCoreDefinitionVersion
s {$sel:coreDefinitionId:CreateCoreDefinitionVersion' :: Text
coreDefinitionId = Text
a} :: CreateCoreDefinitionVersion)
instance Core.AWSRequest CreateCoreDefinitionVersion where
type
AWSResponse CreateCoreDefinitionVersion =
CreateCoreDefinitionVersionResponse
request :: CreateCoreDefinitionVersion -> Request CreateCoreDefinitionVersion
request = Service
-> CreateCoreDefinitionVersion
-> Request CreateCoreDefinitionVersion
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy CreateCoreDefinitionVersion
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse CreateCoreDefinitionVersion)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse CreateCoreDefinitionVersion))
-> Logger
-> Service
-> Proxy CreateCoreDefinitionVersion
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse CreateCoreDefinitionVersion)))
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
-> CreateCoreDefinitionVersionResponse
CreateCoreDefinitionVersionResponse'
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Int
-> CreateCoreDefinitionVersionResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Int
-> CreateCoreDefinitionVersionResponse)
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
-> CreateCoreDefinitionVersionResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Text
-> Maybe Text -> Int -> CreateCoreDefinitionVersionResponse)
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 -> CreateCoreDefinitionVersionResponse)
-> Either String (Maybe Text)
-> Either
String (Maybe Text -> Int -> CreateCoreDefinitionVersionResponse)
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 -> CreateCoreDefinitionVersionResponse)
-> Either String (Maybe Text)
-> Either String (Int -> CreateCoreDefinitionVersionResponse)
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 -> CreateCoreDefinitionVersionResponse)
-> Either String Int
-> Either String CreateCoreDefinitionVersionResponse
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 CreateCoreDefinitionVersion
instance Prelude.NFData CreateCoreDefinitionVersion
instance Core.ToHeaders CreateCoreDefinitionVersion where
toHeaders :: CreateCoreDefinitionVersion -> ResponseHeaders
toHeaders CreateCoreDefinitionVersion' {Maybe [Core]
Maybe Text
Text
coreDefinitionId :: Text
cores :: Maybe [Core]
amznClientToken :: Maybe Text
$sel:coreDefinitionId:CreateCoreDefinitionVersion' :: CreateCoreDefinitionVersion -> Text
$sel:cores:CreateCoreDefinitionVersion' :: CreateCoreDefinitionVersion -> Maybe [Core]
$sel:amznClientToken:CreateCoreDefinitionVersion' :: CreateCoreDefinitionVersion -> Maybe Text
..} =
[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 CreateCoreDefinitionVersion where
toJSON :: CreateCoreDefinitionVersion -> Value
toJSON CreateCoreDefinitionVersion' {Maybe [Core]
Maybe Text
Text
coreDefinitionId :: Text
cores :: Maybe [Core]
amznClientToken :: Maybe Text
$sel:coreDefinitionId:CreateCoreDefinitionVersion' :: CreateCoreDefinitionVersion -> Text
$sel:cores:CreateCoreDefinitionVersion' :: CreateCoreDefinitionVersion -> Maybe [Core]
$sel:amznClientToken:CreateCoreDefinitionVersion' :: CreateCoreDefinitionVersion -> Maybe Text
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[(Text
"Cores" Text -> [Core] -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) ([Core] -> Pair) -> Maybe [Core] -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Core]
cores]
)
instance Core.ToPath CreateCoreDefinitionVersion where
toPath :: CreateCoreDefinitionVersion -> ByteString
toPath CreateCoreDefinitionVersion' {Maybe [Core]
Maybe Text
Text
coreDefinitionId :: Text
cores :: Maybe [Core]
amznClientToken :: Maybe Text
$sel:coreDefinitionId:CreateCoreDefinitionVersion' :: CreateCoreDefinitionVersion -> Text
$sel:cores:CreateCoreDefinitionVersion' :: CreateCoreDefinitionVersion -> Maybe [Core]
$sel:amznClientToken:CreateCoreDefinitionVersion' :: CreateCoreDefinitionVersion -> Maybe Text
..} =
[ByteString] -> ByteString
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ ByteString
"/greengrass/definition/cores/",
Text -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Text
coreDefinitionId,
ByteString
"/versions"
]
instance Core.ToQuery CreateCoreDefinitionVersion where
toQuery :: CreateCoreDefinitionVersion -> QueryString
toQuery = QueryString -> CreateCoreDefinitionVersion -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data CreateCoreDefinitionVersionResponse = CreateCoreDefinitionVersionResponse'
{
CreateCoreDefinitionVersionResponse -> Maybe Text
arn :: Prelude.Maybe Prelude.Text,
CreateCoreDefinitionVersionResponse -> Maybe Text
creationTimestamp :: Prelude.Maybe Prelude.Text,
CreateCoreDefinitionVersionResponse -> Maybe Text
version :: Prelude.Maybe Prelude.Text,
CreateCoreDefinitionVersionResponse -> Maybe Text
id :: Prelude.Maybe Prelude.Text,
CreateCoreDefinitionVersionResponse -> Int
httpStatus :: Prelude.Int
}
deriving (CreateCoreDefinitionVersionResponse
-> CreateCoreDefinitionVersionResponse -> Bool
(CreateCoreDefinitionVersionResponse
-> CreateCoreDefinitionVersionResponse -> Bool)
-> (CreateCoreDefinitionVersionResponse
-> CreateCoreDefinitionVersionResponse -> Bool)
-> Eq CreateCoreDefinitionVersionResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: CreateCoreDefinitionVersionResponse
-> CreateCoreDefinitionVersionResponse -> Bool
$c/= :: CreateCoreDefinitionVersionResponse
-> CreateCoreDefinitionVersionResponse -> Bool
== :: CreateCoreDefinitionVersionResponse
-> CreateCoreDefinitionVersionResponse -> Bool
$c== :: CreateCoreDefinitionVersionResponse
-> CreateCoreDefinitionVersionResponse -> Bool
Prelude.Eq, ReadPrec [CreateCoreDefinitionVersionResponse]
ReadPrec CreateCoreDefinitionVersionResponse
Int -> ReadS CreateCoreDefinitionVersionResponse
ReadS [CreateCoreDefinitionVersionResponse]
(Int -> ReadS CreateCoreDefinitionVersionResponse)
-> ReadS [CreateCoreDefinitionVersionResponse]
-> ReadPrec CreateCoreDefinitionVersionResponse
-> ReadPrec [CreateCoreDefinitionVersionResponse]
-> Read CreateCoreDefinitionVersionResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [CreateCoreDefinitionVersionResponse]
$creadListPrec :: ReadPrec [CreateCoreDefinitionVersionResponse]
readPrec :: ReadPrec CreateCoreDefinitionVersionResponse
$creadPrec :: ReadPrec CreateCoreDefinitionVersionResponse
readList :: ReadS [CreateCoreDefinitionVersionResponse]
$creadList :: ReadS [CreateCoreDefinitionVersionResponse]
readsPrec :: Int -> ReadS CreateCoreDefinitionVersionResponse
$creadsPrec :: Int -> ReadS CreateCoreDefinitionVersionResponse
Prelude.Read, Int -> CreateCoreDefinitionVersionResponse -> ShowS
[CreateCoreDefinitionVersionResponse] -> ShowS
CreateCoreDefinitionVersionResponse -> String
(Int -> CreateCoreDefinitionVersionResponse -> ShowS)
-> (CreateCoreDefinitionVersionResponse -> String)
-> ([CreateCoreDefinitionVersionResponse] -> ShowS)
-> Show CreateCoreDefinitionVersionResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [CreateCoreDefinitionVersionResponse] -> ShowS
$cshowList :: [CreateCoreDefinitionVersionResponse] -> ShowS
show :: CreateCoreDefinitionVersionResponse -> String
$cshow :: CreateCoreDefinitionVersionResponse -> String
showsPrec :: Int -> CreateCoreDefinitionVersionResponse -> ShowS
$cshowsPrec :: Int -> CreateCoreDefinitionVersionResponse -> ShowS
Prelude.Show, (forall x.
CreateCoreDefinitionVersionResponse
-> Rep CreateCoreDefinitionVersionResponse x)
-> (forall x.
Rep CreateCoreDefinitionVersionResponse x
-> CreateCoreDefinitionVersionResponse)
-> Generic CreateCoreDefinitionVersionResponse
forall x.
Rep CreateCoreDefinitionVersionResponse x
-> CreateCoreDefinitionVersionResponse
forall x.
CreateCoreDefinitionVersionResponse
-> Rep CreateCoreDefinitionVersionResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep CreateCoreDefinitionVersionResponse x
-> CreateCoreDefinitionVersionResponse
$cfrom :: forall x.
CreateCoreDefinitionVersionResponse
-> Rep CreateCoreDefinitionVersionResponse x
Prelude.Generic)
newCreateCoreDefinitionVersionResponse ::
Prelude.Int ->
CreateCoreDefinitionVersionResponse
newCreateCoreDefinitionVersionResponse :: Int -> CreateCoreDefinitionVersionResponse
newCreateCoreDefinitionVersionResponse Int
pHttpStatus_ =
CreateCoreDefinitionVersionResponse' :: Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Int
-> CreateCoreDefinitionVersionResponse
CreateCoreDefinitionVersionResponse'
{ $sel:arn:CreateCoreDefinitionVersionResponse' :: Maybe Text
arn =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:creationTimestamp:CreateCoreDefinitionVersionResponse' :: Maybe Text
creationTimestamp = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:version:CreateCoreDefinitionVersionResponse' :: Maybe Text
version = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:id:CreateCoreDefinitionVersionResponse' :: Maybe Text
id = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:CreateCoreDefinitionVersionResponse' :: Int
httpStatus = Int
pHttpStatus_
}
createCoreDefinitionVersionResponse_arn :: Lens.Lens' CreateCoreDefinitionVersionResponse (Prelude.Maybe Prelude.Text)
createCoreDefinitionVersionResponse_arn :: (Maybe Text -> f (Maybe Text))
-> CreateCoreDefinitionVersionResponse
-> f CreateCoreDefinitionVersionResponse
createCoreDefinitionVersionResponse_arn = (CreateCoreDefinitionVersionResponse -> Maybe Text)
-> (CreateCoreDefinitionVersionResponse
-> Maybe Text -> CreateCoreDefinitionVersionResponse)
-> Lens
CreateCoreDefinitionVersionResponse
CreateCoreDefinitionVersionResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateCoreDefinitionVersionResponse' {Maybe Text
arn :: Maybe Text
$sel:arn:CreateCoreDefinitionVersionResponse' :: CreateCoreDefinitionVersionResponse -> Maybe Text
arn} -> Maybe Text
arn) (\s :: CreateCoreDefinitionVersionResponse
s@CreateCoreDefinitionVersionResponse' {} Maybe Text
a -> CreateCoreDefinitionVersionResponse
s {$sel:arn:CreateCoreDefinitionVersionResponse' :: Maybe Text
arn = Maybe Text
a} :: CreateCoreDefinitionVersionResponse)
createCoreDefinitionVersionResponse_creationTimestamp :: Lens.Lens' CreateCoreDefinitionVersionResponse (Prelude.Maybe Prelude.Text)
createCoreDefinitionVersionResponse_creationTimestamp :: (Maybe Text -> f (Maybe Text))
-> CreateCoreDefinitionVersionResponse
-> f CreateCoreDefinitionVersionResponse
createCoreDefinitionVersionResponse_creationTimestamp = (CreateCoreDefinitionVersionResponse -> Maybe Text)
-> (CreateCoreDefinitionVersionResponse
-> Maybe Text -> CreateCoreDefinitionVersionResponse)
-> Lens
CreateCoreDefinitionVersionResponse
CreateCoreDefinitionVersionResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateCoreDefinitionVersionResponse' {Maybe Text
creationTimestamp :: Maybe Text
$sel:creationTimestamp:CreateCoreDefinitionVersionResponse' :: CreateCoreDefinitionVersionResponse -> Maybe Text
creationTimestamp} -> Maybe Text
creationTimestamp) (\s :: CreateCoreDefinitionVersionResponse
s@CreateCoreDefinitionVersionResponse' {} Maybe Text
a -> CreateCoreDefinitionVersionResponse
s {$sel:creationTimestamp:CreateCoreDefinitionVersionResponse' :: Maybe Text
creationTimestamp = Maybe Text
a} :: CreateCoreDefinitionVersionResponse)
createCoreDefinitionVersionResponse_version :: Lens.Lens' CreateCoreDefinitionVersionResponse (Prelude.Maybe Prelude.Text)
createCoreDefinitionVersionResponse_version :: (Maybe Text -> f (Maybe Text))
-> CreateCoreDefinitionVersionResponse
-> f CreateCoreDefinitionVersionResponse
createCoreDefinitionVersionResponse_version = (CreateCoreDefinitionVersionResponse -> Maybe Text)
-> (CreateCoreDefinitionVersionResponse
-> Maybe Text -> CreateCoreDefinitionVersionResponse)
-> Lens
CreateCoreDefinitionVersionResponse
CreateCoreDefinitionVersionResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateCoreDefinitionVersionResponse' {Maybe Text
version :: Maybe Text
$sel:version:CreateCoreDefinitionVersionResponse' :: CreateCoreDefinitionVersionResponse -> Maybe Text
version} -> Maybe Text
version) (\s :: CreateCoreDefinitionVersionResponse
s@CreateCoreDefinitionVersionResponse' {} Maybe Text
a -> CreateCoreDefinitionVersionResponse
s {$sel:version:CreateCoreDefinitionVersionResponse' :: Maybe Text
version = Maybe Text
a} :: CreateCoreDefinitionVersionResponse)
createCoreDefinitionVersionResponse_id :: Lens.Lens' CreateCoreDefinitionVersionResponse (Prelude.Maybe Prelude.Text)
createCoreDefinitionVersionResponse_id :: (Maybe Text -> f (Maybe Text))
-> CreateCoreDefinitionVersionResponse
-> f CreateCoreDefinitionVersionResponse
createCoreDefinitionVersionResponse_id = (CreateCoreDefinitionVersionResponse -> Maybe Text)
-> (CreateCoreDefinitionVersionResponse
-> Maybe Text -> CreateCoreDefinitionVersionResponse)
-> Lens
CreateCoreDefinitionVersionResponse
CreateCoreDefinitionVersionResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateCoreDefinitionVersionResponse' {Maybe Text
id :: Maybe Text
$sel:id:CreateCoreDefinitionVersionResponse' :: CreateCoreDefinitionVersionResponse -> Maybe Text
id} -> Maybe Text
id) (\s :: CreateCoreDefinitionVersionResponse
s@CreateCoreDefinitionVersionResponse' {} Maybe Text
a -> CreateCoreDefinitionVersionResponse
s {$sel:id:CreateCoreDefinitionVersionResponse' :: Maybe Text
id = Maybe Text
a} :: CreateCoreDefinitionVersionResponse)
createCoreDefinitionVersionResponse_httpStatus :: Lens.Lens' CreateCoreDefinitionVersionResponse Prelude.Int
createCoreDefinitionVersionResponse_httpStatus :: (Int -> f Int)
-> CreateCoreDefinitionVersionResponse
-> f CreateCoreDefinitionVersionResponse
createCoreDefinitionVersionResponse_httpStatus = (CreateCoreDefinitionVersionResponse -> Int)
-> (CreateCoreDefinitionVersionResponse
-> Int -> CreateCoreDefinitionVersionResponse)
-> Lens
CreateCoreDefinitionVersionResponse
CreateCoreDefinitionVersionResponse
Int
Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateCoreDefinitionVersionResponse' {Int
httpStatus :: Int
$sel:httpStatus:CreateCoreDefinitionVersionResponse' :: CreateCoreDefinitionVersionResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: CreateCoreDefinitionVersionResponse
s@CreateCoreDefinitionVersionResponse' {} Int
a -> CreateCoreDefinitionVersionResponse
s {$sel:httpStatus:CreateCoreDefinitionVersionResponse' :: Int
httpStatus = Int
a} :: CreateCoreDefinitionVersionResponse)
instance
Prelude.NFData
CreateCoreDefinitionVersionResponse