{-# 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.CreateStackInstances
(
CreateStackInstances (..),
newCreateStackInstances,
createStackInstances_accounts,
createStackInstances_callAs,
createStackInstances_operationPreferences,
createStackInstances_operationId,
createStackInstances_deploymentTargets,
createStackInstances_parameterOverrides,
createStackInstances_stackSetName,
createStackInstances_regions,
CreateStackInstancesResponse (..),
newCreateStackInstancesResponse,
createStackInstancesResponse_operationId,
createStackInstancesResponse_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 CreateStackInstances = CreateStackInstances'
{
CreateStackInstances -> Maybe [Text]
accounts :: Prelude.Maybe [Prelude.Text],
CreateStackInstances -> Maybe CallAs
callAs :: Prelude.Maybe CallAs,
CreateStackInstances -> Maybe StackSetOperationPreferences
operationPreferences :: Prelude.Maybe StackSetOperationPreferences,
CreateStackInstances -> Maybe Text
operationId :: Prelude.Maybe Prelude.Text,
CreateStackInstances -> Maybe DeploymentTargets
deploymentTargets :: Prelude.Maybe DeploymentTargets,
CreateStackInstances -> Maybe [Parameter]
parameterOverrides :: Prelude.Maybe [Parameter],
CreateStackInstances -> Text
stackSetName :: Prelude.Text,
CreateStackInstances -> [Text]
regions :: [Prelude.Text]
}
deriving (CreateStackInstances -> CreateStackInstances -> Bool
(CreateStackInstances -> CreateStackInstances -> Bool)
-> (CreateStackInstances -> CreateStackInstances -> Bool)
-> Eq CreateStackInstances
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: CreateStackInstances -> CreateStackInstances -> Bool
$c/= :: CreateStackInstances -> CreateStackInstances -> Bool
== :: CreateStackInstances -> CreateStackInstances -> Bool
$c== :: CreateStackInstances -> CreateStackInstances -> Bool
Prelude.Eq, ReadPrec [CreateStackInstances]
ReadPrec CreateStackInstances
Int -> ReadS CreateStackInstances
ReadS [CreateStackInstances]
(Int -> ReadS CreateStackInstances)
-> ReadS [CreateStackInstances]
-> ReadPrec CreateStackInstances
-> ReadPrec [CreateStackInstances]
-> Read CreateStackInstances
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [CreateStackInstances]
$creadListPrec :: ReadPrec [CreateStackInstances]
readPrec :: ReadPrec CreateStackInstances
$creadPrec :: ReadPrec CreateStackInstances
readList :: ReadS [CreateStackInstances]
$creadList :: ReadS [CreateStackInstances]
readsPrec :: Int -> ReadS CreateStackInstances
$creadsPrec :: Int -> ReadS CreateStackInstances
Prelude.Read, Int -> CreateStackInstances -> ShowS
[CreateStackInstances] -> ShowS
CreateStackInstances -> String
(Int -> CreateStackInstances -> ShowS)
-> (CreateStackInstances -> String)
-> ([CreateStackInstances] -> ShowS)
-> Show CreateStackInstances
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [CreateStackInstances] -> ShowS
$cshowList :: [CreateStackInstances] -> ShowS
show :: CreateStackInstances -> String
$cshow :: CreateStackInstances -> String
showsPrec :: Int -> CreateStackInstances -> ShowS
$cshowsPrec :: Int -> CreateStackInstances -> ShowS
Prelude.Show, (forall x. CreateStackInstances -> Rep CreateStackInstances x)
-> (forall x. Rep CreateStackInstances x -> CreateStackInstances)
-> Generic CreateStackInstances
forall x. Rep CreateStackInstances x -> CreateStackInstances
forall x. CreateStackInstances -> Rep CreateStackInstances x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep CreateStackInstances x -> CreateStackInstances
$cfrom :: forall x. CreateStackInstances -> Rep CreateStackInstances x
Prelude.Generic)
newCreateStackInstances ::
Prelude.Text ->
CreateStackInstances
newCreateStackInstances :: Text -> CreateStackInstances
newCreateStackInstances Text
pStackSetName_ =
CreateStackInstances' :: Maybe [Text]
-> Maybe CallAs
-> Maybe StackSetOperationPreferences
-> Maybe Text
-> Maybe DeploymentTargets
-> Maybe [Parameter]
-> Text
-> [Text]
-> CreateStackInstances
CreateStackInstances'
{ $sel:accounts:CreateStackInstances' :: Maybe [Text]
accounts = Maybe [Text]
forall a. Maybe a
Prelude.Nothing,
$sel:callAs:CreateStackInstances' :: Maybe CallAs
callAs = Maybe CallAs
forall a. Maybe a
Prelude.Nothing,
$sel:operationPreferences:CreateStackInstances' :: Maybe StackSetOperationPreferences
operationPreferences = Maybe StackSetOperationPreferences
forall a. Maybe a
Prelude.Nothing,
$sel:operationId:CreateStackInstances' :: Maybe Text
operationId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:deploymentTargets:CreateStackInstances' :: Maybe DeploymentTargets
deploymentTargets = Maybe DeploymentTargets
forall a. Maybe a
Prelude.Nothing,
$sel:parameterOverrides:CreateStackInstances' :: Maybe [Parameter]
parameterOverrides = Maybe [Parameter]
forall a. Maybe a
Prelude.Nothing,
$sel:stackSetName:CreateStackInstances' :: Text
stackSetName = Text
pStackSetName_,
$sel:regions:CreateStackInstances' :: [Text]
regions = [Text]
forall a. Monoid a => a
Prelude.mempty
}
createStackInstances_accounts :: Lens.Lens' CreateStackInstances (Prelude.Maybe [Prelude.Text])
createStackInstances_accounts :: (Maybe [Text] -> f (Maybe [Text]))
-> CreateStackInstances -> f CreateStackInstances
createStackInstances_accounts = (CreateStackInstances -> Maybe [Text])
-> (CreateStackInstances -> Maybe [Text] -> CreateStackInstances)
-> Lens
CreateStackInstances
CreateStackInstances
(Maybe [Text])
(Maybe [Text])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateStackInstances' {Maybe [Text]
accounts :: Maybe [Text]
$sel:accounts:CreateStackInstances' :: CreateStackInstances -> Maybe [Text]
accounts} -> Maybe [Text]
accounts) (\s :: CreateStackInstances
s@CreateStackInstances' {} Maybe [Text]
a -> CreateStackInstances
s {$sel:accounts:CreateStackInstances' :: Maybe [Text]
accounts = Maybe [Text]
a} :: CreateStackInstances) ((Maybe [Text] -> f (Maybe [Text]))
-> CreateStackInstances -> f CreateStackInstances)
-> ((Maybe [Text] -> f (Maybe [Text]))
-> Maybe [Text] -> f (Maybe [Text]))
-> (Maybe [Text] -> f (Maybe [Text]))
-> CreateStackInstances
-> f CreateStackInstances
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [Text] [Text] [Text] [Text]
-> Iso (Maybe [Text]) (Maybe [Text]) (Maybe [Text]) (Maybe [Text])
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 [Text] [Text] [Text] [Text]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
createStackInstances_callAs :: Lens.Lens' CreateStackInstances (Prelude.Maybe CallAs)
createStackInstances_callAs :: (Maybe CallAs -> f (Maybe CallAs))
-> CreateStackInstances -> f CreateStackInstances
createStackInstances_callAs = (CreateStackInstances -> Maybe CallAs)
-> (CreateStackInstances -> Maybe CallAs -> CreateStackInstances)
-> Lens
CreateStackInstances
CreateStackInstances
(Maybe CallAs)
(Maybe CallAs)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateStackInstances' {Maybe CallAs
callAs :: Maybe CallAs
$sel:callAs:CreateStackInstances' :: CreateStackInstances -> Maybe CallAs
callAs} -> Maybe CallAs
callAs) (\s :: CreateStackInstances
s@CreateStackInstances' {} Maybe CallAs
a -> CreateStackInstances
s {$sel:callAs:CreateStackInstances' :: Maybe CallAs
callAs = Maybe CallAs
a} :: CreateStackInstances)
createStackInstances_operationPreferences :: Lens.Lens' CreateStackInstances (Prelude.Maybe StackSetOperationPreferences)
createStackInstances_operationPreferences :: (Maybe StackSetOperationPreferences
-> f (Maybe StackSetOperationPreferences))
-> CreateStackInstances -> f CreateStackInstances
createStackInstances_operationPreferences = (CreateStackInstances -> Maybe StackSetOperationPreferences)
-> (CreateStackInstances
-> Maybe StackSetOperationPreferences -> CreateStackInstances)
-> Lens
CreateStackInstances
CreateStackInstances
(Maybe StackSetOperationPreferences)
(Maybe StackSetOperationPreferences)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateStackInstances' {Maybe StackSetOperationPreferences
operationPreferences :: Maybe StackSetOperationPreferences
$sel:operationPreferences:CreateStackInstances' :: CreateStackInstances -> Maybe StackSetOperationPreferences
operationPreferences} -> Maybe StackSetOperationPreferences
operationPreferences) (\s :: CreateStackInstances
s@CreateStackInstances' {} Maybe StackSetOperationPreferences
a -> CreateStackInstances
s {$sel:operationPreferences:CreateStackInstances' :: Maybe StackSetOperationPreferences
operationPreferences = Maybe StackSetOperationPreferences
a} :: CreateStackInstances)
createStackInstances_operationId :: Lens.Lens' CreateStackInstances (Prelude.Maybe Prelude.Text)
createStackInstances_operationId :: (Maybe Text -> f (Maybe Text))
-> CreateStackInstances -> f CreateStackInstances
createStackInstances_operationId = (CreateStackInstances -> Maybe Text)
-> (CreateStackInstances -> Maybe Text -> CreateStackInstances)
-> Lens
CreateStackInstances CreateStackInstances (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateStackInstances' {Maybe Text
operationId :: Maybe Text
$sel:operationId:CreateStackInstances' :: CreateStackInstances -> Maybe Text
operationId} -> Maybe Text
operationId) (\s :: CreateStackInstances
s@CreateStackInstances' {} Maybe Text
a -> CreateStackInstances
s {$sel:operationId:CreateStackInstances' :: Maybe Text
operationId = Maybe Text
a} :: CreateStackInstances)
createStackInstances_deploymentTargets :: Lens.Lens' CreateStackInstances (Prelude.Maybe DeploymentTargets)
createStackInstances_deploymentTargets :: (Maybe DeploymentTargets -> f (Maybe DeploymentTargets))
-> CreateStackInstances -> f CreateStackInstances
createStackInstances_deploymentTargets = (CreateStackInstances -> Maybe DeploymentTargets)
-> (CreateStackInstances
-> Maybe DeploymentTargets -> CreateStackInstances)
-> Lens
CreateStackInstances
CreateStackInstances
(Maybe DeploymentTargets)
(Maybe DeploymentTargets)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateStackInstances' {Maybe DeploymentTargets
deploymentTargets :: Maybe DeploymentTargets
$sel:deploymentTargets:CreateStackInstances' :: CreateStackInstances -> Maybe DeploymentTargets
deploymentTargets} -> Maybe DeploymentTargets
deploymentTargets) (\s :: CreateStackInstances
s@CreateStackInstances' {} Maybe DeploymentTargets
a -> CreateStackInstances
s {$sel:deploymentTargets:CreateStackInstances' :: Maybe DeploymentTargets
deploymentTargets = Maybe DeploymentTargets
a} :: CreateStackInstances)
createStackInstances_parameterOverrides :: Lens.Lens' CreateStackInstances (Prelude.Maybe [Parameter])
createStackInstances_parameterOverrides :: (Maybe [Parameter] -> f (Maybe [Parameter]))
-> CreateStackInstances -> f CreateStackInstances
createStackInstances_parameterOverrides = (CreateStackInstances -> Maybe [Parameter])
-> (CreateStackInstances
-> Maybe [Parameter] -> CreateStackInstances)
-> Lens
CreateStackInstances
CreateStackInstances
(Maybe [Parameter])
(Maybe [Parameter])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateStackInstances' {Maybe [Parameter]
parameterOverrides :: Maybe [Parameter]
$sel:parameterOverrides:CreateStackInstances' :: CreateStackInstances -> Maybe [Parameter]
parameterOverrides} -> Maybe [Parameter]
parameterOverrides) (\s :: CreateStackInstances
s@CreateStackInstances' {} Maybe [Parameter]
a -> CreateStackInstances
s {$sel:parameterOverrides:CreateStackInstances' :: Maybe [Parameter]
parameterOverrides = Maybe [Parameter]
a} :: CreateStackInstances) ((Maybe [Parameter] -> f (Maybe [Parameter]))
-> CreateStackInstances -> f CreateStackInstances)
-> ((Maybe [Parameter] -> f (Maybe [Parameter]))
-> Maybe [Parameter] -> f (Maybe [Parameter]))
-> (Maybe [Parameter] -> f (Maybe [Parameter]))
-> CreateStackInstances
-> f CreateStackInstances
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
createStackInstances_stackSetName :: Lens.Lens' CreateStackInstances Prelude.Text
createStackInstances_stackSetName :: (Text -> f Text) -> CreateStackInstances -> f CreateStackInstances
createStackInstances_stackSetName = (CreateStackInstances -> Text)
-> (CreateStackInstances -> Text -> CreateStackInstances)
-> Lens CreateStackInstances CreateStackInstances Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateStackInstances' {Text
stackSetName :: Text
$sel:stackSetName:CreateStackInstances' :: CreateStackInstances -> Text
stackSetName} -> Text
stackSetName) (\s :: CreateStackInstances
s@CreateStackInstances' {} Text
a -> CreateStackInstances
s {$sel:stackSetName:CreateStackInstances' :: Text
stackSetName = Text
a} :: CreateStackInstances)
createStackInstances_regions :: Lens.Lens' CreateStackInstances [Prelude.Text]
createStackInstances_regions :: ([Text] -> f [Text])
-> CreateStackInstances -> f CreateStackInstances
createStackInstances_regions = (CreateStackInstances -> [Text])
-> (CreateStackInstances -> [Text] -> CreateStackInstances)
-> Lens CreateStackInstances CreateStackInstances [Text] [Text]
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateStackInstances' {[Text]
regions :: [Text]
$sel:regions:CreateStackInstances' :: CreateStackInstances -> [Text]
regions} -> [Text]
regions) (\s :: CreateStackInstances
s@CreateStackInstances' {} [Text]
a -> CreateStackInstances
s {$sel:regions:CreateStackInstances' :: [Text]
regions = [Text]
a} :: CreateStackInstances) (([Text] -> f [Text])
-> CreateStackInstances -> f CreateStackInstances)
-> (([Text] -> f [Text]) -> [Text] -> f [Text])
-> ([Text] -> f [Text])
-> CreateStackInstances
-> f CreateStackInstances
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. ([Text] -> f [Text]) -> [Text] -> f [Text]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
instance Core.AWSRequest CreateStackInstances where
type
AWSResponse CreateStackInstances =
CreateStackInstancesResponse
request :: CreateStackInstances -> Request CreateStackInstances
request = Service -> CreateStackInstances -> Request CreateStackInstances
forall a. ToRequest a => Service -> a -> Request a
Request.postQuery Service
defaultService
response :: Logger
-> Service
-> Proxy CreateStackInstances
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse CreateStackInstances)))
response =
Text
-> (Int
-> ResponseHeaders
-> [Node]
-> Either String (AWSResponse CreateStackInstances))
-> Logger
-> Service
-> Proxy CreateStackInstances
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse CreateStackInstances)))
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
"CreateStackInstancesResult"
( \Int
s ResponseHeaders
h [Node]
x ->
Maybe Text -> Int -> CreateStackInstancesResponse
CreateStackInstancesResponse'
(Maybe Text -> Int -> CreateStackInstancesResponse)
-> Either String (Maybe Text)
-> Either String (Int -> CreateStackInstancesResponse)
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
"OperationId")
Either String (Int -> CreateStackInstancesResponse)
-> Either String Int -> Either String CreateStackInstancesResponse
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 CreateStackInstances
instance Prelude.NFData CreateStackInstances
instance Core.ToHeaders CreateStackInstances where
toHeaders :: CreateStackInstances -> ResponseHeaders
toHeaders = ResponseHeaders -> CreateStackInstances -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const ResponseHeaders
forall a. Monoid a => a
Prelude.mempty
instance Core.ToPath CreateStackInstances where
toPath :: CreateStackInstances -> ByteString
toPath = ByteString -> CreateStackInstances -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Core.ToQuery CreateStackInstances where
toQuery :: CreateStackInstances -> QueryString
toQuery CreateStackInstances' {[Text]
Maybe [Text]
Maybe [Parameter]
Maybe Text
Maybe CallAs
Maybe DeploymentTargets
Maybe StackSetOperationPreferences
Text
regions :: [Text]
stackSetName :: Text
parameterOverrides :: Maybe [Parameter]
deploymentTargets :: Maybe DeploymentTargets
operationId :: Maybe Text
operationPreferences :: Maybe StackSetOperationPreferences
callAs :: Maybe CallAs
accounts :: Maybe [Text]
$sel:regions:CreateStackInstances' :: CreateStackInstances -> [Text]
$sel:stackSetName:CreateStackInstances' :: CreateStackInstances -> Text
$sel:parameterOverrides:CreateStackInstances' :: CreateStackInstances -> Maybe [Parameter]
$sel:deploymentTargets:CreateStackInstances' :: CreateStackInstances -> Maybe DeploymentTargets
$sel:operationId:CreateStackInstances' :: CreateStackInstances -> Maybe Text
$sel:operationPreferences:CreateStackInstances' :: CreateStackInstances -> Maybe StackSetOperationPreferences
$sel:callAs:CreateStackInstances' :: CreateStackInstances -> Maybe CallAs
$sel:accounts:CreateStackInstances' :: CreateStackInstances -> 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
"CreateStackInstances" :: Prelude.ByteString),
ByteString
"Version"
ByteString -> ByteString -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: (ByteString
"2010-05-15" :: Prelude.ByteString),
ByteString
"Accounts"
ByteString -> QueryString -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe QueryString -> QueryString
forall a. ToQuery a => a -> QueryString
Core.toQuery
(ByteString -> [Text] -> QueryString
forall a.
(IsList a, ToQuery (Item a)) =>
ByteString -> a -> QueryString
Core.toQueryList ByteString
"member" ([Text] -> QueryString) -> Maybe [Text] -> Maybe QueryString
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Text]
accounts),
ByteString
"CallAs" ByteString -> Maybe CallAs -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe CallAs
callAs,
ByteString
"OperationPreferences" ByteString -> Maybe StackSetOperationPreferences -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe StackSetOperationPreferences
operationPreferences,
ByteString
"OperationId" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
operationId,
ByteString
"DeploymentTargets" ByteString -> Maybe DeploymentTargets -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe DeploymentTargets
deploymentTargets,
ByteString
"ParameterOverrides"
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]
parameterOverrides
),
ByteString
"StackSetName" ByteString -> Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Text
stackSetName,
ByteString
"Regions" ByteString -> QueryString -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: ByteString -> [Text] -> QueryString
forall a.
(IsList a, ToQuery (Item a)) =>
ByteString -> a -> QueryString
Core.toQueryList ByteString
"member" [Text]
regions
]
data CreateStackInstancesResponse = CreateStackInstancesResponse'
{
CreateStackInstancesResponse -> Maybe Text
operationId :: Prelude.Maybe Prelude.Text,
CreateStackInstancesResponse -> Int
httpStatus :: Prelude.Int
}
deriving (CreateStackInstancesResponse
-> CreateStackInstancesResponse -> Bool
(CreateStackInstancesResponse
-> CreateStackInstancesResponse -> Bool)
-> (CreateStackInstancesResponse
-> CreateStackInstancesResponse -> Bool)
-> Eq CreateStackInstancesResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: CreateStackInstancesResponse
-> CreateStackInstancesResponse -> Bool
$c/= :: CreateStackInstancesResponse
-> CreateStackInstancesResponse -> Bool
== :: CreateStackInstancesResponse
-> CreateStackInstancesResponse -> Bool
$c== :: CreateStackInstancesResponse
-> CreateStackInstancesResponse -> Bool
Prelude.Eq, ReadPrec [CreateStackInstancesResponse]
ReadPrec CreateStackInstancesResponse
Int -> ReadS CreateStackInstancesResponse
ReadS [CreateStackInstancesResponse]
(Int -> ReadS CreateStackInstancesResponse)
-> ReadS [CreateStackInstancesResponse]
-> ReadPrec CreateStackInstancesResponse
-> ReadPrec [CreateStackInstancesResponse]
-> Read CreateStackInstancesResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [CreateStackInstancesResponse]
$creadListPrec :: ReadPrec [CreateStackInstancesResponse]
readPrec :: ReadPrec CreateStackInstancesResponse
$creadPrec :: ReadPrec CreateStackInstancesResponse
readList :: ReadS [CreateStackInstancesResponse]
$creadList :: ReadS [CreateStackInstancesResponse]
readsPrec :: Int -> ReadS CreateStackInstancesResponse
$creadsPrec :: Int -> ReadS CreateStackInstancesResponse
Prelude.Read, Int -> CreateStackInstancesResponse -> ShowS
[CreateStackInstancesResponse] -> ShowS
CreateStackInstancesResponse -> String
(Int -> CreateStackInstancesResponse -> ShowS)
-> (CreateStackInstancesResponse -> String)
-> ([CreateStackInstancesResponse] -> ShowS)
-> Show CreateStackInstancesResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [CreateStackInstancesResponse] -> ShowS
$cshowList :: [CreateStackInstancesResponse] -> ShowS
show :: CreateStackInstancesResponse -> String
$cshow :: CreateStackInstancesResponse -> String
showsPrec :: Int -> CreateStackInstancesResponse -> ShowS
$cshowsPrec :: Int -> CreateStackInstancesResponse -> ShowS
Prelude.Show, (forall x.
CreateStackInstancesResponse -> Rep CreateStackInstancesResponse x)
-> (forall x.
Rep CreateStackInstancesResponse x -> CreateStackInstancesResponse)
-> Generic CreateStackInstancesResponse
forall x.
Rep CreateStackInstancesResponse x -> CreateStackInstancesResponse
forall x.
CreateStackInstancesResponse -> Rep CreateStackInstancesResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep CreateStackInstancesResponse x -> CreateStackInstancesResponse
$cfrom :: forall x.
CreateStackInstancesResponse -> Rep CreateStackInstancesResponse x
Prelude.Generic)
newCreateStackInstancesResponse ::
Prelude.Int ->
CreateStackInstancesResponse
newCreateStackInstancesResponse :: Int -> CreateStackInstancesResponse
newCreateStackInstancesResponse Int
pHttpStatus_ =
CreateStackInstancesResponse' :: Maybe Text -> Int -> CreateStackInstancesResponse
CreateStackInstancesResponse'
{ $sel:operationId:CreateStackInstancesResponse' :: Maybe Text
operationId =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:CreateStackInstancesResponse' :: Int
httpStatus = Int
pHttpStatus_
}
createStackInstancesResponse_operationId :: Lens.Lens' CreateStackInstancesResponse (Prelude.Maybe Prelude.Text)
createStackInstancesResponse_operationId :: (Maybe Text -> f (Maybe Text))
-> CreateStackInstancesResponse -> f CreateStackInstancesResponse
createStackInstancesResponse_operationId = (CreateStackInstancesResponse -> Maybe Text)
-> (CreateStackInstancesResponse
-> Maybe Text -> CreateStackInstancesResponse)
-> Lens
CreateStackInstancesResponse
CreateStackInstancesResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateStackInstancesResponse' {Maybe Text
operationId :: Maybe Text
$sel:operationId:CreateStackInstancesResponse' :: CreateStackInstancesResponse -> Maybe Text
operationId} -> Maybe Text
operationId) (\s :: CreateStackInstancesResponse
s@CreateStackInstancesResponse' {} Maybe Text
a -> CreateStackInstancesResponse
s {$sel:operationId:CreateStackInstancesResponse' :: Maybe Text
operationId = Maybe Text
a} :: CreateStackInstancesResponse)
createStackInstancesResponse_httpStatus :: Lens.Lens' CreateStackInstancesResponse Prelude.Int
createStackInstancesResponse_httpStatus :: (Int -> f Int)
-> CreateStackInstancesResponse -> f CreateStackInstancesResponse
createStackInstancesResponse_httpStatus = (CreateStackInstancesResponse -> Int)
-> (CreateStackInstancesResponse
-> Int -> CreateStackInstancesResponse)
-> Lens
CreateStackInstancesResponse CreateStackInstancesResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateStackInstancesResponse' {Int
httpStatus :: Int
$sel:httpStatus:CreateStackInstancesResponse' :: CreateStackInstancesResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: CreateStackInstancesResponse
s@CreateStackInstancesResponse' {} Int
a -> CreateStackInstancesResponse
s {$sel:httpStatus:CreateStackInstancesResponse' :: Int
httpStatus = Int
a} :: CreateStackInstancesResponse)
instance Prelude.NFData CreateStackInstancesResponse