{-# 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.ServerlessApplicationRepository.CreateCloudFormationTemplate
(
CreateCloudFormationTemplate (..),
newCreateCloudFormationTemplate,
createCloudFormationTemplate_semanticVersion,
createCloudFormationTemplate_applicationId,
CreateCloudFormationTemplateResponse (..),
newCreateCloudFormationTemplateResponse,
createCloudFormationTemplateResponse_applicationId,
createCloudFormationTemplateResponse_creationTime,
createCloudFormationTemplateResponse_expirationTime,
createCloudFormationTemplateResponse_semanticVersion,
createCloudFormationTemplateResponse_status,
createCloudFormationTemplateResponse_templateId,
createCloudFormationTemplateResponse_templateUrl,
createCloudFormationTemplateResponse_httpStatus,
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
import Amazonka.ServerlessApplicationRepository.Types
data CreateCloudFormationTemplate = CreateCloudFormationTemplate'
{
CreateCloudFormationTemplate -> Maybe Text
semanticVersion :: Prelude.Maybe Prelude.Text,
CreateCloudFormationTemplate -> Text
applicationId :: Prelude.Text
}
deriving (CreateCloudFormationTemplate
-> CreateCloudFormationTemplate -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: CreateCloudFormationTemplate
-> CreateCloudFormationTemplate -> Bool
$c/= :: CreateCloudFormationTemplate
-> CreateCloudFormationTemplate -> Bool
== :: CreateCloudFormationTemplate
-> CreateCloudFormationTemplate -> Bool
$c== :: CreateCloudFormationTemplate
-> CreateCloudFormationTemplate -> Bool
Prelude.Eq, ReadPrec [CreateCloudFormationTemplate]
ReadPrec CreateCloudFormationTemplate
Int -> ReadS CreateCloudFormationTemplate
ReadS [CreateCloudFormationTemplate]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [CreateCloudFormationTemplate]
$creadListPrec :: ReadPrec [CreateCloudFormationTemplate]
readPrec :: ReadPrec CreateCloudFormationTemplate
$creadPrec :: ReadPrec CreateCloudFormationTemplate
readList :: ReadS [CreateCloudFormationTemplate]
$creadList :: ReadS [CreateCloudFormationTemplate]
readsPrec :: Int -> ReadS CreateCloudFormationTemplate
$creadsPrec :: Int -> ReadS CreateCloudFormationTemplate
Prelude.Read, Int -> CreateCloudFormationTemplate -> ShowS
[CreateCloudFormationTemplate] -> ShowS
CreateCloudFormationTemplate -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [CreateCloudFormationTemplate] -> ShowS
$cshowList :: [CreateCloudFormationTemplate] -> ShowS
show :: CreateCloudFormationTemplate -> String
$cshow :: CreateCloudFormationTemplate -> String
showsPrec :: Int -> CreateCloudFormationTemplate -> ShowS
$cshowsPrec :: Int -> CreateCloudFormationTemplate -> ShowS
Prelude.Show, forall x.
Rep CreateCloudFormationTemplate x -> CreateCloudFormationTemplate
forall x.
CreateCloudFormationTemplate -> Rep CreateCloudFormationTemplate x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep CreateCloudFormationTemplate x -> CreateCloudFormationTemplate
$cfrom :: forall x.
CreateCloudFormationTemplate -> Rep CreateCloudFormationTemplate x
Prelude.Generic)
newCreateCloudFormationTemplate ::
Prelude.Text ->
CreateCloudFormationTemplate
newCreateCloudFormationTemplate :: Text -> CreateCloudFormationTemplate
newCreateCloudFormationTemplate Text
pApplicationId_ =
CreateCloudFormationTemplate'
{ $sel:semanticVersion:CreateCloudFormationTemplate' :: Maybe Text
semanticVersion =
forall a. Maybe a
Prelude.Nothing,
$sel:applicationId:CreateCloudFormationTemplate' :: Text
applicationId = Text
pApplicationId_
}
createCloudFormationTemplate_semanticVersion :: Lens.Lens' CreateCloudFormationTemplate (Prelude.Maybe Prelude.Text)
createCloudFormationTemplate_semanticVersion :: Lens' CreateCloudFormationTemplate (Maybe Text)
createCloudFormationTemplate_semanticVersion = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateCloudFormationTemplate' {Maybe Text
semanticVersion :: Maybe Text
$sel:semanticVersion:CreateCloudFormationTemplate' :: CreateCloudFormationTemplate -> Maybe Text
semanticVersion} -> Maybe Text
semanticVersion) (\s :: CreateCloudFormationTemplate
s@CreateCloudFormationTemplate' {} Maybe Text
a -> CreateCloudFormationTemplate
s {$sel:semanticVersion:CreateCloudFormationTemplate' :: Maybe Text
semanticVersion = Maybe Text
a} :: CreateCloudFormationTemplate)
createCloudFormationTemplate_applicationId :: Lens.Lens' CreateCloudFormationTemplate Prelude.Text
createCloudFormationTemplate_applicationId :: Lens' CreateCloudFormationTemplate Text
createCloudFormationTemplate_applicationId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateCloudFormationTemplate' {Text
applicationId :: Text
$sel:applicationId:CreateCloudFormationTemplate' :: CreateCloudFormationTemplate -> Text
applicationId} -> Text
applicationId) (\s :: CreateCloudFormationTemplate
s@CreateCloudFormationTemplate' {} Text
a -> CreateCloudFormationTemplate
s {$sel:applicationId:CreateCloudFormationTemplate' :: Text
applicationId = Text
a} :: CreateCloudFormationTemplate)
instance Core.AWSRequest CreateCloudFormationTemplate where
type
AWSResponse CreateCloudFormationTemplate =
CreateCloudFormationTemplateResponse
request :: (Service -> Service)
-> CreateCloudFormationTemplate
-> Request CreateCloudFormationTemplate
request Service -> Service
overrides =
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON (Service -> Service
overrides Service
defaultService)
response :: forall (m :: * -> *).
MonadResource m =>
(ByteStringLazy -> IO ByteStringLazy)
-> Service
-> Proxy CreateCloudFormationTemplate
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse CreateCloudFormationTemplate)))
response =
forall (m :: * -> *) a.
MonadResource m =>
(Int -> ResponseHeaders -> Object -> Either String (AWSResponse a))
-> (ByteStringLazy -> IO ByteStringLazy)
-> 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
-> Maybe Status
-> Maybe Text
-> Maybe Text
-> Int
-> CreateCloudFormationTemplateResponse
CreateCloudFormationTemplateResponse'
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"applicationId")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"creationTime")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"expirationTime")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"semanticVersion")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"status")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"templateId")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"templateUrl")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure (forall a. Enum a => a -> Int
Prelude.fromEnum Int
s))
)
instance
Prelude.Hashable
CreateCloudFormationTemplate
where
hashWithSalt :: Int -> CreateCloudFormationTemplate -> Int
hashWithSalt Int
_salt CreateCloudFormationTemplate' {Maybe Text
Text
applicationId :: Text
semanticVersion :: Maybe Text
$sel:applicationId:CreateCloudFormationTemplate' :: CreateCloudFormationTemplate -> Text
$sel:semanticVersion:CreateCloudFormationTemplate' :: CreateCloudFormationTemplate -> Maybe Text
..} =
Int
_salt
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
semanticVersion
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
applicationId
instance Prelude.NFData CreateCloudFormationTemplate where
rnf :: CreateCloudFormationTemplate -> ()
rnf CreateCloudFormationTemplate' {Maybe Text
Text
applicationId :: Text
semanticVersion :: Maybe Text
$sel:applicationId:CreateCloudFormationTemplate' :: CreateCloudFormationTemplate -> Text
$sel:semanticVersion:CreateCloudFormationTemplate' :: CreateCloudFormationTemplate -> Maybe Text
..} =
forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
semanticVersion
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Text
applicationId
instance Data.ToHeaders CreateCloudFormationTemplate where
toHeaders :: CreateCloudFormationTemplate -> ResponseHeaders
toHeaders =
forall a b. a -> b -> a
Prelude.const
( forall a. Monoid a => [a] -> a
Prelude.mconcat
[ HeaderName
"Content-Type"
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Data.=# ( ByteString
"application/x-amz-json-1.1" ::
Prelude.ByteString
)
]
)
instance Data.ToJSON CreateCloudFormationTemplate where
toJSON :: CreateCloudFormationTemplate -> Value
toJSON CreateCloudFormationTemplate' {Maybe Text
Text
applicationId :: Text
semanticVersion :: Maybe Text
$sel:applicationId:CreateCloudFormationTemplate' :: CreateCloudFormationTemplate -> Text
$sel:semanticVersion:CreateCloudFormationTemplate' :: CreateCloudFormationTemplate -> Maybe Text
..} =
[Pair] -> Value
Data.object
( forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Key
"semanticVersion" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
semanticVersion
]
)
instance Data.ToPath CreateCloudFormationTemplate where
toPath :: CreateCloudFormationTemplate -> ByteString
toPath CreateCloudFormationTemplate' {Maybe Text
Text
applicationId :: Text
semanticVersion :: Maybe Text
$sel:applicationId:CreateCloudFormationTemplate' :: CreateCloudFormationTemplate -> Text
$sel:semanticVersion:CreateCloudFormationTemplate' :: CreateCloudFormationTemplate -> Maybe Text
..} =
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ ByteString
"/applications/",
forall a. ToByteString a => a -> ByteString
Data.toBS Text
applicationId,
ByteString
"/templates"
]
instance Data.ToQuery CreateCloudFormationTemplate where
toQuery :: CreateCloudFormationTemplate -> QueryString
toQuery = forall a b. a -> b -> a
Prelude.const forall a. Monoid a => a
Prelude.mempty
data CreateCloudFormationTemplateResponse = CreateCloudFormationTemplateResponse'
{
CreateCloudFormationTemplateResponse -> Maybe Text
applicationId :: Prelude.Maybe Prelude.Text,
CreateCloudFormationTemplateResponse -> Maybe Text
creationTime :: Prelude.Maybe Prelude.Text,
CreateCloudFormationTemplateResponse -> Maybe Text
expirationTime :: Prelude.Maybe Prelude.Text,
CreateCloudFormationTemplateResponse -> Maybe Text
semanticVersion :: Prelude.Maybe Prelude.Text,
CreateCloudFormationTemplateResponse -> Maybe Status
status :: Prelude.Maybe Status,
CreateCloudFormationTemplateResponse -> Maybe Text
templateId :: Prelude.Maybe Prelude.Text,
CreateCloudFormationTemplateResponse -> Maybe Text
templateUrl :: Prelude.Maybe Prelude.Text,
CreateCloudFormationTemplateResponse -> Int
httpStatus :: Prelude.Int
}
deriving (CreateCloudFormationTemplateResponse
-> CreateCloudFormationTemplateResponse -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: CreateCloudFormationTemplateResponse
-> CreateCloudFormationTemplateResponse -> Bool
$c/= :: CreateCloudFormationTemplateResponse
-> CreateCloudFormationTemplateResponse -> Bool
== :: CreateCloudFormationTemplateResponse
-> CreateCloudFormationTemplateResponse -> Bool
$c== :: CreateCloudFormationTemplateResponse
-> CreateCloudFormationTemplateResponse -> Bool
Prelude.Eq, ReadPrec [CreateCloudFormationTemplateResponse]
ReadPrec CreateCloudFormationTemplateResponse
Int -> ReadS CreateCloudFormationTemplateResponse
ReadS [CreateCloudFormationTemplateResponse]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [CreateCloudFormationTemplateResponse]
$creadListPrec :: ReadPrec [CreateCloudFormationTemplateResponse]
readPrec :: ReadPrec CreateCloudFormationTemplateResponse
$creadPrec :: ReadPrec CreateCloudFormationTemplateResponse
readList :: ReadS [CreateCloudFormationTemplateResponse]
$creadList :: ReadS [CreateCloudFormationTemplateResponse]
readsPrec :: Int -> ReadS CreateCloudFormationTemplateResponse
$creadsPrec :: Int -> ReadS CreateCloudFormationTemplateResponse
Prelude.Read, Int -> CreateCloudFormationTemplateResponse -> ShowS
[CreateCloudFormationTemplateResponse] -> ShowS
CreateCloudFormationTemplateResponse -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [CreateCloudFormationTemplateResponse] -> ShowS
$cshowList :: [CreateCloudFormationTemplateResponse] -> ShowS
show :: CreateCloudFormationTemplateResponse -> String
$cshow :: CreateCloudFormationTemplateResponse -> String
showsPrec :: Int -> CreateCloudFormationTemplateResponse -> ShowS
$cshowsPrec :: Int -> CreateCloudFormationTemplateResponse -> ShowS
Prelude.Show, forall x.
Rep CreateCloudFormationTemplateResponse x
-> CreateCloudFormationTemplateResponse
forall x.
CreateCloudFormationTemplateResponse
-> Rep CreateCloudFormationTemplateResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep CreateCloudFormationTemplateResponse x
-> CreateCloudFormationTemplateResponse
$cfrom :: forall x.
CreateCloudFormationTemplateResponse
-> Rep CreateCloudFormationTemplateResponse x
Prelude.Generic)
newCreateCloudFormationTemplateResponse ::
Prelude.Int ->
CreateCloudFormationTemplateResponse
newCreateCloudFormationTemplateResponse :: Int -> CreateCloudFormationTemplateResponse
newCreateCloudFormationTemplateResponse Int
pHttpStatus_ =
CreateCloudFormationTemplateResponse'
{ $sel:applicationId:CreateCloudFormationTemplateResponse' :: Maybe Text
applicationId =
forall a. Maybe a
Prelude.Nothing,
$sel:creationTime:CreateCloudFormationTemplateResponse' :: Maybe Text
creationTime = forall a. Maybe a
Prelude.Nothing,
$sel:expirationTime:CreateCloudFormationTemplateResponse' :: Maybe Text
expirationTime = forall a. Maybe a
Prelude.Nothing,
$sel:semanticVersion:CreateCloudFormationTemplateResponse' :: Maybe Text
semanticVersion = forall a. Maybe a
Prelude.Nothing,
$sel:status:CreateCloudFormationTemplateResponse' :: Maybe Status
status = forall a. Maybe a
Prelude.Nothing,
$sel:templateId:CreateCloudFormationTemplateResponse' :: Maybe Text
templateId = forall a. Maybe a
Prelude.Nothing,
$sel:templateUrl:CreateCloudFormationTemplateResponse' :: Maybe Text
templateUrl = forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:CreateCloudFormationTemplateResponse' :: Int
httpStatus = Int
pHttpStatus_
}
createCloudFormationTemplateResponse_applicationId :: Lens.Lens' CreateCloudFormationTemplateResponse (Prelude.Maybe Prelude.Text)
createCloudFormationTemplateResponse_applicationId :: Lens' CreateCloudFormationTemplateResponse (Maybe Text)
createCloudFormationTemplateResponse_applicationId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateCloudFormationTemplateResponse' {Maybe Text
applicationId :: Maybe Text
$sel:applicationId:CreateCloudFormationTemplateResponse' :: CreateCloudFormationTemplateResponse -> Maybe Text
applicationId} -> Maybe Text
applicationId) (\s :: CreateCloudFormationTemplateResponse
s@CreateCloudFormationTemplateResponse' {} Maybe Text
a -> CreateCloudFormationTemplateResponse
s {$sel:applicationId:CreateCloudFormationTemplateResponse' :: Maybe Text
applicationId = Maybe Text
a} :: CreateCloudFormationTemplateResponse)
createCloudFormationTemplateResponse_creationTime :: Lens.Lens' CreateCloudFormationTemplateResponse (Prelude.Maybe Prelude.Text)
createCloudFormationTemplateResponse_creationTime :: Lens' CreateCloudFormationTemplateResponse (Maybe Text)
createCloudFormationTemplateResponse_creationTime = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateCloudFormationTemplateResponse' {Maybe Text
creationTime :: Maybe Text
$sel:creationTime:CreateCloudFormationTemplateResponse' :: CreateCloudFormationTemplateResponse -> Maybe Text
creationTime} -> Maybe Text
creationTime) (\s :: CreateCloudFormationTemplateResponse
s@CreateCloudFormationTemplateResponse' {} Maybe Text
a -> CreateCloudFormationTemplateResponse
s {$sel:creationTime:CreateCloudFormationTemplateResponse' :: Maybe Text
creationTime = Maybe Text
a} :: CreateCloudFormationTemplateResponse)
createCloudFormationTemplateResponse_expirationTime :: Lens.Lens' CreateCloudFormationTemplateResponse (Prelude.Maybe Prelude.Text)
createCloudFormationTemplateResponse_expirationTime :: Lens' CreateCloudFormationTemplateResponse (Maybe Text)
createCloudFormationTemplateResponse_expirationTime = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateCloudFormationTemplateResponse' {Maybe Text
expirationTime :: Maybe Text
$sel:expirationTime:CreateCloudFormationTemplateResponse' :: CreateCloudFormationTemplateResponse -> Maybe Text
expirationTime} -> Maybe Text
expirationTime) (\s :: CreateCloudFormationTemplateResponse
s@CreateCloudFormationTemplateResponse' {} Maybe Text
a -> CreateCloudFormationTemplateResponse
s {$sel:expirationTime:CreateCloudFormationTemplateResponse' :: Maybe Text
expirationTime = Maybe Text
a} :: CreateCloudFormationTemplateResponse)
createCloudFormationTemplateResponse_semanticVersion :: Lens.Lens' CreateCloudFormationTemplateResponse (Prelude.Maybe Prelude.Text)
createCloudFormationTemplateResponse_semanticVersion :: Lens' CreateCloudFormationTemplateResponse (Maybe Text)
createCloudFormationTemplateResponse_semanticVersion = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateCloudFormationTemplateResponse' {Maybe Text
semanticVersion :: Maybe Text
$sel:semanticVersion:CreateCloudFormationTemplateResponse' :: CreateCloudFormationTemplateResponse -> Maybe Text
semanticVersion} -> Maybe Text
semanticVersion) (\s :: CreateCloudFormationTemplateResponse
s@CreateCloudFormationTemplateResponse' {} Maybe Text
a -> CreateCloudFormationTemplateResponse
s {$sel:semanticVersion:CreateCloudFormationTemplateResponse' :: Maybe Text
semanticVersion = Maybe Text
a} :: CreateCloudFormationTemplateResponse)
createCloudFormationTemplateResponse_status :: Lens.Lens' CreateCloudFormationTemplateResponse (Prelude.Maybe Status)
createCloudFormationTemplateResponse_status :: Lens' CreateCloudFormationTemplateResponse (Maybe Status)
createCloudFormationTemplateResponse_status = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateCloudFormationTemplateResponse' {Maybe Status
status :: Maybe Status
$sel:status:CreateCloudFormationTemplateResponse' :: CreateCloudFormationTemplateResponse -> Maybe Status
status} -> Maybe Status
status) (\s :: CreateCloudFormationTemplateResponse
s@CreateCloudFormationTemplateResponse' {} Maybe Status
a -> CreateCloudFormationTemplateResponse
s {$sel:status:CreateCloudFormationTemplateResponse' :: Maybe Status
status = Maybe Status
a} :: CreateCloudFormationTemplateResponse)
createCloudFormationTemplateResponse_templateId :: Lens.Lens' CreateCloudFormationTemplateResponse (Prelude.Maybe Prelude.Text)
createCloudFormationTemplateResponse_templateId :: Lens' CreateCloudFormationTemplateResponse (Maybe Text)
createCloudFormationTemplateResponse_templateId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateCloudFormationTemplateResponse' {Maybe Text
templateId :: Maybe Text
$sel:templateId:CreateCloudFormationTemplateResponse' :: CreateCloudFormationTemplateResponse -> Maybe Text
templateId} -> Maybe Text
templateId) (\s :: CreateCloudFormationTemplateResponse
s@CreateCloudFormationTemplateResponse' {} Maybe Text
a -> CreateCloudFormationTemplateResponse
s {$sel:templateId:CreateCloudFormationTemplateResponse' :: Maybe Text
templateId = Maybe Text
a} :: CreateCloudFormationTemplateResponse)
createCloudFormationTemplateResponse_templateUrl :: Lens.Lens' CreateCloudFormationTemplateResponse (Prelude.Maybe Prelude.Text)
createCloudFormationTemplateResponse_templateUrl :: Lens' CreateCloudFormationTemplateResponse (Maybe Text)
createCloudFormationTemplateResponse_templateUrl = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateCloudFormationTemplateResponse' {Maybe Text
templateUrl :: Maybe Text
$sel:templateUrl:CreateCloudFormationTemplateResponse' :: CreateCloudFormationTemplateResponse -> Maybe Text
templateUrl} -> Maybe Text
templateUrl) (\s :: CreateCloudFormationTemplateResponse
s@CreateCloudFormationTemplateResponse' {} Maybe Text
a -> CreateCloudFormationTemplateResponse
s {$sel:templateUrl:CreateCloudFormationTemplateResponse' :: Maybe Text
templateUrl = Maybe Text
a} :: CreateCloudFormationTemplateResponse)
createCloudFormationTemplateResponse_httpStatus :: Lens.Lens' CreateCloudFormationTemplateResponse Prelude.Int
createCloudFormationTemplateResponse_httpStatus :: Lens' CreateCloudFormationTemplateResponse Int
createCloudFormationTemplateResponse_httpStatus = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateCloudFormationTemplateResponse' {Int
httpStatus :: Int
$sel:httpStatus:CreateCloudFormationTemplateResponse' :: CreateCloudFormationTemplateResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: CreateCloudFormationTemplateResponse
s@CreateCloudFormationTemplateResponse' {} Int
a -> CreateCloudFormationTemplateResponse
s {$sel:httpStatus:CreateCloudFormationTemplateResponse' :: Int
httpStatus = Int
a} :: CreateCloudFormationTemplateResponse)
instance
Prelude.NFData
CreateCloudFormationTemplateResponse
where
rnf :: CreateCloudFormationTemplateResponse -> ()
rnf CreateCloudFormationTemplateResponse' {Int
Maybe Text
Maybe Status
httpStatus :: Int
templateUrl :: Maybe Text
templateId :: Maybe Text
status :: Maybe Status
semanticVersion :: Maybe Text
expirationTime :: Maybe Text
creationTime :: Maybe Text
applicationId :: Maybe Text
$sel:httpStatus:CreateCloudFormationTemplateResponse' :: CreateCloudFormationTemplateResponse -> Int
$sel:templateUrl:CreateCloudFormationTemplateResponse' :: CreateCloudFormationTemplateResponse -> Maybe Text
$sel:templateId:CreateCloudFormationTemplateResponse' :: CreateCloudFormationTemplateResponse -> Maybe Text
$sel:status:CreateCloudFormationTemplateResponse' :: CreateCloudFormationTemplateResponse -> Maybe Status
$sel:semanticVersion:CreateCloudFormationTemplateResponse' :: CreateCloudFormationTemplateResponse -> Maybe Text
$sel:expirationTime:CreateCloudFormationTemplateResponse' :: CreateCloudFormationTemplateResponse -> Maybe Text
$sel:creationTime:CreateCloudFormationTemplateResponse' :: CreateCloudFormationTemplateResponse -> Maybe Text
$sel:applicationId:CreateCloudFormationTemplateResponse' :: CreateCloudFormationTemplateResponse -> Maybe Text
..} =
forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
applicationId
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
creationTime
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
expirationTime
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
semanticVersion
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Status
status
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
templateId
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
templateUrl
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Int
httpStatus