{-# 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.CloudFormation.CreateStackSet
(
CreateStackSet (..),
newCreateStackSet,
createStackSet_administrationRoleARN,
createStackSet_callAs,
createStackSet_autoDeployment,
createStackSet_permissionModel,
createStackSet_parameters,
createStackSet_templateBody,
createStackSet_templateURL,
createStackSet_stackId,
createStackSet_clientRequestToken,
createStackSet_description,
createStackSet_capabilities,
createStackSet_tags,
createStackSet_executionRoleName,
createStackSet_stackSetName,
CreateStackSetResponse (..),
newCreateStackSetResponse,
createStackSetResponse_stackSetId,
createStackSetResponse_httpStatus,
)
where
import Amazonka.CloudFormation.Types
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
data CreateStackSet = CreateStackSet'
{
CreateStackSet -> Maybe Text
administrationRoleARN :: Prelude.Maybe Prelude.Text,
CreateStackSet -> Maybe CallAs
callAs :: Prelude.Maybe CallAs,
CreateStackSet -> Maybe AutoDeployment
autoDeployment :: Prelude.Maybe AutoDeployment,
CreateStackSet -> Maybe PermissionModels
permissionModel :: Prelude.Maybe PermissionModels,
CreateStackSet -> Maybe [Parameter]
parameters :: Prelude.Maybe [Parameter],
CreateStackSet -> Maybe Text
templateBody :: Prelude.Maybe Prelude.Text,
CreateStackSet -> Maybe Text
templateURL :: Prelude.Maybe Prelude.Text,
CreateStackSet -> Maybe Text
stackId :: Prelude.Maybe Prelude.Text,
CreateStackSet -> Maybe Text
clientRequestToken :: Prelude.Maybe Prelude.Text,
CreateStackSet -> Maybe Text
description :: Prelude.Maybe Prelude.Text,
CreateStackSet -> Maybe [Capability]
capabilities :: Prelude.Maybe [Capability],
CreateStackSet -> Maybe [Tag]
tags :: Prelude.Maybe [Tag],
CreateStackSet -> Maybe Text
executionRoleName :: Prelude.Maybe Prelude.Text,
CreateStackSet -> Text
stackSetName :: Prelude.Text
}
deriving (CreateStackSet -> CreateStackSet -> Bool
(CreateStackSet -> CreateStackSet -> Bool)
-> (CreateStackSet -> CreateStackSet -> Bool) -> Eq CreateStackSet
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: CreateStackSet -> CreateStackSet -> Bool
$c/= :: CreateStackSet -> CreateStackSet -> Bool
== :: CreateStackSet -> CreateStackSet -> Bool
$c== :: CreateStackSet -> CreateStackSet -> Bool
Prelude.Eq, ReadPrec [CreateStackSet]
ReadPrec CreateStackSet
Int -> ReadS CreateStackSet
ReadS [CreateStackSet]
(Int -> ReadS CreateStackSet)
-> ReadS [CreateStackSet]
-> ReadPrec CreateStackSet
-> ReadPrec [CreateStackSet]
-> Read CreateStackSet
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [CreateStackSet]
$creadListPrec :: ReadPrec [CreateStackSet]
readPrec :: ReadPrec CreateStackSet
$creadPrec :: ReadPrec CreateStackSet
readList :: ReadS [CreateStackSet]
$creadList :: ReadS [CreateStackSet]
readsPrec :: Int -> ReadS CreateStackSet
$creadsPrec :: Int -> ReadS CreateStackSet
Prelude.Read, Int -> CreateStackSet -> ShowS
[CreateStackSet] -> ShowS
CreateStackSet -> String
(Int -> CreateStackSet -> ShowS)
-> (CreateStackSet -> String)
-> ([CreateStackSet] -> ShowS)
-> Show CreateStackSet
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [CreateStackSet] -> ShowS
$cshowList :: [CreateStackSet] -> ShowS
show :: CreateStackSet -> String
$cshow :: CreateStackSet -> String
showsPrec :: Int -> CreateStackSet -> ShowS
$cshowsPrec :: Int -> CreateStackSet -> ShowS
Prelude.Show, (forall x. CreateStackSet -> Rep CreateStackSet x)
-> (forall x. Rep CreateStackSet x -> CreateStackSet)
-> Generic CreateStackSet
forall x. Rep CreateStackSet x -> CreateStackSet
forall x. CreateStackSet -> Rep CreateStackSet x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep CreateStackSet x -> CreateStackSet
$cfrom :: forall x. CreateStackSet -> Rep CreateStackSet x
Prelude.Generic)
newCreateStackSet ::
Prelude.Text ->
CreateStackSet
newCreateStackSet :: Text -> CreateStackSet
newCreateStackSet Text
pStackSetName_ =
CreateStackSet' :: Maybe Text
-> Maybe CallAs
-> Maybe AutoDeployment
-> Maybe PermissionModels
-> Maybe [Parameter]
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe [Capability]
-> Maybe [Tag]
-> Maybe Text
-> Text
-> CreateStackSet
CreateStackSet'
{ $sel:administrationRoleARN:CreateStackSet' :: Maybe Text
administrationRoleARN =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:callAs:CreateStackSet' :: Maybe CallAs
callAs = Maybe CallAs
forall a. Maybe a
Prelude.Nothing,
$sel:autoDeployment:CreateStackSet' :: Maybe AutoDeployment
autoDeployment = Maybe AutoDeployment
forall a. Maybe a
Prelude.Nothing,
$sel:permissionModel:CreateStackSet' :: Maybe PermissionModels
permissionModel = Maybe PermissionModels
forall a. Maybe a
Prelude.Nothing,
$sel:parameters:CreateStackSet' :: Maybe [Parameter]
parameters = Maybe [Parameter]
forall a. Maybe a
Prelude.Nothing,
$sel:templateBody:CreateStackSet' :: Maybe Text
templateBody = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:templateURL:CreateStackSet' :: Maybe Text
templateURL = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:stackId:CreateStackSet' :: Maybe Text
stackId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:clientRequestToken:CreateStackSet' :: Maybe Text
clientRequestToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:description:CreateStackSet' :: Maybe Text
description = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:capabilities:CreateStackSet' :: Maybe [Capability]
capabilities = Maybe [Capability]
forall a. Maybe a
Prelude.Nothing,
$sel:tags:CreateStackSet' :: Maybe [Tag]
tags = Maybe [Tag]
forall a. Maybe a
Prelude.Nothing,
$sel:executionRoleName:CreateStackSet' :: Maybe Text
executionRoleName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:stackSetName:CreateStackSet' :: Text
stackSetName = Text
pStackSetName_
}
createStackSet_administrationRoleARN :: Lens.Lens' CreateStackSet (Prelude.Maybe Prelude.Text)
createStackSet_administrationRoleARN :: (Maybe Text -> f (Maybe Text))
-> CreateStackSet -> f CreateStackSet
createStackSet_administrationRoleARN = (CreateStackSet -> Maybe Text)
-> (CreateStackSet -> Maybe Text -> CreateStackSet)
-> Lens CreateStackSet CreateStackSet (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateStackSet' {Maybe Text
administrationRoleARN :: Maybe Text
$sel:administrationRoleARN:CreateStackSet' :: CreateStackSet -> Maybe Text
administrationRoleARN} -> Maybe Text
administrationRoleARN) (\s :: CreateStackSet
s@CreateStackSet' {} Maybe Text
a -> CreateStackSet
s {$sel:administrationRoleARN:CreateStackSet' :: Maybe Text
administrationRoleARN = Maybe Text
a} :: CreateStackSet)
createStackSet_callAs :: Lens.Lens' CreateStackSet (Prelude.Maybe CallAs)
createStackSet_callAs :: (Maybe CallAs -> f (Maybe CallAs))
-> CreateStackSet -> f CreateStackSet
createStackSet_callAs = (CreateStackSet -> Maybe CallAs)
-> (CreateStackSet -> Maybe CallAs -> CreateStackSet)
-> Lens CreateStackSet CreateStackSet (Maybe CallAs) (Maybe CallAs)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateStackSet' {Maybe CallAs
callAs :: Maybe CallAs
$sel:callAs:CreateStackSet' :: CreateStackSet -> Maybe CallAs
callAs} -> Maybe CallAs
callAs) (\s :: CreateStackSet
s@CreateStackSet' {} Maybe CallAs
a -> CreateStackSet
s {$sel:callAs:CreateStackSet' :: Maybe CallAs
callAs = Maybe CallAs
a} :: CreateStackSet)
createStackSet_autoDeployment :: Lens.Lens' CreateStackSet (Prelude.Maybe AutoDeployment)
createStackSet_autoDeployment :: (Maybe AutoDeployment -> f (Maybe AutoDeployment))
-> CreateStackSet -> f CreateStackSet
createStackSet_autoDeployment = (CreateStackSet -> Maybe AutoDeployment)
-> (CreateStackSet -> Maybe AutoDeployment -> CreateStackSet)
-> Lens
CreateStackSet
CreateStackSet
(Maybe AutoDeployment)
(Maybe AutoDeployment)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateStackSet' {Maybe AutoDeployment
autoDeployment :: Maybe AutoDeployment
$sel:autoDeployment:CreateStackSet' :: CreateStackSet -> Maybe AutoDeployment
autoDeployment} -> Maybe AutoDeployment
autoDeployment) (\s :: CreateStackSet
s@CreateStackSet' {} Maybe AutoDeployment
a -> CreateStackSet
s {$sel:autoDeployment:CreateStackSet' :: Maybe AutoDeployment
autoDeployment = Maybe AutoDeployment
a} :: CreateStackSet)
createStackSet_permissionModel :: Lens.Lens' CreateStackSet (Prelude.Maybe PermissionModels)
createStackSet_permissionModel :: (Maybe PermissionModels -> f (Maybe PermissionModels))
-> CreateStackSet -> f CreateStackSet
createStackSet_permissionModel = (CreateStackSet -> Maybe PermissionModels)
-> (CreateStackSet -> Maybe PermissionModels -> CreateStackSet)
-> Lens
CreateStackSet
CreateStackSet
(Maybe PermissionModels)
(Maybe PermissionModels)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateStackSet' {Maybe PermissionModels
permissionModel :: Maybe PermissionModels
$sel:permissionModel:CreateStackSet' :: CreateStackSet -> Maybe PermissionModels
permissionModel} -> Maybe PermissionModels
permissionModel) (\s :: CreateStackSet
s@CreateStackSet' {} Maybe PermissionModels
a -> CreateStackSet
s {$sel:permissionModel:CreateStackSet' :: Maybe PermissionModels
permissionModel = Maybe PermissionModels
a} :: CreateStackSet)
createStackSet_parameters :: Lens.Lens' CreateStackSet (Prelude.Maybe [Parameter])
createStackSet_parameters :: (Maybe [Parameter] -> f (Maybe [Parameter]))
-> CreateStackSet -> f CreateStackSet
createStackSet_parameters = (CreateStackSet -> Maybe [Parameter])
-> (CreateStackSet -> Maybe [Parameter] -> CreateStackSet)
-> Lens
CreateStackSet
CreateStackSet
(Maybe [Parameter])
(Maybe [Parameter])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateStackSet' {Maybe [Parameter]
parameters :: Maybe [Parameter]
$sel:parameters:CreateStackSet' :: CreateStackSet -> Maybe [Parameter]
parameters} -> Maybe [Parameter]
parameters) (\s :: CreateStackSet
s@CreateStackSet' {} Maybe [Parameter]
a -> CreateStackSet
s {$sel:parameters:CreateStackSet' :: Maybe [Parameter]
parameters = Maybe [Parameter]
a} :: CreateStackSet) ((Maybe [Parameter] -> f (Maybe [Parameter]))
-> CreateStackSet -> f CreateStackSet)
-> ((Maybe [Parameter] -> f (Maybe [Parameter]))
-> Maybe [Parameter] -> f (Maybe [Parameter]))
-> (Maybe [Parameter] -> f (Maybe [Parameter]))
-> CreateStackSet
-> f CreateStackSet
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [Parameter] [Parameter] [Parameter] [Parameter]
-> Iso
(Maybe [Parameter])
(Maybe [Parameter])
(Maybe [Parameter])
(Maybe [Parameter])
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 [Parameter] [Parameter] [Parameter] [Parameter]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
createStackSet_templateBody :: Lens.Lens' CreateStackSet (Prelude.Maybe Prelude.Text)
createStackSet_templateBody :: (Maybe Text -> f (Maybe Text))
-> CreateStackSet -> f CreateStackSet
createStackSet_templateBody = (CreateStackSet -> Maybe Text)
-> (CreateStackSet -> Maybe Text -> CreateStackSet)
-> Lens CreateStackSet CreateStackSet (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateStackSet' {Maybe Text
templateBody :: Maybe Text
$sel:templateBody:CreateStackSet' :: CreateStackSet -> Maybe Text
templateBody} -> Maybe Text
templateBody) (\s :: CreateStackSet
s@CreateStackSet' {} Maybe Text
a -> CreateStackSet
s {$sel:templateBody:CreateStackSet' :: Maybe Text
templateBody = Maybe Text
a} :: CreateStackSet)
createStackSet_templateURL :: Lens.Lens' CreateStackSet (Prelude.Maybe Prelude.Text)
createStackSet_templateURL :: (Maybe Text -> f (Maybe Text))
-> CreateStackSet -> f CreateStackSet
createStackSet_templateURL = (CreateStackSet -> Maybe Text)
-> (CreateStackSet -> Maybe Text -> CreateStackSet)
-> Lens CreateStackSet CreateStackSet (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateStackSet' {Maybe Text
templateURL :: Maybe Text
$sel:templateURL:CreateStackSet' :: CreateStackSet -> Maybe Text
templateURL} -> Maybe Text
templateURL) (\s :: CreateStackSet
s@CreateStackSet' {} Maybe Text
a -> CreateStackSet
s {$sel:templateURL:CreateStackSet' :: Maybe Text
templateURL = Maybe Text
a} :: CreateStackSet)
createStackSet_stackId :: Lens.Lens' CreateStackSet (Prelude.Maybe Prelude.Text)
createStackSet_stackId :: (Maybe Text -> f (Maybe Text))
-> CreateStackSet -> f CreateStackSet
createStackSet_stackId = (CreateStackSet -> Maybe Text)
-> (CreateStackSet -> Maybe Text -> CreateStackSet)
-> Lens CreateStackSet CreateStackSet (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateStackSet' {Maybe Text
stackId :: Maybe Text
$sel:stackId:CreateStackSet' :: CreateStackSet -> Maybe Text
stackId} -> Maybe Text
stackId) (\s :: CreateStackSet
s@CreateStackSet' {} Maybe Text
a -> CreateStackSet
s {$sel:stackId:CreateStackSet' :: Maybe Text
stackId = Maybe Text
a} :: CreateStackSet)
createStackSet_clientRequestToken :: Lens.Lens' CreateStackSet (Prelude.Maybe Prelude.Text)
createStackSet_clientRequestToken :: (Maybe Text -> f (Maybe Text))
-> CreateStackSet -> f CreateStackSet
createStackSet_clientRequestToken = (CreateStackSet -> Maybe Text)
-> (CreateStackSet -> Maybe Text -> CreateStackSet)
-> Lens CreateStackSet CreateStackSet (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateStackSet' {Maybe Text
clientRequestToken :: Maybe Text
$sel:clientRequestToken:CreateStackSet' :: CreateStackSet -> Maybe Text
clientRequestToken} -> Maybe Text
clientRequestToken) (\s :: CreateStackSet
s@CreateStackSet' {} Maybe Text
a -> CreateStackSet
s {$sel:clientRequestToken:CreateStackSet' :: Maybe Text
clientRequestToken = Maybe Text
a} :: CreateStackSet)
createStackSet_description :: Lens.Lens' CreateStackSet (Prelude.Maybe Prelude.Text)
createStackSet_description :: (Maybe Text -> f (Maybe Text))
-> CreateStackSet -> f CreateStackSet
createStackSet_description = (CreateStackSet -> Maybe Text)
-> (CreateStackSet -> Maybe Text -> CreateStackSet)
-> Lens CreateStackSet CreateStackSet (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateStackSet' {Maybe Text
description :: Maybe Text
$sel:description:CreateStackSet' :: CreateStackSet -> Maybe Text
description} -> Maybe Text
description) (\s :: CreateStackSet
s@CreateStackSet' {} Maybe Text
a -> CreateStackSet
s {$sel:description:CreateStackSet' :: Maybe Text
description = Maybe Text
a} :: CreateStackSet)
createStackSet_capabilities :: Lens.Lens' CreateStackSet (Prelude.Maybe [Capability])
createStackSet_capabilities :: (Maybe [Capability] -> f (Maybe [Capability]))
-> CreateStackSet -> f CreateStackSet
createStackSet_capabilities = (CreateStackSet -> Maybe [Capability])
-> (CreateStackSet -> Maybe [Capability] -> CreateStackSet)
-> Lens
CreateStackSet
CreateStackSet
(Maybe [Capability])
(Maybe [Capability])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateStackSet' {Maybe [Capability]
capabilities :: Maybe [Capability]
$sel:capabilities:CreateStackSet' :: CreateStackSet -> Maybe [Capability]
capabilities} -> Maybe [Capability]
capabilities) (\s :: CreateStackSet
s@CreateStackSet' {} Maybe [Capability]
a -> CreateStackSet
s {$sel:capabilities:CreateStackSet' :: Maybe [Capability]
capabilities = Maybe [Capability]
a} :: CreateStackSet) ((Maybe [Capability] -> f (Maybe [Capability]))
-> CreateStackSet -> f CreateStackSet)
-> ((Maybe [Capability] -> f (Maybe [Capability]))
-> Maybe [Capability] -> f (Maybe [Capability]))
-> (Maybe [Capability] -> f (Maybe [Capability]))
-> CreateStackSet
-> f CreateStackSet
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [Capability] [Capability] [Capability] [Capability]
-> Iso
(Maybe [Capability])
(Maybe [Capability])
(Maybe [Capability])
(Maybe [Capability])
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 [Capability] [Capability] [Capability] [Capability]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
createStackSet_tags :: Lens.Lens' CreateStackSet (Prelude.Maybe [Tag])
createStackSet_tags :: (Maybe [Tag] -> f (Maybe [Tag]))
-> CreateStackSet -> f CreateStackSet
createStackSet_tags = (CreateStackSet -> Maybe [Tag])
-> (CreateStackSet -> Maybe [Tag] -> CreateStackSet)
-> Lens CreateStackSet CreateStackSet (Maybe [Tag]) (Maybe [Tag])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateStackSet' {Maybe [Tag]
tags :: Maybe [Tag]
$sel:tags:CreateStackSet' :: CreateStackSet -> Maybe [Tag]
tags} -> Maybe [Tag]
tags) (\s :: CreateStackSet
s@CreateStackSet' {} Maybe [Tag]
a -> CreateStackSet
s {$sel:tags:CreateStackSet' :: Maybe [Tag]
tags = Maybe [Tag]
a} :: CreateStackSet) ((Maybe [Tag] -> f (Maybe [Tag]))
-> CreateStackSet -> f CreateStackSet)
-> ((Maybe [Tag] -> f (Maybe [Tag]))
-> Maybe [Tag] -> f (Maybe [Tag]))
-> (Maybe [Tag] -> f (Maybe [Tag]))
-> CreateStackSet
-> f CreateStackSet
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
createStackSet_executionRoleName :: Lens.Lens' CreateStackSet (Prelude.Maybe Prelude.Text)
createStackSet_executionRoleName :: (Maybe Text -> f (Maybe Text))
-> CreateStackSet -> f CreateStackSet
createStackSet_executionRoleName = (CreateStackSet -> Maybe Text)
-> (CreateStackSet -> Maybe Text -> CreateStackSet)
-> Lens CreateStackSet CreateStackSet (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateStackSet' {Maybe Text
executionRoleName :: Maybe Text
$sel:executionRoleName:CreateStackSet' :: CreateStackSet -> Maybe Text
executionRoleName} -> Maybe Text
executionRoleName) (\s :: CreateStackSet
s@CreateStackSet' {} Maybe Text
a -> CreateStackSet
s {$sel:executionRoleName:CreateStackSet' :: Maybe Text
executionRoleName = Maybe Text
a} :: CreateStackSet)
createStackSet_stackSetName :: Lens.Lens' CreateStackSet Prelude.Text
createStackSet_stackSetName :: (Text -> f Text) -> CreateStackSet -> f CreateStackSet
createStackSet_stackSetName = (CreateStackSet -> Text)
-> (CreateStackSet -> Text -> CreateStackSet)
-> Lens CreateStackSet CreateStackSet Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateStackSet' {Text
stackSetName :: Text
$sel:stackSetName:CreateStackSet' :: CreateStackSet -> Text
stackSetName} -> Text
stackSetName) (\s :: CreateStackSet
s@CreateStackSet' {} Text
a -> CreateStackSet
s {$sel:stackSetName:CreateStackSet' :: Text
stackSetName = Text
a} :: CreateStackSet)
instance Core.AWSRequest CreateStackSet where
type
AWSResponse CreateStackSet =
CreateStackSetResponse
request :: CreateStackSet -> Request CreateStackSet
request = Service -> CreateStackSet -> Request CreateStackSet
forall a. ToRequest a => Service -> a -> Request a
Request.postQuery Service
defaultService
response :: Logger
-> Service
-> Proxy CreateStackSet
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse CreateStackSet)))
response =
Text
-> (Int
-> ResponseHeaders
-> [Node]
-> Either String (AWSResponse CreateStackSet))
-> Logger
-> Service
-> Proxy CreateStackSet
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse CreateStackSet)))
forall (m :: * -> *) a.
MonadResource m =>
Text
-> (Int
-> ResponseHeaders -> [Node] -> Either String (AWSResponse a))
-> Logger
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveXMLWrapper
Text
"CreateStackSetResult"
( \Int
s ResponseHeaders
h [Node]
x ->
Maybe Text -> Int -> CreateStackSetResponse
CreateStackSetResponse'
(Maybe Text -> Int -> CreateStackSetResponse)
-> Either String (Maybe Text)
-> Either String (Int -> CreateStackSetResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> ([Node]
x [Node] -> Text -> Either String (Maybe Text)
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"StackSetId")
Either String (Int -> CreateStackSetResponse)
-> Either String Int -> Either String CreateStackSetResponse
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 CreateStackSet
instance Prelude.NFData CreateStackSet
instance Core.ToHeaders CreateStackSet where
toHeaders :: CreateStackSet -> ResponseHeaders
toHeaders = ResponseHeaders -> CreateStackSet -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const ResponseHeaders
forall a. Monoid a => a
Prelude.mempty
instance Core.ToPath CreateStackSet where
toPath :: CreateStackSet -> ByteString
toPath = ByteString -> CreateStackSet -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Core.ToQuery CreateStackSet where
toQuery :: CreateStackSet -> QueryString
toQuery CreateStackSet' {Maybe [Capability]
Maybe [Parameter]
Maybe [Tag]
Maybe Text
Maybe AutoDeployment
Maybe CallAs
Maybe PermissionModels
Text
stackSetName :: Text
executionRoleName :: Maybe Text
tags :: Maybe [Tag]
capabilities :: Maybe [Capability]
description :: Maybe Text
clientRequestToken :: Maybe Text
stackId :: Maybe Text
templateURL :: Maybe Text
templateBody :: Maybe Text
parameters :: Maybe [Parameter]
permissionModel :: Maybe PermissionModels
autoDeployment :: Maybe AutoDeployment
callAs :: Maybe CallAs
administrationRoleARN :: Maybe Text
$sel:stackSetName:CreateStackSet' :: CreateStackSet -> Text
$sel:executionRoleName:CreateStackSet' :: CreateStackSet -> Maybe Text
$sel:tags:CreateStackSet' :: CreateStackSet -> Maybe [Tag]
$sel:capabilities:CreateStackSet' :: CreateStackSet -> Maybe [Capability]
$sel:description:CreateStackSet' :: CreateStackSet -> Maybe Text
$sel:clientRequestToken:CreateStackSet' :: CreateStackSet -> Maybe Text
$sel:stackId:CreateStackSet' :: CreateStackSet -> Maybe Text
$sel:templateURL:CreateStackSet' :: CreateStackSet -> Maybe Text
$sel:templateBody:CreateStackSet' :: CreateStackSet -> Maybe Text
$sel:parameters:CreateStackSet' :: CreateStackSet -> Maybe [Parameter]
$sel:permissionModel:CreateStackSet' :: CreateStackSet -> Maybe PermissionModels
$sel:autoDeployment:CreateStackSet' :: CreateStackSet -> Maybe AutoDeployment
$sel:callAs:CreateStackSet' :: CreateStackSet -> Maybe CallAs
$sel:administrationRoleARN:CreateStackSet' :: CreateStackSet -> Maybe Text
..} =
[QueryString] -> QueryString
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ ByteString
"Action"
ByteString -> ByteString -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: (ByteString
"CreateStackSet" :: Prelude.ByteString),
ByteString
"Version"
ByteString -> ByteString -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: (ByteString
"2010-05-15" :: Prelude.ByteString),
ByteString
"AdministrationRoleARN"
ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
administrationRoleARN,
ByteString
"CallAs" ByteString -> Maybe CallAs -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe CallAs
callAs,
ByteString
"AutoDeployment" ByteString -> Maybe AutoDeployment -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe AutoDeployment
autoDeployment,
ByteString
"PermissionModel" ByteString -> Maybe PermissionModels -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe PermissionModels
permissionModel,
ByteString
"Parameters"
ByteString -> QueryString -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe QueryString -> QueryString
forall a. ToQuery a => a -> QueryString
Core.toQuery
(ByteString -> [Parameter] -> QueryString
forall a.
(IsList a, ToQuery (Item a)) =>
ByteString -> a -> QueryString
Core.toQueryList ByteString
"member" ([Parameter] -> QueryString)
-> Maybe [Parameter] -> Maybe QueryString
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Parameter]
parameters),
ByteString
"TemplateBody" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
templateBody,
ByteString
"TemplateURL" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
templateURL,
ByteString
"StackId" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
stackId,
ByteString
"ClientRequestToken" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
clientRequestToken,
ByteString
"Description" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
description,
ByteString
"Capabilities"
ByteString -> QueryString -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe QueryString -> QueryString
forall a. ToQuery a => a -> QueryString
Core.toQuery
(ByteString -> [Capability] -> QueryString
forall a.
(IsList a, ToQuery (Item a)) =>
ByteString -> a -> QueryString
Core.toQueryList ByteString
"member" ([Capability] -> QueryString)
-> Maybe [Capability] -> Maybe QueryString
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Capability]
capabilities),
ByteString
"Tags"
ByteString -> QueryString -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe QueryString -> QueryString
forall a. ToQuery a => a -> QueryString
Core.toQuery
(ByteString -> [Tag] -> QueryString
forall a.
(IsList a, ToQuery (Item a)) =>
ByteString -> a -> QueryString
Core.toQueryList ByteString
"member" ([Tag] -> QueryString) -> Maybe [Tag] -> Maybe QueryString
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Tag]
tags),
ByteString
"ExecutionRoleName" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
executionRoleName,
ByteString
"StackSetName" ByteString -> Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Text
stackSetName
]
data CreateStackSetResponse = CreateStackSetResponse'
{
CreateStackSetResponse -> Maybe Text
stackSetId :: Prelude.Maybe Prelude.Text,
CreateStackSetResponse -> Int
httpStatus :: Prelude.Int
}
deriving (CreateStackSetResponse -> CreateStackSetResponse -> Bool
(CreateStackSetResponse -> CreateStackSetResponse -> Bool)
-> (CreateStackSetResponse -> CreateStackSetResponse -> Bool)
-> Eq CreateStackSetResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: CreateStackSetResponse -> CreateStackSetResponse -> Bool
$c/= :: CreateStackSetResponse -> CreateStackSetResponse -> Bool
== :: CreateStackSetResponse -> CreateStackSetResponse -> Bool
$c== :: CreateStackSetResponse -> CreateStackSetResponse -> Bool
Prelude.Eq, ReadPrec [CreateStackSetResponse]
ReadPrec CreateStackSetResponse
Int -> ReadS CreateStackSetResponse
ReadS [CreateStackSetResponse]
(Int -> ReadS CreateStackSetResponse)
-> ReadS [CreateStackSetResponse]
-> ReadPrec CreateStackSetResponse
-> ReadPrec [CreateStackSetResponse]
-> Read CreateStackSetResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [CreateStackSetResponse]
$creadListPrec :: ReadPrec [CreateStackSetResponse]
readPrec :: ReadPrec CreateStackSetResponse
$creadPrec :: ReadPrec CreateStackSetResponse
readList :: ReadS [CreateStackSetResponse]
$creadList :: ReadS [CreateStackSetResponse]
readsPrec :: Int -> ReadS CreateStackSetResponse
$creadsPrec :: Int -> ReadS CreateStackSetResponse
Prelude.Read, Int -> CreateStackSetResponse -> ShowS
[CreateStackSetResponse] -> ShowS
CreateStackSetResponse -> String
(Int -> CreateStackSetResponse -> ShowS)
-> (CreateStackSetResponse -> String)
-> ([CreateStackSetResponse] -> ShowS)
-> Show CreateStackSetResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [CreateStackSetResponse] -> ShowS
$cshowList :: [CreateStackSetResponse] -> ShowS
show :: CreateStackSetResponse -> String
$cshow :: CreateStackSetResponse -> String
showsPrec :: Int -> CreateStackSetResponse -> ShowS
$cshowsPrec :: Int -> CreateStackSetResponse -> ShowS
Prelude.Show, (forall x. CreateStackSetResponse -> Rep CreateStackSetResponse x)
-> (forall x.
Rep CreateStackSetResponse x -> CreateStackSetResponse)
-> Generic CreateStackSetResponse
forall x. Rep CreateStackSetResponse x -> CreateStackSetResponse
forall x. CreateStackSetResponse -> Rep CreateStackSetResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep CreateStackSetResponse x -> CreateStackSetResponse
$cfrom :: forall x. CreateStackSetResponse -> Rep CreateStackSetResponse x
Prelude.Generic)
newCreateStackSetResponse ::
Prelude.Int ->
CreateStackSetResponse
newCreateStackSetResponse :: Int -> CreateStackSetResponse
newCreateStackSetResponse Int
pHttpStatus_ =
CreateStackSetResponse' :: Maybe Text -> Int -> CreateStackSetResponse
CreateStackSetResponse'
{ $sel:stackSetId:CreateStackSetResponse' :: Maybe Text
stackSetId =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:CreateStackSetResponse' :: Int
httpStatus = Int
pHttpStatus_
}
createStackSetResponse_stackSetId :: Lens.Lens' CreateStackSetResponse (Prelude.Maybe Prelude.Text)
createStackSetResponse_stackSetId :: (Maybe Text -> f (Maybe Text))
-> CreateStackSetResponse -> f CreateStackSetResponse
createStackSetResponse_stackSetId = (CreateStackSetResponse -> Maybe Text)
-> (CreateStackSetResponse -> Maybe Text -> CreateStackSetResponse)
-> Lens
CreateStackSetResponse
CreateStackSetResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateStackSetResponse' {Maybe Text
stackSetId :: Maybe Text
$sel:stackSetId:CreateStackSetResponse' :: CreateStackSetResponse -> Maybe Text
stackSetId} -> Maybe Text
stackSetId) (\s :: CreateStackSetResponse
s@CreateStackSetResponse' {} Maybe Text
a -> CreateStackSetResponse
s {$sel:stackSetId:CreateStackSetResponse' :: Maybe Text
stackSetId = Maybe Text
a} :: CreateStackSetResponse)
createStackSetResponse_httpStatus :: Lens.Lens' CreateStackSetResponse Prelude.Int
createStackSetResponse_httpStatus :: (Int -> f Int)
-> CreateStackSetResponse -> f CreateStackSetResponse
createStackSetResponse_httpStatus = (CreateStackSetResponse -> Int)
-> (CreateStackSetResponse -> Int -> CreateStackSetResponse)
-> Lens CreateStackSetResponse CreateStackSetResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateStackSetResponse' {Int
httpStatus :: Int
$sel:httpStatus:CreateStackSetResponse' :: CreateStackSetResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: CreateStackSetResponse
s@CreateStackSetResponse' {} Int
a -> CreateStackSetResponse
s {$sel:httpStatus:CreateStackSetResponse' :: Int
httpStatus = Int
a} :: CreateStackSetResponse)
instance Prelude.NFData CreateStackSetResponse