{-# 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.UpdateStackInstances
(
UpdateStackInstances (..),
newUpdateStackInstances,
updateStackInstances_accounts,
updateStackInstances_callAs,
updateStackInstances_operationPreferences,
updateStackInstances_operationId,
updateStackInstances_deploymentTargets,
updateStackInstances_parameterOverrides,
updateStackInstances_stackSetName,
updateStackInstances_regions,
UpdateStackInstancesResponse (..),
newUpdateStackInstancesResponse,
updateStackInstancesResponse_operationId,
updateStackInstancesResponse_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 UpdateStackInstances = UpdateStackInstances'
{
UpdateStackInstances -> Maybe [Text]
accounts :: Prelude.Maybe [Prelude.Text],
UpdateStackInstances -> Maybe CallAs
callAs :: Prelude.Maybe CallAs,
UpdateStackInstances -> Maybe StackSetOperationPreferences
operationPreferences :: Prelude.Maybe StackSetOperationPreferences,
UpdateStackInstances -> Maybe Text
operationId :: Prelude.Maybe Prelude.Text,
UpdateStackInstances -> Maybe DeploymentTargets
deploymentTargets :: Prelude.Maybe DeploymentTargets,
UpdateStackInstances -> Maybe [Parameter]
parameterOverrides :: Prelude.Maybe [Parameter],
UpdateStackInstances -> Text
stackSetName :: Prelude.Text,
UpdateStackInstances -> [Text]
regions :: [Prelude.Text]
}
deriving (UpdateStackInstances -> UpdateStackInstances -> Bool
(UpdateStackInstances -> UpdateStackInstances -> Bool)
-> (UpdateStackInstances -> UpdateStackInstances -> Bool)
-> Eq UpdateStackInstances
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: UpdateStackInstances -> UpdateStackInstances -> Bool
$c/= :: UpdateStackInstances -> UpdateStackInstances -> Bool
== :: UpdateStackInstances -> UpdateStackInstances -> Bool
$c== :: UpdateStackInstances -> UpdateStackInstances -> Bool
Prelude.Eq, ReadPrec [UpdateStackInstances]
ReadPrec UpdateStackInstances
Int -> ReadS UpdateStackInstances
ReadS [UpdateStackInstances]
(Int -> ReadS UpdateStackInstances)
-> ReadS [UpdateStackInstances]
-> ReadPrec UpdateStackInstances
-> ReadPrec [UpdateStackInstances]
-> Read UpdateStackInstances
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [UpdateStackInstances]
$creadListPrec :: ReadPrec [UpdateStackInstances]
readPrec :: ReadPrec UpdateStackInstances
$creadPrec :: ReadPrec UpdateStackInstances
readList :: ReadS [UpdateStackInstances]
$creadList :: ReadS [UpdateStackInstances]
readsPrec :: Int -> ReadS UpdateStackInstances
$creadsPrec :: Int -> ReadS UpdateStackInstances
Prelude.Read, Int -> UpdateStackInstances -> ShowS
[UpdateStackInstances] -> ShowS
UpdateStackInstances -> String
(Int -> UpdateStackInstances -> ShowS)
-> (UpdateStackInstances -> String)
-> ([UpdateStackInstances] -> ShowS)
-> Show UpdateStackInstances
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [UpdateStackInstances] -> ShowS
$cshowList :: [UpdateStackInstances] -> ShowS
show :: UpdateStackInstances -> String
$cshow :: UpdateStackInstances -> String
showsPrec :: Int -> UpdateStackInstances -> ShowS
$cshowsPrec :: Int -> UpdateStackInstances -> ShowS
Prelude.Show, (forall x. UpdateStackInstances -> Rep UpdateStackInstances x)
-> (forall x. Rep UpdateStackInstances x -> UpdateStackInstances)
-> Generic UpdateStackInstances
forall x. Rep UpdateStackInstances x -> UpdateStackInstances
forall x. UpdateStackInstances -> Rep UpdateStackInstances x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep UpdateStackInstances x -> UpdateStackInstances
$cfrom :: forall x. UpdateStackInstances -> Rep UpdateStackInstances x
Prelude.Generic)
newUpdateStackInstances ::
Prelude.Text ->
UpdateStackInstances
newUpdateStackInstances :: Text -> UpdateStackInstances
newUpdateStackInstances Text
pStackSetName_ =
UpdateStackInstances' :: Maybe [Text]
-> Maybe CallAs
-> Maybe StackSetOperationPreferences
-> Maybe Text
-> Maybe DeploymentTargets
-> Maybe [Parameter]
-> Text
-> [Text]
-> UpdateStackInstances
UpdateStackInstances'
{ $sel:accounts:UpdateStackInstances' :: Maybe [Text]
accounts = Maybe [Text]
forall a. Maybe a
Prelude.Nothing,
$sel:callAs:UpdateStackInstances' :: Maybe CallAs
callAs = Maybe CallAs
forall a. Maybe a
Prelude.Nothing,
$sel:operationPreferences:UpdateStackInstances' :: Maybe StackSetOperationPreferences
operationPreferences = Maybe StackSetOperationPreferences
forall a. Maybe a
Prelude.Nothing,
$sel:operationId:UpdateStackInstances' :: Maybe Text
operationId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:deploymentTargets:UpdateStackInstances' :: Maybe DeploymentTargets
deploymentTargets = Maybe DeploymentTargets
forall a. Maybe a
Prelude.Nothing,
$sel:parameterOverrides:UpdateStackInstances' :: Maybe [Parameter]
parameterOverrides = Maybe [Parameter]
forall a. Maybe a
Prelude.Nothing,
$sel:stackSetName:UpdateStackInstances' :: Text
stackSetName = Text
pStackSetName_,
$sel:regions:UpdateStackInstances' :: [Text]
regions = [Text]
forall a. Monoid a => a
Prelude.mempty
}
updateStackInstances_accounts :: Lens.Lens' UpdateStackInstances (Prelude.Maybe [Prelude.Text])
updateStackInstances_accounts :: (Maybe [Text] -> f (Maybe [Text]))
-> UpdateStackInstances -> f UpdateStackInstances
updateStackInstances_accounts = (UpdateStackInstances -> Maybe [Text])
-> (UpdateStackInstances -> Maybe [Text] -> UpdateStackInstances)
-> Lens
UpdateStackInstances
UpdateStackInstances
(Maybe [Text])
(Maybe [Text])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateStackInstances' {Maybe [Text]
accounts :: Maybe [Text]
$sel:accounts:UpdateStackInstances' :: UpdateStackInstances -> Maybe [Text]
accounts} -> Maybe [Text]
accounts) (\s :: UpdateStackInstances
s@UpdateStackInstances' {} Maybe [Text]
a -> UpdateStackInstances
s {$sel:accounts:UpdateStackInstances' :: Maybe [Text]
accounts = Maybe [Text]
a} :: UpdateStackInstances) ((Maybe [Text] -> f (Maybe [Text]))
-> UpdateStackInstances -> f UpdateStackInstances)
-> ((Maybe [Text] -> f (Maybe [Text]))
-> Maybe [Text] -> f (Maybe [Text]))
-> (Maybe [Text] -> f (Maybe [Text]))
-> UpdateStackInstances
-> f UpdateStackInstances
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
updateStackInstances_callAs :: Lens.Lens' UpdateStackInstances (Prelude.Maybe CallAs)
updateStackInstances_callAs :: (Maybe CallAs -> f (Maybe CallAs))
-> UpdateStackInstances -> f UpdateStackInstances
updateStackInstances_callAs = (UpdateStackInstances -> Maybe CallAs)
-> (UpdateStackInstances -> Maybe CallAs -> UpdateStackInstances)
-> Lens
UpdateStackInstances
UpdateStackInstances
(Maybe CallAs)
(Maybe CallAs)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateStackInstances' {Maybe CallAs
callAs :: Maybe CallAs
$sel:callAs:UpdateStackInstances' :: UpdateStackInstances -> Maybe CallAs
callAs} -> Maybe CallAs
callAs) (\s :: UpdateStackInstances
s@UpdateStackInstances' {} Maybe CallAs
a -> UpdateStackInstances
s {$sel:callAs:UpdateStackInstances' :: Maybe CallAs
callAs = Maybe CallAs
a} :: UpdateStackInstances)
updateStackInstances_operationPreferences :: Lens.Lens' UpdateStackInstances (Prelude.Maybe StackSetOperationPreferences)
updateStackInstances_operationPreferences :: (Maybe StackSetOperationPreferences
-> f (Maybe StackSetOperationPreferences))
-> UpdateStackInstances -> f UpdateStackInstances
updateStackInstances_operationPreferences = (UpdateStackInstances -> Maybe StackSetOperationPreferences)
-> (UpdateStackInstances
-> Maybe StackSetOperationPreferences -> UpdateStackInstances)
-> Lens
UpdateStackInstances
UpdateStackInstances
(Maybe StackSetOperationPreferences)
(Maybe StackSetOperationPreferences)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateStackInstances' {Maybe StackSetOperationPreferences
operationPreferences :: Maybe StackSetOperationPreferences
$sel:operationPreferences:UpdateStackInstances' :: UpdateStackInstances -> Maybe StackSetOperationPreferences
operationPreferences} -> Maybe StackSetOperationPreferences
operationPreferences) (\s :: UpdateStackInstances
s@UpdateStackInstances' {} Maybe StackSetOperationPreferences
a -> UpdateStackInstances
s {$sel:operationPreferences:UpdateStackInstances' :: Maybe StackSetOperationPreferences
operationPreferences = Maybe StackSetOperationPreferences
a} :: UpdateStackInstances)
updateStackInstances_operationId :: Lens.Lens' UpdateStackInstances (Prelude.Maybe Prelude.Text)
updateStackInstances_operationId :: (Maybe Text -> f (Maybe Text))
-> UpdateStackInstances -> f UpdateStackInstances
updateStackInstances_operationId = (UpdateStackInstances -> Maybe Text)
-> (UpdateStackInstances -> Maybe Text -> UpdateStackInstances)
-> Lens
UpdateStackInstances UpdateStackInstances (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateStackInstances' {Maybe Text
operationId :: Maybe Text
$sel:operationId:UpdateStackInstances' :: UpdateStackInstances -> Maybe Text
operationId} -> Maybe Text
operationId) (\s :: UpdateStackInstances
s@UpdateStackInstances' {} Maybe Text
a -> UpdateStackInstances
s {$sel:operationId:UpdateStackInstances' :: Maybe Text
operationId = Maybe Text
a} :: UpdateStackInstances)
updateStackInstances_deploymentTargets :: Lens.Lens' UpdateStackInstances (Prelude.Maybe DeploymentTargets)
updateStackInstances_deploymentTargets :: (Maybe DeploymentTargets -> f (Maybe DeploymentTargets))
-> UpdateStackInstances -> f UpdateStackInstances
updateStackInstances_deploymentTargets = (UpdateStackInstances -> Maybe DeploymentTargets)
-> (UpdateStackInstances
-> Maybe DeploymentTargets -> UpdateStackInstances)
-> Lens
UpdateStackInstances
UpdateStackInstances
(Maybe DeploymentTargets)
(Maybe DeploymentTargets)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateStackInstances' {Maybe DeploymentTargets
deploymentTargets :: Maybe DeploymentTargets
$sel:deploymentTargets:UpdateStackInstances' :: UpdateStackInstances -> Maybe DeploymentTargets
deploymentTargets} -> Maybe DeploymentTargets
deploymentTargets) (\s :: UpdateStackInstances
s@UpdateStackInstances' {} Maybe DeploymentTargets
a -> UpdateStackInstances
s {$sel:deploymentTargets:UpdateStackInstances' :: Maybe DeploymentTargets
deploymentTargets = Maybe DeploymentTargets
a} :: UpdateStackInstances)
updateStackInstances_parameterOverrides :: Lens.Lens' UpdateStackInstances (Prelude.Maybe [Parameter])
updateStackInstances_parameterOverrides :: (Maybe [Parameter] -> f (Maybe [Parameter]))
-> UpdateStackInstances -> f UpdateStackInstances
updateStackInstances_parameterOverrides = (UpdateStackInstances -> Maybe [Parameter])
-> (UpdateStackInstances
-> Maybe [Parameter] -> UpdateStackInstances)
-> Lens
UpdateStackInstances
UpdateStackInstances
(Maybe [Parameter])
(Maybe [Parameter])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateStackInstances' {Maybe [Parameter]
parameterOverrides :: Maybe [Parameter]
$sel:parameterOverrides:UpdateStackInstances' :: UpdateStackInstances -> Maybe [Parameter]
parameterOverrides} -> Maybe [Parameter]
parameterOverrides) (\s :: UpdateStackInstances
s@UpdateStackInstances' {} Maybe [Parameter]
a -> UpdateStackInstances
s {$sel:parameterOverrides:UpdateStackInstances' :: Maybe [Parameter]
parameterOverrides = Maybe [Parameter]
a} :: UpdateStackInstances) ((Maybe [Parameter] -> f (Maybe [Parameter]))
-> UpdateStackInstances -> f UpdateStackInstances)
-> ((Maybe [Parameter] -> f (Maybe [Parameter]))
-> Maybe [Parameter] -> f (Maybe [Parameter]))
-> (Maybe [Parameter] -> f (Maybe [Parameter]))
-> UpdateStackInstances
-> f UpdateStackInstances
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
updateStackInstances_stackSetName :: Lens.Lens' UpdateStackInstances Prelude.Text
updateStackInstances_stackSetName :: (Text -> f Text) -> UpdateStackInstances -> f UpdateStackInstances
updateStackInstances_stackSetName = (UpdateStackInstances -> Text)
-> (UpdateStackInstances -> Text -> UpdateStackInstances)
-> Lens UpdateStackInstances UpdateStackInstances Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateStackInstances' {Text
stackSetName :: Text
$sel:stackSetName:UpdateStackInstances' :: UpdateStackInstances -> Text
stackSetName} -> Text
stackSetName) (\s :: UpdateStackInstances
s@UpdateStackInstances' {} Text
a -> UpdateStackInstances
s {$sel:stackSetName:UpdateStackInstances' :: Text
stackSetName = Text
a} :: UpdateStackInstances)
updateStackInstances_regions :: Lens.Lens' UpdateStackInstances [Prelude.Text]
updateStackInstances_regions :: ([Text] -> f [Text])
-> UpdateStackInstances -> f UpdateStackInstances
updateStackInstances_regions = (UpdateStackInstances -> [Text])
-> (UpdateStackInstances -> [Text] -> UpdateStackInstances)
-> Lens UpdateStackInstances UpdateStackInstances [Text] [Text]
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateStackInstances' {[Text]
regions :: [Text]
$sel:regions:UpdateStackInstances' :: UpdateStackInstances -> [Text]
regions} -> [Text]
regions) (\s :: UpdateStackInstances
s@UpdateStackInstances' {} [Text]
a -> UpdateStackInstances
s {$sel:regions:UpdateStackInstances' :: [Text]
regions = [Text]
a} :: UpdateStackInstances) (([Text] -> f [Text])
-> UpdateStackInstances -> f UpdateStackInstances)
-> (([Text] -> f [Text]) -> [Text] -> f [Text])
-> ([Text] -> f [Text])
-> UpdateStackInstances
-> f UpdateStackInstances
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 UpdateStackInstances where
type
AWSResponse UpdateStackInstances =
UpdateStackInstancesResponse
request :: UpdateStackInstances -> Request UpdateStackInstances
request = Service -> UpdateStackInstances -> Request UpdateStackInstances
forall a. ToRequest a => Service -> a -> Request a
Request.postQuery Service
defaultService
response :: Logger
-> Service
-> Proxy UpdateStackInstances
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse UpdateStackInstances)))
response =
Text
-> (Int
-> ResponseHeaders
-> [Node]
-> Either String (AWSResponse UpdateStackInstances))
-> Logger
-> Service
-> Proxy UpdateStackInstances
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse UpdateStackInstances)))
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
"UpdateStackInstancesResult"
( \Int
s ResponseHeaders
h [Node]
x ->
Maybe Text -> Int -> UpdateStackInstancesResponse
UpdateStackInstancesResponse'
(Maybe Text -> Int -> UpdateStackInstancesResponse)
-> Either String (Maybe Text)
-> Either String (Int -> UpdateStackInstancesResponse)
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 -> UpdateStackInstancesResponse)
-> Either String Int -> Either String UpdateStackInstancesResponse
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 UpdateStackInstances
instance Prelude.NFData UpdateStackInstances
instance Core.ToHeaders UpdateStackInstances where
toHeaders :: UpdateStackInstances -> ResponseHeaders
toHeaders = ResponseHeaders -> UpdateStackInstances -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const ResponseHeaders
forall a. Monoid a => a
Prelude.mempty
instance Core.ToPath UpdateStackInstances where
toPath :: UpdateStackInstances -> ByteString
toPath = ByteString -> UpdateStackInstances -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Core.ToQuery UpdateStackInstances where
toQuery :: UpdateStackInstances -> QueryString
toQuery UpdateStackInstances' {[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:UpdateStackInstances' :: UpdateStackInstances -> [Text]
$sel:stackSetName:UpdateStackInstances' :: UpdateStackInstances -> Text
$sel:parameterOverrides:UpdateStackInstances' :: UpdateStackInstances -> Maybe [Parameter]
$sel:deploymentTargets:UpdateStackInstances' :: UpdateStackInstances -> Maybe DeploymentTargets
$sel:operationId:UpdateStackInstances' :: UpdateStackInstances -> Maybe Text
$sel:operationPreferences:UpdateStackInstances' :: UpdateStackInstances -> Maybe StackSetOperationPreferences
$sel:callAs:UpdateStackInstances' :: UpdateStackInstances -> Maybe CallAs
$sel:accounts:UpdateStackInstances' :: UpdateStackInstances -> 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
"UpdateStackInstances" :: 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 UpdateStackInstancesResponse = UpdateStackInstancesResponse'
{
UpdateStackInstancesResponse -> Maybe Text
operationId :: Prelude.Maybe Prelude.Text,
UpdateStackInstancesResponse -> Int
httpStatus :: Prelude.Int
}
deriving (UpdateStackInstancesResponse
-> UpdateStackInstancesResponse -> Bool
(UpdateStackInstancesResponse
-> UpdateStackInstancesResponse -> Bool)
-> (UpdateStackInstancesResponse
-> UpdateStackInstancesResponse -> Bool)
-> Eq UpdateStackInstancesResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: UpdateStackInstancesResponse
-> UpdateStackInstancesResponse -> Bool
$c/= :: UpdateStackInstancesResponse
-> UpdateStackInstancesResponse -> Bool
== :: UpdateStackInstancesResponse
-> UpdateStackInstancesResponse -> Bool
$c== :: UpdateStackInstancesResponse
-> UpdateStackInstancesResponse -> Bool
Prelude.Eq, ReadPrec [UpdateStackInstancesResponse]
ReadPrec UpdateStackInstancesResponse
Int -> ReadS UpdateStackInstancesResponse
ReadS [UpdateStackInstancesResponse]
(Int -> ReadS UpdateStackInstancesResponse)
-> ReadS [UpdateStackInstancesResponse]
-> ReadPrec UpdateStackInstancesResponse
-> ReadPrec [UpdateStackInstancesResponse]
-> Read UpdateStackInstancesResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [UpdateStackInstancesResponse]
$creadListPrec :: ReadPrec [UpdateStackInstancesResponse]
readPrec :: ReadPrec UpdateStackInstancesResponse
$creadPrec :: ReadPrec UpdateStackInstancesResponse
readList :: ReadS [UpdateStackInstancesResponse]
$creadList :: ReadS [UpdateStackInstancesResponse]
readsPrec :: Int -> ReadS UpdateStackInstancesResponse
$creadsPrec :: Int -> ReadS UpdateStackInstancesResponse
Prelude.Read, Int -> UpdateStackInstancesResponse -> ShowS
[UpdateStackInstancesResponse] -> ShowS
UpdateStackInstancesResponse -> String
(Int -> UpdateStackInstancesResponse -> ShowS)
-> (UpdateStackInstancesResponse -> String)
-> ([UpdateStackInstancesResponse] -> ShowS)
-> Show UpdateStackInstancesResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [UpdateStackInstancesResponse] -> ShowS
$cshowList :: [UpdateStackInstancesResponse] -> ShowS
show :: UpdateStackInstancesResponse -> String
$cshow :: UpdateStackInstancesResponse -> String
showsPrec :: Int -> UpdateStackInstancesResponse -> ShowS
$cshowsPrec :: Int -> UpdateStackInstancesResponse -> ShowS
Prelude.Show, (forall x.
UpdateStackInstancesResponse -> Rep UpdateStackInstancesResponse x)
-> (forall x.
Rep UpdateStackInstancesResponse x -> UpdateStackInstancesResponse)
-> Generic UpdateStackInstancesResponse
forall x.
Rep UpdateStackInstancesResponse x -> UpdateStackInstancesResponse
forall x.
UpdateStackInstancesResponse -> Rep UpdateStackInstancesResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep UpdateStackInstancesResponse x -> UpdateStackInstancesResponse
$cfrom :: forall x.
UpdateStackInstancesResponse -> Rep UpdateStackInstancesResponse x
Prelude.Generic)
newUpdateStackInstancesResponse ::
Prelude.Int ->
UpdateStackInstancesResponse
newUpdateStackInstancesResponse :: Int -> UpdateStackInstancesResponse
newUpdateStackInstancesResponse Int
pHttpStatus_ =
UpdateStackInstancesResponse' :: Maybe Text -> Int -> UpdateStackInstancesResponse
UpdateStackInstancesResponse'
{ $sel:operationId:UpdateStackInstancesResponse' :: Maybe Text
operationId =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:UpdateStackInstancesResponse' :: Int
httpStatus = Int
pHttpStatus_
}
updateStackInstancesResponse_operationId :: Lens.Lens' UpdateStackInstancesResponse (Prelude.Maybe Prelude.Text)
updateStackInstancesResponse_operationId :: (Maybe Text -> f (Maybe Text))
-> UpdateStackInstancesResponse -> f UpdateStackInstancesResponse
updateStackInstancesResponse_operationId = (UpdateStackInstancesResponse -> Maybe Text)
-> (UpdateStackInstancesResponse
-> Maybe Text -> UpdateStackInstancesResponse)
-> Lens
UpdateStackInstancesResponse
UpdateStackInstancesResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateStackInstancesResponse' {Maybe Text
operationId :: Maybe Text
$sel:operationId:UpdateStackInstancesResponse' :: UpdateStackInstancesResponse -> Maybe Text
operationId} -> Maybe Text
operationId) (\s :: UpdateStackInstancesResponse
s@UpdateStackInstancesResponse' {} Maybe Text
a -> UpdateStackInstancesResponse
s {$sel:operationId:UpdateStackInstancesResponse' :: Maybe Text
operationId = Maybe Text
a} :: UpdateStackInstancesResponse)
updateStackInstancesResponse_httpStatus :: Lens.Lens' UpdateStackInstancesResponse Prelude.Int
updateStackInstancesResponse_httpStatus :: (Int -> f Int)
-> UpdateStackInstancesResponse -> f UpdateStackInstancesResponse
updateStackInstancesResponse_httpStatus = (UpdateStackInstancesResponse -> Int)
-> (UpdateStackInstancesResponse
-> Int -> UpdateStackInstancesResponse)
-> Lens
UpdateStackInstancesResponse UpdateStackInstancesResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateStackInstancesResponse' {Int
httpStatus :: Int
$sel:httpStatus:UpdateStackInstancesResponse' :: UpdateStackInstancesResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: UpdateStackInstancesResponse
s@UpdateStackInstancesResponse' {} Int
a -> UpdateStackInstancesResponse
s {$sel:httpStatus:UpdateStackInstancesResponse' :: Int
httpStatus = Int
a} :: UpdateStackInstancesResponse)
instance Prelude.NFData UpdateStackInstancesResponse