{-# 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 #-} -- Derived from AWS service descriptions, licensed under Apache 2.0. -- | -- Module : Amazonka.CloudFormation.UpdateStackSet -- Copyright : (c) 2013-2023 Brendan Hay -- License : Mozilla Public License, v. 2.0. -- Maintainer : Brendan Hay -- Stability : auto-generated -- Portability : non-portable (GHC extensions) -- -- Updates the stack set, and associated stack instances in the specified -- accounts and Amazon Web Services Regions. -- -- Even if the stack set operation created by updating the stack set fails -- (completely or partially, below or above a specified failure tolerance), -- the stack set is updated with your changes. Subsequent -- CreateStackInstances calls on the specified stack set use the updated -- stack set. module Amazonka.CloudFormation.UpdateStackSet ( -- * Creating a Request UpdateStackSet (..), newUpdateStackSet, -- * Request Lenses updateStackSet_accounts, updateStackSet_administrationRoleARN, updateStackSet_autoDeployment, updateStackSet_callAs, updateStackSet_capabilities, updateStackSet_deploymentTargets, updateStackSet_description, updateStackSet_executionRoleName, updateStackSet_managedExecution, updateStackSet_operationId, updateStackSet_operationPreferences, updateStackSet_parameters, updateStackSet_permissionModel, updateStackSet_regions, updateStackSet_tags, updateStackSet_templateBody, updateStackSet_templateURL, updateStackSet_usePreviousTemplate, updateStackSet_stackSetName, -- * Destructuring the Response UpdateStackSetResponse (..), newUpdateStackSetResponse, -- * Response Lenses updateStackSetResponse_operationId, updateStackSetResponse_httpStatus, ) where import Amazonka.CloudFormation.Types 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 -- | /See:/ 'newUpdateStackSet' smart constructor. data UpdateStackSet = UpdateStackSet' { -- | [Self-managed permissions] The accounts in which to update associated -- stack instances. If you specify accounts, you must also specify the -- Amazon Web Services Regions in which to update stack set instances. -- -- To update /all/ the stack instances associated with this stack set, -- don\'t specify the @Accounts@ or @Regions@ properties. -- -- If the stack set update includes changes to the template (that is, if -- the @TemplateBody@ or @TemplateURL@ properties are specified), or the -- @Parameters@ property, CloudFormation marks all stack instances with a -- status of @OUTDATED@ prior to updating the stack instances in the -- specified accounts and Amazon Web Services Regions. If the stack set -- update does not include changes to the template or parameters, -- CloudFormation updates the stack instances in the specified accounts and -- Amazon Web Services Regions, while leaving all other stack instances -- with their existing stack instance status. UpdateStackSet -> Maybe [Text] accounts :: Prelude.Maybe [Prelude.Text], -- | The Amazon Resource Name (ARN) of the IAM role to use to update this -- stack set. -- -- Specify an IAM role only if you are using customized administrator roles -- to control which users or groups can manage specific stack sets within -- the same administrator account. For more information, see -- <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/stacksets-prereqs.html Granting Permissions for Stack Set Operations> -- in the /CloudFormation User Guide/. -- -- If you specified a customized administrator role when you created the -- stack set, you must specify a customized administrator role, even if it -- is the same customized administrator role used with this stack set -- previously. UpdateStackSet -> Maybe Text administrationRoleARN :: Prelude.Maybe Prelude.Text, -- | [Service-managed permissions] Describes whether StackSets automatically -- deploys to Organizations accounts that are added to a target -- organization or organizational unit (OU). -- -- If you specify @AutoDeployment@, don\'t specify @DeploymentTargets@ or -- @Regions@. UpdateStackSet -> Maybe AutoDeployment autoDeployment :: Prelude.Maybe AutoDeployment, -- | [Service-managed permissions] Specifies whether you are acting as an -- account administrator in the organization\'s management account or as a -- delegated administrator in a member account. -- -- By default, @SELF@ is specified. Use @SELF@ for stack sets with -- self-managed permissions. -- -- - If you are signed in to the management account, specify @SELF@. -- -- - If you are signed in to a delegated administrator account, specify -- @DELEGATED_ADMIN@. -- -- Your Amazon Web Services account must be registered as a delegated -- administrator in the management account. For more information, see -- <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/stacksets-orgs-delegated-admin.html Register a delegated administrator> -- in the /CloudFormation User Guide/. UpdateStackSet -> Maybe CallAs callAs :: Prelude.Maybe CallAs, -- | In some cases, you must explicitly acknowledge that your stack template -- contains certain capabilities in order for CloudFormation to update the -- stack set and its associated stack instances. -- -- - @CAPABILITY_IAM@ and @CAPABILITY_NAMED_IAM@ -- -- Some stack templates might include resources that can affect -- permissions in your Amazon Web Services account; for example, by -- creating new Identity and Access Management (IAM) users. For those -- stacks sets, you must explicitly acknowledge this by specifying one -- of these capabilities. -- -- The following IAM resources require you to specify either the -- @CAPABILITY_IAM@ or @CAPABILITY_NAMED_IAM@ capability. -- -- - If you have IAM resources, you can specify either capability. -- -- - If you have IAM resources with custom names, you /must/ specify -- @CAPABILITY_NAMED_IAM@. -- -- - If you don\'t specify either of these capabilities, -- CloudFormation returns an @InsufficientCapabilities@ error. -- -- If your stack template contains these resources, we recommend that -- you review all permissions associated with them and edit their -- permissions if necessary. -- -- - <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iam-accesskey.html AWS::IAM::AccessKey> -- -- - <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iam-group.html AWS::IAM::Group> -- -- - <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-instanceprofile.html AWS::IAM::InstanceProfile> -- -- - <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iam-policy.html AWS::IAM::Policy> -- -- - <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-role.html AWS::IAM::Role> -- -- - <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iam-user.html AWS::IAM::User> -- -- - <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iam-addusertogroup.html AWS::IAM::UserToGroupAddition> -- -- For more information, see -- <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-iam-template.html#capabilities Acknowledging IAM Resources in CloudFormation Templates>. -- -- - @CAPABILITY_AUTO_EXPAND@ -- -- Some templates reference macros. If your stack set template -- references one or more macros, you must update the stack set -- directly from the processed template, without first reviewing the -- resulting changes in a change set. To update the stack set directly, -- you must acknowledge this capability. For more information, see -- <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/template-macros.html Using CloudFormation Macros to Perform Custom Processing on Templates>. -- -- Stack sets with service-managed permissions do not currently support -- the use of macros in templates. (This includes the -- <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/create-reusable-transform-function-snippets-and-add-to-your-template-with-aws-include-transform.html AWS::Include> -- and -- <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/transform-aws-serverless.html AWS::Serverless> -- transforms, which are macros hosted by CloudFormation.) Even if you -- specify this capability for a stack set with service-managed -- permissions, if you reference a macro in your template the stack set -- operation will fail. UpdateStackSet -> Maybe [Capability] capabilities :: Prelude.Maybe [Capability], -- | [Service-managed permissions] The Organizations accounts in which to -- update associated stack instances. -- -- To update all the stack instances associated with this stack set, do not -- specify @DeploymentTargets@ or @Regions@. -- -- If the stack set update includes changes to the template (that is, if -- @TemplateBody@ or @TemplateURL@ is specified), or the @Parameters@, -- CloudFormation marks all stack instances with a status of @OUTDATED@ -- prior to updating the stack instances in the specified accounts and -- Amazon Web Services Regions. If the stack set update doesn\'t include -- changes to the template or parameters, CloudFormation updates the stack -- instances in the specified accounts and Regions, while leaving all other -- stack instances with their existing stack instance status. UpdateStackSet -> Maybe DeploymentTargets deploymentTargets :: Prelude.Maybe DeploymentTargets, -- | A brief description of updates that you are making. UpdateStackSet -> Maybe Text description :: Prelude.Maybe Prelude.Text, -- | The name of the IAM execution role to use to update the stack set. If -- you do not specify an execution role, CloudFormation uses the -- @AWSCloudFormationStackSetExecutionRole@ role for the stack set -- operation. -- -- Specify an IAM role only if you are using customized execution roles to -- control which stack resources users and groups can include in their -- stack sets. -- -- If you specify a customized execution role, CloudFormation uses that -- role to update the stack. If you do not specify a customized execution -- role, CloudFormation performs the update using the role previously -- associated with the stack set, so long as you have permissions to -- perform operations on the stack set. UpdateStackSet -> Maybe Text executionRoleName :: Prelude.Maybe Prelude.Text, -- | Describes whether StackSets performs non-conflicting operations -- concurrently and queues conflicting operations. UpdateStackSet -> Maybe ManagedExecution managedExecution :: Prelude.Maybe ManagedExecution, -- | The unique ID for this stack set operation. -- -- The operation ID also functions as an idempotency token, to ensure that -- CloudFormation performs the stack set operation only once, even if you -- retry the request multiple times. You might retry stack set operation -- requests to ensure that CloudFormation successfully received them. -- -- If you don\'t specify an operation ID, CloudFormation generates one -- automatically. -- -- Repeating this stack set operation with a new operation ID retries all -- stack instances whose status is @OUTDATED@. UpdateStackSet -> Maybe Text operationId :: Prelude.Maybe Prelude.Text, -- | Preferences for how CloudFormation performs this stack set operation. UpdateStackSet -> Maybe StackSetOperationPreferences operationPreferences :: Prelude.Maybe StackSetOperationPreferences, -- | A list of input parameters for the stack set template. UpdateStackSet -> Maybe [Parameter] parameters :: Prelude.Maybe [Parameter], -- | Describes how the IAM roles required for stack set operations are -- created. You cannot modify @PermissionModel@ if there are stack -- instances associated with your stack set. -- -- - With @self-managed@ permissions, you must create the administrator -- and execution roles required to deploy to target accounts. For more -- information, see -- <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/stacksets-prereqs-self-managed.html Grant Self-Managed Stack Set Permissions>. -- -- - With @service-managed@ permissions, StackSets automatically creates -- the IAM roles required to deploy to accounts managed by -- Organizations. For more information, see -- <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/stacksets-prereqs-service-managed.html Grant Service-Managed Stack Set Permissions>. UpdateStackSet -> Maybe PermissionModels permissionModel :: Prelude.Maybe PermissionModels, -- | The Amazon Web Services Regions in which to update associated stack -- instances. If you specify Regions, you must also specify accounts in -- which to update stack set instances. -- -- To update /all/ the stack instances associated with this stack set, do -- not specify the @Accounts@ or @Regions@ properties. -- -- If the stack set update includes changes to the template (that is, if -- the @TemplateBody@ or @TemplateURL@ properties are specified), or the -- @Parameters@ property, CloudFormation marks all stack instances with a -- status of @OUTDATED@ prior to updating the stack instances in the -- specified accounts and Regions. If the stack set update does not include -- changes to the template or parameters, CloudFormation updates the stack -- instances in the specified accounts and Regions, while leaving all other -- stack instances with their existing stack instance status. UpdateStackSet -> Maybe [Text] regions :: Prelude.Maybe [Prelude.Text], -- | The key-value pairs to associate with this stack set and the stacks -- created from it. CloudFormation also propagates these tags to supported -- resources that are created in the stacks. You can specify a maximum -- number of 50 tags. -- -- If you specify tags for this parameter, those tags replace any list of -- tags that are currently associated with this stack set. This means: -- -- - If you don\'t specify this parameter, CloudFormation doesn\'t modify -- the stack\'s tags. -- -- - If you specify /any/ tags using this parameter, you must specify -- /all/ the tags that you want associated with this stack set, even -- tags you\'ve specified before (for example, when creating the stack -- set or during a previous update of the stack set.). Any tags that -- you don\'t include in the updated list of tags are removed from the -- stack set, and therefore from the stacks and resources as well. -- -- - If you specify an empty value, CloudFormation removes all currently -- associated tags. -- -- If you specify new tags as part of an @UpdateStackSet@ action, -- CloudFormation checks to see if you have the required IAM permission to -- tag resources. If you omit tags that are currently associated with the -- stack set from the list of tags you specify, CloudFormation assumes that -- you want to remove those tags from the stack set, and checks to see if -- you have permission to untag resources. If you don\'t have the necessary -- permission(s), the entire @UpdateStackSet@ action fails with an -- @access denied@ error, and the stack set is not updated. :: Prelude.Maybe [Tag], -- | The structure that contains the template body, with a minimum length of -- 1 byte and a maximum length of 51,200 bytes. For more information, see -- <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/template-anatomy.html Template Anatomy> -- in the CloudFormation User Guide. -- -- Conditional: You must specify only one of the following parameters: -- @TemplateBody@ or @TemplateURL@—or set @UsePreviousTemplate@ to true. UpdateStackSet -> Maybe Text templateBody :: Prelude.Maybe Prelude.Text, -- | The location of the file that contains the template body. The URL must -- point to a template (maximum size: 460,800 bytes) that is located in an -- Amazon S3 bucket or a Systems Manager document. For more information, -- see -- <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/template-anatomy.html Template Anatomy> -- in the CloudFormation User Guide. -- -- Conditional: You must specify only one of the following parameters: -- @TemplateBody@ or @TemplateURL@—or set @UsePreviousTemplate@ to true. UpdateStackSet -> Maybe Text templateURL :: Prelude.Maybe Prelude.Text, -- | Use the existing template that\'s associated with the stack set that -- you\'re updating. -- -- Conditional: You must specify only one of the following parameters: -- @TemplateBody@ or @TemplateURL@—or set @UsePreviousTemplate@ to true. UpdateStackSet -> Maybe Bool usePreviousTemplate :: Prelude.Maybe Prelude.Bool, -- | The name or unique ID of the stack set that you want to update. UpdateStackSet -> Text stackSetName :: Prelude.Text } deriving (UpdateStackSet -> UpdateStackSet -> Bool forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a /= :: UpdateStackSet -> UpdateStackSet -> Bool $c/= :: UpdateStackSet -> UpdateStackSet -> Bool == :: UpdateStackSet -> UpdateStackSet -> Bool $c== :: UpdateStackSet -> UpdateStackSet -> Bool Prelude.Eq, ReadPrec [UpdateStackSet] ReadPrec UpdateStackSet Int -> ReadS UpdateStackSet ReadS [UpdateStackSet] forall a. (Int -> ReadS a) -> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a readListPrec :: ReadPrec [UpdateStackSet] $creadListPrec :: ReadPrec [UpdateStackSet] readPrec :: ReadPrec UpdateStackSet $creadPrec :: ReadPrec UpdateStackSet readList :: ReadS [UpdateStackSet] $creadList :: ReadS [UpdateStackSet] readsPrec :: Int -> ReadS UpdateStackSet $creadsPrec :: Int -> ReadS UpdateStackSet Prelude.Read, Int -> UpdateStackSet -> ShowS [UpdateStackSet] -> ShowS UpdateStackSet -> String forall a. (Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a showList :: [UpdateStackSet] -> ShowS $cshowList :: [UpdateStackSet] -> ShowS show :: UpdateStackSet -> String $cshow :: UpdateStackSet -> String showsPrec :: Int -> UpdateStackSet -> ShowS $cshowsPrec :: Int -> UpdateStackSet -> ShowS Prelude.Show, forall x. Rep UpdateStackSet x -> UpdateStackSet forall x. UpdateStackSet -> Rep UpdateStackSet x forall a. (forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a $cto :: forall x. Rep UpdateStackSet x -> UpdateStackSet $cfrom :: forall x. UpdateStackSet -> Rep UpdateStackSet x Prelude.Generic) -- | -- Create a value of 'UpdateStackSet' with all optional fields omitted. -- -- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields. -- -- The following record fields are available, with the corresponding lenses provided -- for backwards compatibility: -- -- 'accounts', 'updateStackSet_accounts' - [Self-managed permissions] The accounts in which to update associated -- stack instances. If you specify accounts, you must also specify the -- Amazon Web Services Regions in which to update stack set instances. -- -- To update /all/ the stack instances associated with this stack set, -- don\'t specify the @Accounts@ or @Regions@ properties. -- -- If the stack set update includes changes to the template (that is, if -- the @TemplateBody@ or @TemplateURL@ properties are specified), or the -- @Parameters@ property, CloudFormation marks all stack instances with a -- status of @OUTDATED@ prior to updating the stack instances in the -- specified accounts and Amazon Web Services Regions. If the stack set -- update does not include changes to the template or parameters, -- CloudFormation updates the stack instances in the specified accounts and -- Amazon Web Services Regions, while leaving all other stack instances -- with their existing stack instance status. -- -- 'administrationRoleARN', 'updateStackSet_administrationRoleARN' - The Amazon Resource Name (ARN) of the IAM role to use to update this -- stack set. -- -- Specify an IAM role only if you are using customized administrator roles -- to control which users or groups can manage specific stack sets within -- the same administrator account. For more information, see -- <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/stacksets-prereqs.html Granting Permissions for Stack Set Operations> -- in the /CloudFormation User Guide/. -- -- If you specified a customized administrator role when you created the -- stack set, you must specify a customized administrator role, even if it -- is the same customized administrator role used with this stack set -- previously. -- -- 'autoDeployment', 'updateStackSet_autoDeployment' - [Service-managed permissions] Describes whether StackSets automatically -- deploys to Organizations accounts that are added to a target -- organization or organizational unit (OU). -- -- If you specify @AutoDeployment@, don\'t specify @DeploymentTargets@ or -- @Regions@. -- -- 'callAs', 'updateStackSet_callAs' - [Service-managed permissions] Specifies whether you are acting as an -- account administrator in the organization\'s management account or as a -- delegated administrator in a member account. -- -- By default, @SELF@ is specified. Use @SELF@ for stack sets with -- self-managed permissions. -- -- - If you are signed in to the management account, specify @SELF@. -- -- - If you are signed in to a delegated administrator account, specify -- @DELEGATED_ADMIN@. -- -- Your Amazon Web Services account must be registered as a delegated -- administrator in the management account. For more information, see -- <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/stacksets-orgs-delegated-admin.html Register a delegated administrator> -- in the /CloudFormation User Guide/. -- -- 'capabilities', 'updateStackSet_capabilities' - In some cases, you must explicitly acknowledge that your stack template -- contains certain capabilities in order for CloudFormation to update the -- stack set and its associated stack instances. -- -- - @CAPABILITY_IAM@ and @CAPABILITY_NAMED_IAM@ -- -- Some stack templates might include resources that can affect -- permissions in your Amazon Web Services account; for example, by -- creating new Identity and Access Management (IAM) users. For those -- stacks sets, you must explicitly acknowledge this by specifying one -- of these capabilities. -- -- The following IAM resources require you to specify either the -- @CAPABILITY_IAM@ or @CAPABILITY_NAMED_IAM@ capability. -- -- - If you have IAM resources, you can specify either capability. -- -- - If you have IAM resources with custom names, you /must/ specify -- @CAPABILITY_NAMED_IAM@. -- -- - If you don\'t specify either of these capabilities, -- CloudFormation returns an @InsufficientCapabilities@ error. -- -- If your stack template contains these resources, we recommend that -- you review all permissions associated with them and edit their -- permissions if necessary. -- -- - <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iam-accesskey.html AWS::IAM::AccessKey> -- -- - <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iam-group.html AWS::IAM::Group> -- -- - <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-instanceprofile.html AWS::IAM::InstanceProfile> -- -- - <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iam-policy.html AWS::IAM::Policy> -- -- - <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-role.html AWS::IAM::Role> -- -- - <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iam-user.html AWS::IAM::User> -- -- - <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iam-addusertogroup.html AWS::IAM::UserToGroupAddition> -- -- For more information, see -- <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-iam-template.html#capabilities Acknowledging IAM Resources in CloudFormation Templates>. -- -- - @CAPABILITY_AUTO_EXPAND@ -- -- Some templates reference macros. If your stack set template -- references one or more macros, you must update the stack set -- directly from the processed template, without first reviewing the -- resulting changes in a change set. To update the stack set directly, -- you must acknowledge this capability. For more information, see -- <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/template-macros.html Using CloudFormation Macros to Perform Custom Processing on Templates>. -- -- Stack sets with service-managed permissions do not currently support -- the use of macros in templates. (This includes the -- <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/create-reusable-transform-function-snippets-and-add-to-your-template-with-aws-include-transform.html AWS::Include> -- and -- <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/transform-aws-serverless.html AWS::Serverless> -- transforms, which are macros hosted by CloudFormation.) Even if you -- specify this capability for a stack set with service-managed -- permissions, if you reference a macro in your template the stack set -- operation will fail. -- -- 'deploymentTargets', 'updateStackSet_deploymentTargets' - [Service-managed permissions] The Organizations accounts in which to -- update associated stack instances. -- -- To update all the stack instances associated with this stack set, do not -- specify @DeploymentTargets@ or @Regions@. -- -- If the stack set update includes changes to the template (that is, if -- @TemplateBody@ or @TemplateURL@ is specified), or the @Parameters@, -- CloudFormation marks all stack instances with a status of @OUTDATED@ -- prior to updating the stack instances in the specified accounts and -- Amazon Web Services Regions. If the stack set update doesn\'t include -- changes to the template or parameters, CloudFormation updates the stack -- instances in the specified accounts and Regions, while leaving all other -- stack instances with their existing stack instance status. -- -- 'description', 'updateStackSet_description' - A brief description of updates that you are making. -- -- 'executionRoleName', 'updateStackSet_executionRoleName' - The name of the IAM execution role to use to update the stack set. If -- you do not specify an execution role, CloudFormation uses the -- @AWSCloudFormationStackSetExecutionRole@ role for the stack set -- operation. -- -- Specify an IAM role only if you are using customized execution roles to -- control which stack resources users and groups can include in their -- stack sets. -- -- If you specify a customized execution role, CloudFormation uses that -- role to update the stack. If you do not specify a customized execution -- role, CloudFormation performs the update using the role previously -- associated with the stack set, so long as you have permissions to -- perform operations on the stack set. -- -- 'managedExecution', 'updateStackSet_managedExecution' - Describes whether StackSets performs non-conflicting operations -- concurrently and queues conflicting operations. -- -- 'operationId', 'updateStackSet_operationId' - The unique ID for this stack set operation. -- -- The operation ID also functions as an idempotency token, to ensure that -- CloudFormation performs the stack set operation only once, even if you -- retry the request multiple times. You might retry stack set operation -- requests to ensure that CloudFormation successfully received them. -- -- If you don\'t specify an operation ID, CloudFormation generates one -- automatically. -- -- Repeating this stack set operation with a new operation ID retries all -- stack instances whose status is @OUTDATED@. -- -- 'operationPreferences', 'updateStackSet_operationPreferences' - Preferences for how CloudFormation performs this stack set operation. -- -- 'parameters', 'updateStackSet_parameters' - A list of input parameters for the stack set template. -- -- 'permissionModel', 'updateStackSet_permissionModel' - Describes how the IAM roles required for stack set operations are -- created. You cannot modify @PermissionModel@ if there are stack -- instances associated with your stack set. -- -- - With @self-managed@ permissions, you must create the administrator -- and execution roles required to deploy to target accounts. For more -- information, see -- <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/stacksets-prereqs-self-managed.html Grant Self-Managed Stack Set Permissions>. -- -- - With @service-managed@ permissions, StackSets automatically creates -- the IAM roles required to deploy to accounts managed by -- Organizations. For more information, see -- <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/stacksets-prereqs-service-managed.html Grant Service-Managed Stack Set Permissions>. -- -- 'regions', 'updateStackSet_regions' - The Amazon Web Services Regions in which to update associated stack -- instances. If you specify Regions, you must also specify accounts in -- which to update stack set instances. -- -- To update /all/ the stack instances associated with this stack set, do -- not specify the @Accounts@ or @Regions@ properties. -- -- If the stack set update includes changes to the template (that is, if -- the @TemplateBody@ or @TemplateURL@ properties are specified), or the -- @Parameters@ property, CloudFormation marks all stack instances with a -- status of @OUTDATED@ prior to updating the stack instances in the -- specified accounts and Regions. If the stack set update does not include -- changes to the template or parameters, CloudFormation updates the stack -- instances in the specified accounts and Regions, while leaving all other -- stack instances with their existing stack instance status. -- -- 'tags', 'updateStackSet_tags' - The key-value pairs to associate with this stack set and the stacks -- created from it. CloudFormation also propagates these tags to supported -- resources that are created in the stacks. You can specify a maximum -- number of 50 tags. -- -- If you specify tags for this parameter, those tags replace any list of -- tags that are currently associated with this stack set. This means: -- -- - If you don\'t specify this parameter, CloudFormation doesn\'t modify -- the stack\'s tags. -- -- - If you specify /any/ tags using this parameter, you must specify -- /all/ the tags that you want associated with this stack set, even -- tags you\'ve specified before (for example, when creating the stack -- set or during a previous update of the stack set.). Any tags that -- you don\'t include in the updated list of tags are removed from the -- stack set, and therefore from the stacks and resources as well. -- -- - If you specify an empty value, CloudFormation removes all currently -- associated tags. -- -- If you specify new tags as part of an @UpdateStackSet@ action, -- CloudFormation checks to see if you have the required IAM permission to -- tag resources. If you omit tags that are currently associated with the -- stack set from the list of tags you specify, CloudFormation assumes that -- you want to remove those tags from the stack set, and checks to see if -- you have permission to untag resources. If you don\'t have the necessary -- permission(s), the entire @UpdateStackSet@ action fails with an -- @access denied@ error, and the stack set is not updated. -- -- 'templateBody', 'updateStackSet_templateBody' - The structure that contains the template body, with a minimum length of -- 1 byte and a maximum length of 51,200 bytes. For more information, see -- <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/template-anatomy.html Template Anatomy> -- in the CloudFormation User Guide. -- -- Conditional: You must specify only one of the following parameters: -- @TemplateBody@ or @TemplateURL@—or set @UsePreviousTemplate@ to true. -- -- 'templateURL', 'updateStackSet_templateURL' - The location of the file that contains the template body. The URL must -- point to a template (maximum size: 460,800 bytes) that is located in an -- Amazon S3 bucket or a Systems Manager document. For more information, -- see -- <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/template-anatomy.html Template Anatomy> -- in the CloudFormation User Guide. -- -- Conditional: You must specify only one of the following parameters: -- @TemplateBody@ or @TemplateURL@—or set @UsePreviousTemplate@ to true. -- -- 'usePreviousTemplate', 'updateStackSet_usePreviousTemplate' - Use the existing template that\'s associated with the stack set that -- you\'re updating. -- -- Conditional: You must specify only one of the following parameters: -- @TemplateBody@ or @TemplateURL@—or set @UsePreviousTemplate@ to true. -- -- 'stackSetName', 'updateStackSet_stackSetName' - The name or unique ID of the stack set that you want to update. newUpdateStackSet :: -- | 'stackSetName' Prelude.Text -> UpdateStackSet newUpdateStackSet :: Text -> UpdateStackSet newUpdateStackSet Text pStackSetName_ = UpdateStackSet' { $sel:accounts:UpdateStackSet' :: Maybe [Text] accounts = forall a. Maybe a Prelude.Nothing, $sel:administrationRoleARN:UpdateStackSet' :: Maybe Text administrationRoleARN = forall a. Maybe a Prelude.Nothing, $sel:autoDeployment:UpdateStackSet' :: Maybe AutoDeployment autoDeployment = forall a. Maybe a Prelude.Nothing, $sel:callAs:UpdateStackSet' :: Maybe CallAs callAs = forall a. Maybe a Prelude.Nothing, $sel:capabilities:UpdateStackSet' :: Maybe [Capability] capabilities = forall a. Maybe a Prelude.Nothing, $sel:deploymentTargets:UpdateStackSet' :: Maybe DeploymentTargets deploymentTargets = forall a. Maybe a Prelude.Nothing, $sel:description:UpdateStackSet' :: Maybe Text description = forall a. Maybe a Prelude.Nothing, $sel:executionRoleName:UpdateStackSet' :: Maybe Text executionRoleName = forall a. Maybe a Prelude.Nothing, $sel:managedExecution:UpdateStackSet' :: Maybe ManagedExecution managedExecution = forall a. Maybe a Prelude.Nothing, $sel:operationId:UpdateStackSet' :: Maybe Text operationId = forall a. Maybe a Prelude.Nothing, $sel:operationPreferences:UpdateStackSet' :: Maybe StackSetOperationPreferences operationPreferences = forall a. Maybe a Prelude.Nothing, $sel:parameters:UpdateStackSet' :: Maybe [Parameter] parameters = forall a. Maybe a Prelude.Nothing, $sel:permissionModel:UpdateStackSet' :: Maybe PermissionModels permissionModel = forall a. Maybe a Prelude.Nothing, $sel:regions:UpdateStackSet' :: Maybe [Text] regions = forall a. Maybe a Prelude.Nothing, $sel:tags:UpdateStackSet' :: Maybe [Tag] tags = forall a. Maybe a Prelude.Nothing, $sel:templateBody:UpdateStackSet' :: Maybe Text templateBody = forall a. Maybe a Prelude.Nothing, $sel:templateURL:UpdateStackSet' :: Maybe Text templateURL = forall a. Maybe a Prelude.Nothing, $sel:usePreviousTemplate:UpdateStackSet' :: Maybe Bool usePreviousTemplate = forall a. Maybe a Prelude.Nothing, $sel:stackSetName:UpdateStackSet' :: Text stackSetName = Text pStackSetName_ } -- | [Self-managed permissions] The accounts in which to update associated -- stack instances. If you specify accounts, you must also specify the -- Amazon Web Services Regions in which to update stack set instances. -- -- To update /all/ the stack instances associated with this stack set, -- don\'t specify the @Accounts@ or @Regions@ properties. -- -- If the stack set update includes changes to the template (that is, if -- the @TemplateBody@ or @TemplateURL@ properties are specified), or the -- @Parameters@ property, CloudFormation marks all stack instances with a -- status of @OUTDATED@ prior to updating the stack instances in the -- specified accounts and Amazon Web Services Regions. If the stack set -- update does not include changes to the template or parameters, -- CloudFormation updates the stack instances in the specified accounts and -- Amazon Web Services Regions, while leaving all other stack instances -- with their existing stack instance status. updateStackSet_accounts :: Lens.Lens' UpdateStackSet (Prelude.Maybe [Prelude.Text]) updateStackSet_accounts :: Lens' UpdateStackSet (Maybe [Text]) updateStackSet_accounts = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b Lens.lens (\UpdateStackSet' {Maybe [Text] accounts :: Maybe [Text] $sel:accounts:UpdateStackSet' :: UpdateStackSet -> Maybe [Text] accounts} -> Maybe [Text] accounts) (\s :: UpdateStackSet s@UpdateStackSet' {} Maybe [Text] a -> UpdateStackSet s {$sel:accounts:UpdateStackSet' :: Maybe [Text] accounts = Maybe [Text] a} :: UpdateStackSet) forall b c a. (b -> c) -> (a -> b) -> a -> c Prelude.. 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 forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b Lens.coerced -- | The Amazon Resource Name (ARN) of the IAM role to use to update this -- stack set. -- -- Specify an IAM role only if you are using customized administrator roles -- to control which users or groups can manage specific stack sets within -- the same administrator account. For more information, see -- <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/stacksets-prereqs.html Granting Permissions for Stack Set Operations> -- in the /CloudFormation User Guide/. -- -- If you specified a customized administrator role when you created the -- stack set, you must specify a customized administrator role, even if it -- is the same customized administrator role used with this stack set -- previously. updateStackSet_administrationRoleARN :: Lens.Lens' UpdateStackSet (Prelude.Maybe Prelude.Text) updateStackSet_administrationRoleARN :: Lens' UpdateStackSet (Maybe Text) updateStackSet_administrationRoleARN = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b Lens.lens (\UpdateStackSet' {Maybe Text administrationRoleARN :: Maybe Text $sel:administrationRoleARN:UpdateStackSet' :: UpdateStackSet -> Maybe Text administrationRoleARN} -> Maybe Text administrationRoleARN) (\s :: UpdateStackSet s@UpdateStackSet' {} Maybe Text a -> UpdateStackSet s {$sel:administrationRoleARN:UpdateStackSet' :: Maybe Text administrationRoleARN = Maybe Text a} :: UpdateStackSet) -- | [Service-managed permissions] Describes whether StackSets automatically -- deploys to Organizations accounts that are added to a target -- organization or organizational unit (OU). -- -- If you specify @AutoDeployment@, don\'t specify @DeploymentTargets@ or -- @Regions@. updateStackSet_autoDeployment :: Lens.Lens' UpdateStackSet (Prelude.Maybe AutoDeployment) updateStackSet_autoDeployment :: Lens' UpdateStackSet (Maybe AutoDeployment) updateStackSet_autoDeployment = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b Lens.lens (\UpdateStackSet' {Maybe AutoDeployment autoDeployment :: Maybe AutoDeployment $sel:autoDeployment:UpdateStackSet' :: UpdateStackSet -> Maybe AutoDeployment autoDeployment} -> Maybe AutoDeployment autoDeployment) (\s :: UpdateStackSet s@UpdateStackSet' {} Maybe AutoDeployment a -> UpdateStackSet s {$sel:autoDeployment:UpdateStackSet' :: Maybe AutoDeployment autoDeployment = Maybe AutoDeployment a} :: UpdateStackSet) -- | [Service-managed permissions] Specifies whether you are acting as an -- account administrator in the organization\'s management account or as a -- delegated administrator in a member account. -- -- By default, @SELF@ is specified. Use @SELF@ for stack sets with -- self-managed permissions. -- -- - If you are signed in to the management account, specify @SELF@. -- -- - If you are signed in to a delegated administrator account, specify -- @DELEGATED_ADMIN@. -- -- Your Amazon Web Services account must be registered as a delegated -- administrator in the management account. For more information, see -- <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/stacksets-orgs-delegated-admin.html Register a delegated administrator> -- in the /CloudFormation User Guide/. updateStackSet_callAs :: Lens.Lens' UpdateStackSet (Prelude.Maybe CallAs) updateStackSet_callAs :: Lens' UpdateStackSet (Maybe CallAs) updateStackSet_callAs = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b Lens.lens (\UpdateStackSet' {Maybe CallAs callAs :: Maybe CallAs $sel:callAs:UpdateStackSet' :: UpdateStackSet -> Maybe CallAs callAs} -> Maybe CallAs callAs) (\s :: UpdateStackSet s@UpdateStackSet' {} Maybe CallAs a -> UpdateStackSet s {$sel:callAs:UpdateStackSet' :: Maybe CallAs callAs = Maybe CallAs a} :: UpdateStackSet) -- | In some cases, you must explicitly acknowledge that your stack template -- contains certain capabilities in order for CloudFormation to update the -- stack set and its associated stack instances. -- -- - @CAPABILITY_IAM@ and @CAPABILITY_NAMED_IAM@ -- -- Some stack templates might include resources that can affect -- permissions in your Amazon Web Services account; for example, by -- creating new Identity and Access Management (IAM) users. For those -- stacks sets, you must explicitly acknowledge this by specifying one -- of these capabilities. -- -- The following IAM resources require you to specify either the -- @CAPABILITY_IAM@ or @CAPABILITY_NAMED_IAM@ capability. -- -- - If you have IAM resources, you can specify either capability. -- -- - If you have IAM resources with custom names, you /must/ specify -- @CAPABILITY_NAMED_IAM@. -- -- - If you don\'t specify either of these capabilities, -- CloudFormation returns an @InsufficientCapabilities@ error. -- -- If your stack template contains these resources, we recommend that -- you review all permissions associated with them and edit their -- permissions if necessary. -- -- - <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iam-accesskey.html AWS::IAM::AccessKey> -- -- - <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iam-group.html AWS::IAM::Group> -- -- - <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-instanceprofile.html AWS::IAM::InstanceProfile> -- -- - <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iam-policy.html AWS::IAM::Policy> -- -- - <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-role.html AWS::IAM::Role> -- -- - <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iam-user.html AWS::IAM::User> -- -- - <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iam-addusertogroup.html AWS::IAM::UserToGroupAddition> -- -- For more information, see -- <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-iam-template.html#capabilities Acknowledging IAM Resources in CloudFormation Templates>. -- -- - @CAPABILITY_AUTO_EXPAND@ -- -- Some templates reference macros. If your stack set template -- references one or more macros, you must update the stack set -- directly from the processed template, without first reviewing the -- resulting changes in a change set. To update the stack set directly, -- you must acknowledge this capability. For more information, see -- <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/template-macros.html Using CloudFormation Macros to Perform Custom Processing on Templates>. -- -- Stack sets with service-managed permissions do not currently support -- the use of macros in templates. (This includes the -- <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/create-reusable-transform-function-snippets-and-add-to-your-template-with-aws-include-transform.html AWS::Include> -- and -- <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/transform-aws-serverless.html AWS::Serverless> -- transforms, which are macros hosted by CloudFormation.) Even if you -- specify this capability for a stack set with service-managed -- permissions, if you reference a macro in your template the stack set -- operation will fail. updateStackSet_capabilities :: Lens.Lens' UpdateStackSet (Prelude.Maybe [Capability]) updateStackSet_capabilities :: Lens' UpdateStackSet (Maybe [Capability]) updateStackSet_capabilities = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b Lens.lens (\UpdateStackSet' {Maybe [Capability] capabilities :: Maybe [Capability] $sel:capabilities:UpdateStackSet' :: UpdateStackSet -> Maybe [Capability] capabilities} -> Maybe [Capability] capabilities) (\s :: UpdateStackSet s@UpdateStackSet' {} Maybe [Capability] a -> UpdateStackSet s {$sel:capabilities:UpdateStackSet' :: Maybe [Capability] capabilities = Maybe [Capability] a} :: UpdateStackSet) forall b c a. (b -> c) -> (a -> b) -> a -> c Prelude.. 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 forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b Lens.coerced -- | [Service-managed permissions] The Organizations accounts in which to -- update associated stack instances. -- -- To update all the stack instances associated with this stack set, do not -- specify @DeploymentTargets@ or @Regions@. -- -- If the stack set update includes changes to the template (that is, if -- @TemplateBody@ or @TemplateURL@ is specified), or the @Parameters@, -- CloudFormation marks all stack instances with a status of @OUTDATED@ -- prior to updating the stack instances in the specified accounts and -- Amazon Web Services Regions. If the stack set update doesn\'t include -- changes to the template or parameters, CloudFormation updates the stack -- instances in the specified accounts and Regions, while leaving all other -- stack instances with their existing stack instance status. updateStackSet_deploymentTargets :: Lens.Lens' UpdateStackSet (Prelude.Maybe DeploymentTargets) updateStackSet_deploymentTargets :: Lens' UpdateStackSet (Maybe DeploymentTargets) updateStackSet_deploymentTargets = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b Lens.lens (\UpdateStackSet' {Maybe DeploymentTargets deploymentTargets :: Maybe DeploymentTargets $sel:deploymentTargets:UpdateStackSet' :: UpdateStackSet -> Maybe DeploymentTargets deploymentTargets} -> Maybe DeploymentTargets deploymentTargets) (\s :: UpdateStackSet s@UpdateStackSet' {} Maybe DeploymentTargets a -> UpdateStackSet s {$sel:deploymentTargets:UpdateStackSet' :: Maybe DeploymentTargets deploymentTargets = Maybe DeploymentTargets a} :: UpdateStackSet) -- | A brief description of updates that you are making. updateStackSet_description :: Lens.Lens' UpdateStackSet (Prelude.Maybe Prelude.Text) updateStackSet_description :: Lens' UpdateStackSet (Maybe Text) updateStackSet_description = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b Lens.lens (\UpdateStackSet' {Maybe Text description :: Maybe Text $sel:description:UpdateStackSet' :: UpdateStackSet -> Maybe Text description} -> Maybe Text description) (\s :: UpdateStackSet s@UpdateStackSet' {} Maybe Text a -> UpdateStackSet s {$sel:description:UpdateStackSet' :: Maybe Text description = Maybe Text a} :: UpdateStackSet) -- | The name of the IAM execution role to use to update the stack set. If -- you do not specify an execution role, CloudFormation uses the -- @AWSCloudFormationStackSetExecutionRole@ role for the stack set -- operation. -- -- Specify an IAM role only if you are using customized execution roles to -- control which stack resources users and groups can include in their -- stack sets. -- -- If you specify a customized execution role, CloudFormation uses that -- role to update the stack. If you do not specify a customized execution -- role, CloudFormation performs the update using the role previously -- associated with the stack set, so long as you have permissions to -- perform operations on the stack set. updateStackSet_executionRoleName :: Lens.Lens' UpdateStackSet (Prelude.Maybe Prelude.Text) updateStackSet_executionRoleName :: Lens' UpdateStackSet (Maybe Text) updateStackSet_executionRoleName = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b Lens.lens (\UpdateStackSet' {Maybe Text executionRoleName :: Maybe Text $sel:executionRoleName:UpdateStackSet' :: UpdateStackSet -> Maybe Text executionRoleName} -> Maybe Text executionRoleName) (\s :: UpdateStackSet s@UpdateStackSet' {} Maybe Text a -> UpdateStackSet s {$sel:executionRoleName:UpdateStackSet' :: Maybe Text executionRoleName = Maybe Text a} :: UpdateStackSet) -- | Describes whether StackSets performs non-conflicting operations -- concurrently and queues conflicting operations. updateStackSet_managedExecution :: Lens.Lens' UpdateStackSet (Prelude.Maybe ManagedExecution) updateStackSet_managedExecution :: Lens' UpdateStackSet (Maybe ManagedExecution) updateStackSet_managedExecution = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b Lens.lens (\UpdateStackSet' {Maybe ManagedExecution managedExecution :: Maybe ManagedExecution $sel:managedExecution:UpdateStackSet' :: UpdateStackSet -> Maybe ManagedExecution managedExecution} -> Maybe ManagedExecution managedExecution) (\s :: UpdateStackSet s@UpdateStackSet' {} Maybe ManagedExecution a -> UpdateStackSet s {$sel:managedExecution:UpdateStackSet' :: Maybe ManagedExecution managedExecution = Maybe ManagedExecution a} :: UpdateStackSet) -- | The unique ID for this stack set operation. -- -- The operation ID also functions as an idempotency token, to ensure that -- CloudFormation performs the stack set operation only once, even if you -- retry the request multiple times. You might retry stack set operation -- requests to ensure that CloudFormation successfully received them. -- -- If you don\'t specify an operation ID, CloudFormation generates one -- automatically. -- -- Repeating this stack set operation with a new operation ID retries all -- stack instances whose status is @OUTDATED@. updateStackSet_operationId :: Lens.Lens' UpdateStackSet (Prelude.Maybe Prelude.Text) updateStackSet_operationId :: Lens' UpdateStackSet (Maybe Text) updateStackSet_operationId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b Lens.lens (\UpdateStackSet' {Maybe Text operationId :: Maybe Text $sel:operationId:UpdateStackSet' :: UpdateStackSet -> Maybe Text operationId} -> Maybe Text operationId) (\s :: UpdateStackSet s@UpdateStackSet' {} Maybe Text a -> UpdateStackSet s {$sel:operationId:UpdateStackSet' :: Maybe Text operationId = Maybe Text a} :: UpdateStackSet) -- | Preferences for how CloudFormation performs this stack set operation. updateStackSet_operationPreferences :: Lens.Lens' UpdateStackSet (Prelude.Maybe StackSetOperationPreferences) updateStackSet_operationPreferences :: Lens' UpdateStackSet (Maybe StackSetOperationPreferences) updateStackSet_operationPreferences = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b Lens.lens (\UpdateStackSet' {Maybe StackSetOperationPreferences operationPreferences :: Maybe StackSetOperationPreferences $sel:operationPreferences:UpdateStackSet' :: UpdateStackSet -> Maybe StackSetOperationPreferences operationPreferences} -> Maybe StackSetOperationPreferences operationPreferences) (\s :: UpdateStackSet s@UpdateStackSet' {} Maybe StackSetOperationPreferences a -> UpdateStackSet s {$sel:operationPreferences:UpdateStackSet' :: Maybe StackSetOperationPreferences operationPreferences = Maybe StackSetOperationPreferences a} :: UpdateStackSet) -- | A list of input parameters for the stack set template. updateStackSet_parameters :: Lens.Lens' UpdateStackSet (Prelude.Maybe [Parameter]) updateStackSet_parameters :: Lens' UpdateStackSet (Maybe [Parameter]) updateStackSet_parameters = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b Lens.lens (\UpdateStackSet' {Maybe [Parameter] parameters :: Maybe [Parameter] $sel:parameters:UpdateStackSet' :: UpdateStackSet -> Maybe [Parameter] parameters} -> Maybe [Parameter] parameters) (\s :: UpdateStackSet s@UpdateStackSet' {} Maybe [Parameter] a -> UpdateStackSet s {$sel:parameters:UpdateStackSet' :: Maybe [Parameter] parameters = Maybe [Parameter] a} :: UpdateStackSet) forall b c a. (b -> c) -> (a -> b) -> a -> c Prelude.. 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 forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b Lens.coerced -- | Describes how the IAM roles required for stack set operations are -- created. You cannot modify @PermissionModel@ if there are stack -- instances associated with your stack set. -- -- - With @self-managed@ permissions, you must create the administrator -- and execution roles required to deploy to target accounts. For more -- information, see -- <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/stacksets-prereqs-self-managed.html Grant Self-Managed Stack Set Permissions>. -- -- - With @service-managed@ permissions, StackSets automatically creates -- the IAM roles required to deploy to accounts managed by -- Organizations. For more information, see -- <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/stacksets-prereqs-service-managed.html Grant Service-Managed Stack Set Permissions>. updateStackSet_permissionModel :: Lens.Lens' UpdateStackSet (Prelude.Maybe PermissionModels) updateStackSet_permissionModel :: Lens' UpdateStackSet (Maybe PermissionModels) updateStackSet_permissionModel = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b Lens.lens (\UpdateStackSet' {Maybe PermissionModels permissionModel :: Maybe PermissionModels $sel:permissionModel:UpdateStackSet' :: UpdateStackSet -> Maybe PermissionModels permissionModel} -> Maybe PermissionModels permissionModel) (\s :: UpdateStackSet s@UpdateStackSet' {} Maybe PermissionModels a -> UpdateStackSet s {$sel:permissionModel:UpdateStackSet' :: Maybe PermissionModels permissionModel = Maybe PermissionModels a} :: UpdateStackSet) -- | The Amazon Web Services Regions in which to update associated stack -- instances. If you specify Regions, you must also specify accounts in -- which to update stack set instances. -- -- To update /all/ the stack instances associated with this stack set, do -- not specify the @Accounts@ or @Regions@ properties. -- -- If the stack set update includes changes to the template (that is, if -- the @TemplateBody@ or @TemplateURL@ properties are specified), or the -- @Parameters@ property, CloudFormation marks all stack instances with a -- status of @OUTDATED@ prior to updating the stack instances in the -- specified accounts and Regions. If the stack set update does not include -- changes to the template or parameters, CloudFormation updates the stack -- instances in the specified accounts and Regions, while leaving all other -- stack instances with their existing stack instance status. updateStackSet_regions :: Lens.Lens' UpdateStackSet (Prelude.Maybe [Prelude.Text]) updateStackSet_regions :: Lens' UpdateStackSet (Maybe [Text]) updateStackSet_regions = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b Lens.lens (\UpdateStackSet' {Maybe [Text] regions :: Maybe [Text] $sel:regions:UpdateStackSet' :: UpdateStackSet -> Maybe [Text] regions} -> Maybe [Text] regions) (\s :: UpdateStackSet s@UpdateStackSet' {} Maybe [Text] a -> UpdateStackSet s {$sel:regions:UpdateStackSet' :: Maybe [Text] regions = Maybe [Text] a} :: UpdateStackSet) forall b c a. (b -> c) -> (a -> b) -> a -> c Prelude.. 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 forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b Lens.coerced -- | The key-value pairs to associate with this stack set and the stacks -- created from it. CloudFormation also propagates these tags to supported -- resources that are created in the stacks. You can specify a maximum -- number of 50 tags. -- -- If you specify tags for this parameter, those tags replace any list of -- tags that are currently associated with this stack set. This means: -- -- - If you don\'t specify this parameter, CloudFormation doesn\'t modify -- the stack\'s tags. -- -- - If you specify /any/ tags using this parameter, you must specify -- /all/ the tags that you want associated with this stack set, even -- tags you\'ve specified before (for example, when creating the stack -- set or during a previous update of the stack set.). Any tags that -- you don\'t include in the updated list of tags are removed from the -- stack set, and therefore from the stacks and resources as well. -- -- - If you specify an empty value, CloudFormation removes all currently -- associated tags. -- -- If you specify new tags as part of an @UpdateStackSet@ action, -- CloudFormation checks to see if you have the required IAM permission to -- tag resources. If you omit tags that are currently associated with the -- stack set from the list of tags you specify, CloudFormation assumes that -- you want to remove those tags from the stack set, and checks to see if -- you have permission to untag resources. If you don\'t have the necessary -- permission(s), the entire @UpdateStackSet@ action fails with an -- @access denied@ error, and the stack set is not updated. updateStackSet_tags :: Lens.Lens' UpdateStackSet (Prelude.Maybe [Tag]) = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b Lens.lens (\UpdateStackSet' {Maybe [Tag] tags :: Maybe [Tag] $sel:tags:UpdateStackSet' :: UpdateStackSet -> Maybe [Tag] tags} -> Maybe [Tag] tags) (\s :: UpdateStackSet s@UpdateStackSet' {} Maybe [Tag] a -> UpdateStackSet s {$sel:tags:UpdateStackSet' :: Maybe [Tag] tags = Maybe [Tag] a} :: UpdateStackSet) forall b c a. (b -> c) -> (a -> b) -> a -> c Prelude.. 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 forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b Lens.coerced -- | The structure that contains the template body, with a minimum length of -- 1 byte and a maximum length of 51,200 bytes. For more information, see -- <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/template-anatomy.html Template Anatomy> -- in the CloudFormation User Guide. -- -- Conditional: You must specify only one of the following parameters: -- @TemplateBody@ or @TemplateURL@—or set @UsePreviousTemplate@ to true. updateStackSet_templateBody :: Lens.Lens' UpdateStackSet (Prelude.Maybe Prelude.Text) updateStackSet_templateBody :: Lens' UpdateStackSet (Maybe Text) updateStackSet_templateBody = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b Lens.lens (\UpdateStackSet' {Maybe Text templateBody :: Maybe Text $sel:templateBody:UpdateStackSet' :: UpdateStackSet -> Maybe Text templateBody} -> Maybe Text templateBody) (\s :: UpdateStackSet s@UpdateStackSet' {} Maybe Text a -> UpdateStackSet s {$sel:templateBody:UpdateStackSet' :: Maybe Text templateBody = Maybe Text a} :: UpdateStackSet) -- | The location of the file that contains the template body. The URL must -- point to a template (maximum size: 460,800 bytes) that is located in an -- Amazon S3 bucket or a Systems Manager document. For more information, -- see -- <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/template-anatomy.html Template Anatomy> -- in the CloudFormation User Guide. -- -- Conditional: You must specify only one of the following parameters: -- @TemplateBody@ or @TemplateURL@—or set @UsePreviousTemplate@ to true. updateStackSet_templateURL :: Lens.Lens' UpdateStackSet (Prelude.Maybe Prelude.Text) updateStackSet_templateURL :: Lens' UpdateStackSet (Maybe Text) updateStackSet_templateURL = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b Lens.lens (\UpdateStackSet' {Maybe Text templateURL :: Maybe Text $sel:templateURL:UpdateStackSet' :: UpdateStackSet -> Maybe Text templateURL} -> Maybe Text templateURL) (\s :: UpdateStackSet s@UpdateStackSet' {} Maybe Text a -> UpdateStackSet s {$sel:templateURL:UpdateStackSet' :: Maybe Text templateURL = Maybe Text a} :: UpdateStackSet) -- | Use the existing template that\'s associated with the stack set that -- you\'re updating. -- -- Conditional: You must specify only one of the following parameters: -- @TemplateBody@ or @TemplateURL@—or set @UsePreviousTemplate@ to true. updateStackSet_usePreviousTemplate :: Lens.Lens' UpdateStackSet (Prelude.Maybe Prelude.Bool) updateStackSet_usePreviousTemplate :: Lens' UpdateStackSet (Maybe Bool) updateStackSet_usePreviousTemplate = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b Lens.lens (\UpdateStackSet' {Maybe Bool usePreviousTemplate :: Maybe Bool $sel:usePreviousTemplate:UpdateStackSet' :: UpdateStackSet -> Maybe Bool usePreviousTemplate} -> Maybe Bool usePreviousTemplate) (\s :: UpdateStackSet s@UpdateStackSet' {} Maybe Bool a -> UpdateStackSet s {$sel:usePreviousTemplate:UpdateStackSet' :: Maybe Bool usePreviousTemplate = Maybe Bool a} :: UpdateStackSet) -- | The name or unique ID of the stack set that you want to update. updateStackSet_stackSetName :: Lens.Lens' UpdateStackSet Prelude.Text updateStackSet_stackSetName :: Lens' UpdateStackSet Text updateStackSet_stackSetName = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b Lens.lens (\UpdateStackSet' {Text stackSetName :: Text $sel:stackSetName:UpdateStackSet' :: UpdateStackSet -> Text stackSetName} -> Text stackSetName) (\s :: UpdateStackSet s@UpdateStackSet' {} Text a -> UpdateStackSet s {$sel:stackSetName:UpdateStackSet' :: Text stackSetName = Text a} :: UpdateStackSet) instance Core.AWSRequest UpdateStackSet where type AWSResponse UpdateStackSet = UpdateStackSetResponse request :: (Service -> Service) -> UpdateStackSet -> Request UpdateStackSet request Service -> Service overrides = forall a. ToRequest a => Service -> a -> Request a Request.postQuery (Service -> Service overrides Service defaultService) response :: forall (m :: * -> *). MonadResource m => (ByteStringLazy -> IO ByteStringLazy) -> Service -> Proxy UpdateStackSet -> ClientResponse ClientBody -> m (Either Error (ClientResponse (AWSResponse UpdateStackSet))) response = forall (m :: * -> *) a. MonadResource m => Text -> (Int -> ResponseHeaders -> [Node] -> Either String (AWSResponse a)) -> (ByteStringLazy -> IO ByteStringLazy) -> Service -> Proxy a -> ClientResponse ClientBody -> m (Either Error (ClientResponse (AWSResponse a))) Response.receiveXMLWrapper Text "UpdateStackSetResult" ( \Int s ResponseHeaders h [Node] x -> Maybe Text -> Int -> UpdateStackSetResponse UpdateStackSetResponse' forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b Prelude.<$> ([Node] x forall a. FromXML a => [Node] -> Text -> Either String (Maybe a) Data..@? Text "OperationId") 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 UpdateStackSet where hashWithSalt :: Int -> UpdateStackSet -> Int hashWithSalt Int _salt UpdateStackSet' {Maybe Bool Maybe [Text] Maybe [Capability] Maybe [Parameter] Maybe [Tag] Maybe Text Maybe AutoDeployment Maybe CallAs Maybe DeploymentTargets Maybe ManagedExecution Maybe PermissionModels Maybe StackSetOperationPreferences Text stackSetName :: Text usePreviousTemplate :: Maybe Bool templateURL :: Maybe Text templateBody :: Maybe Text tags :: Maybe [Tag] regions :: Maybe [Text] permissionModel :: Maybe PermissionModels parameters :: Maybe [Parameter] operationPreferences :: Maybe StackSetOperationPreferences operationId :: Maybe Text managedExecution :: Maybe ManagedExecution executionRoleName :: Maybe Text description :: Maybe Text deploymentTargets :: Maybe DeploymentTargets capabilities :: Maybe [Capability] callAs :: Maybe CallAs autoDeployment :: Maybe AutoDeployment administrationRoleARN :: Maybe Text accounts :: Maybe [Text] $sel:stackSetName:UpdateStackSet' :: UpdateStackSet -> Text $sel:usePreviousTemplate:UpdateStackSet' :: UpdateStackSet -> Maybe Bool $sel:templateURL:UpdateStackSet' :: UpdateStackSet -> Maybe Text $sel:templateBody:UpdateStackSet' :: UpdateStackSet -> Maybe Text $sel:tags:UpdateStackSet' :: UpdateStackSet -> Maybe [Tag] $sel:regions:UpdateStackSet' :: UpdateStackSet -> Maybe [Text] $sel:permissionModel:UpdateStackSet' :: UpdateStackSet -> Maybe PermissionModels $sel:parameters:UpdateStackSet' :: UpdateStackSet -> Maybe [Parameter] $sel:operationPreferences:UpdateStackSet' :: UpdateStackSet -> Maybe StackSetOperationPreferences $sel:operationId:UpdateStackSet' :: UpdateStackSet -> Maybe Text $sel:managedExecution:UpdateStackSet' :: UpdateStackSet -> Maybe ManagedExecution $sel:executionRoleName:UpdateStackSet' :: UpdateStackSet -> Maybe Text $sel:description:UpdateStackSet' :: UpdateStackSet -> Maybe Text $sel:deploymentTargets:UpdateStackSet' :: UpdateStackSet -> Maybe DeploymentTargets $sel:capabilities:UpdateStackSet' :: UpdateStackSet -> Maybe [Capability] $sel:callAs:UpdateStackSet' :: UpdateStackSet -> Maybe CallAs $sel:autoDeployment:UpdateStackSet' :: UpdateStackSet -> Maybe AutoDeployment $sel:administrationRoleARN:UpdateStackSet' :: UpdateStackSet -> Maybe Text $sel:accounts:UpdateStackSet' :: UpdateStackSet -> Maybe [Text] ..} = Int _salt forall a. Hashable a => Int -> a -> Int `Prelude.hashWithSalt` Maybe [Text] accounts forall a. Hashable a => Int -> a -> Int `Prelude.hashWithSalt` Maybe Text administrationRoleARN forall a. Hashable a => Int -> a -> Int `Prelude.hashWithSalt` Maybe AutoDeployment autoDeployment forall a. Hashable a => Int -> a -> Int `Prelude.hashWithSalt` Maybe CallAs callAs forall a. Hashable a => Int -> a -> Int `Prelude.hashWithSalt` Maybe [Capability] capabilities forall a. Hashable a => Int -> a -> Int `Prelude.hashWithSalt` Maybe DeploymentTargets deploymentTargets forall a. Hashable a => Int -> a -> Int `Prelude.hashWithSalt` Maybe Text description forall a. Hashable a => Int -> a -> Int `Prelude.hashWithSalt` Maybe Text executionRoleName forall a. Hashable a => Int -> a -> Int `Prelude.hashWithSalt` Maybe ManagedExecution managedExecution forall a. Hashable a => Int -> a -> Int `Prelude.hashWithSalt` Maybe Text operationId forall a. Hashable a => Int -> a -> Int `Prelude.hashWithSalt` Maybe StackSetOperationPreferences operationPreferences forall a. Hashable a => Int -> a -> Int `Prelude.hashWithSalt` Maybe [Parameter] parameters forall a. Hashable a => Int -> a -> Int `Prelude.hashWithSalt` Maybe PermissionModels permissionModel forall a. Hashable a => Int -> a -> Int `Prelude.hashWithSalt` Maybe [Text] regions forall a. Hashable a => Int -> a -> Int `Prelude.hashWithSalt` Maybe [Tag] tags forall a. Hashable a => Int -> a -> Int `Prelude.hashWithSalt` Maybe Text templateBody forall a. Hashable a => Int -> a -> Int `Prelude.hashWithSalt` Maybe Text templateURL forall a. Hashable a => Int -> a -> Int `Prelude.hashWithSalt` Maybe Bool usePreviousTemplate forall a. Hashable a => Int -> a -> Int `Prelude.hashWithSalt` Text stackSetName instance Prelude.NFData UpdateStackSet where rnf :: UpdateStackSet -> () rnf UpdateStackSet' {Maybe Bool Maybe [Text] Maybe [Capability] Maybe [Parameter] Maybe [Tag] Maybe Text Maybe AutoDeployment Maybe CallAs Maybe DeploymentTargets Maybe ManagedExecution Maybe PermissionModels Maybe StackSetOperationPreferences Text stackSetName :: Text usePreviousTemplate :: Maybe Bool templateURL :: Maybe Text templateBody :: Maybe Text tags :: Maybe [Tag] regions :: Maybe [Text] permissionModel :: Maybe PermissionModels parameters :: Maybe [Parameter] operationPreferences :: Maybe StackSetOperationPreferences operationId :: Maybe Text managedExecution :: Maybe ManagedExecution executionRoleName :: Maybe Text description :: Maybe Text deploymentTargets :: Maybe DeploymentTargets capabilities :: Maybe [Capability] callAs :: Maybe CallAs autoDeployment :: Maybe AutoDeployment administrationRoleARN :: Maybe Text accounts :: Maybe [Text] $sel:stackSetName:UpdateStackSet' :: UpdateStackSet -> Text $sel:usePreviousTemplate:UpdateStackSet' :: UpdateStackSet -> Maybe Bool $sel:templateURL:UpdateStackSet' :: UpdateStackSet -> Maybe Text $sel:templateBody:UpdateStackSet' :: UpdateStackSet -> Maybe Text $sel:tags:UpdateStackSet' :: UpdateStackSet -> Maybe [Tag] $sel:regions:UpdateStackSet' :: UpdateStackSet -> Maybe [Text] $sel:permissionModel:UpdateStackSet' :: UpdateStackSet -> Maybe PermissionModels $sel:parameters:UpdateStackSet' :: UpdateStackSet -> Maybe [Parameter] $sel:operationPreferences:UpdateStackSet' :: UpdateStackSet -> Maybe StackSetOperationPreferences $sel:operationId:UpdateStackSet' :: UpdateStackSet -> Maybe Text $sel:managedExecution:UpdateStackSet' :: UpdateStackSet -> Maybe ManagedExecution $sel:executionRoleName:UpdateStackSet' :: UpdateStackSet -> Maybe Text $sel:description:UpdateStackSet' :: UpdateStackSet -> Maybe Text $sel:deploymentTargets:UpdateStackSet' :: UpdateStackSet -> Maybe DeploymentTargets $sel:capabilities:UpdateStackSet' :: UpdateStackSet -> Maybe [Capability] $sel:callAs:UpdateStackSet' :: UpdateStackSet -> Maybe CallAs $sel:autoDeployment:UpdateStackSet' :: UpdateStackSet -> Maybe AutoDeployment $sel:administrationRoleARN:UpdateStackSet' :: UpdateStackSet -> Maybe Text $sel:accounts:UpdateStackSet' :: UpdateStackSet -> Maybe [Text] ..} = forall a. NFData a => a -> () Prelude.rnf Maybe [Text] accounts seq :: forall a b. a -> b -> b `Prelude.seq` forall a. NFData a => a -> () Prelude.rnf Maybe Text administrationRoleARN seq :: forall a b. a -> b -> b `Prelude.seq` forall a. NFData a => a -> () Prelude.rnf Maybe AutoDeployment autoDeployment seq :: forall a b. a -> b -> b `Prelude.seq` forall a. NFData a => a -> () Prelude.rnf Maybe CallAs callAs seq :: forall a b. a -> b -> b `Prelude.seq` forall a. NFData a => a -> () Prelude.rnf Maybe [Capability] capabilities seq :: forall a b. a -> b -> b `Prelude.seq` forall a. NFData a => a -> () Prelude.rnf Maybe DeploymentTargets deploymentTargets seq :: forall a b. a -> b -> b `Prelude.seq` forall a. NFData a => a -> () Prelude.rnf Maybe Text description seq :: forall a b. a -> b -> b `Prelude.seq` forall a. NFData a => a -> () Prelude.rnf Maybe Text executionRoleName seq :: forall a b. a -> b -> b `Prelude.seq` forall a. NFData a => a -> () Prelude.rnf Maybe ManagedExecution managedExecution seq :: forall a b. a -> b -> b `Prelude.seq` forall a. NFData a => a -> () Prelude.rnf Maybe Text operationId seq :: forall a b. a -> b -> b `Prelude.seq` forall a. NFData a => a -> () Prelude.rnf Maybe StackSetOperationPreferences operationPreferences seq :: forall a b. a -> b -> b `Prelude.seq` forall a. NFData a => a -> () Prelude.rnf Maybe [Parameter] parameters seq :: forall a b. a -> b -> b `Prelude.seq` forall a. NFData a => a -> () Prelude.rnf Maybe PermissionModels permissionModel seq :: forall a b. a -> b -> b `Prelude.seq` forall a. NFData a => a -> () Prelude.rnf Maybe [Text] regions seq :: forall a b. a -> b -> b `Prelude.seq` forall a. NFData a => a -> () Prelude.rnf Maybe [Tag] tags seq :: forall a b. a -> b -> b `Prelude.seq` forall a. NFData a => a -> () Prelude.rnf Maybe Text templateBody 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 Maybe Bool usePreviousTemplate seq :: forall a b. a -> b -> b `Prelude.seq` forall a. NFData a => a -> () Prelude.rnf Text stackSetName instance Data.ToHeaders UpdateStackSet where toHeaders :: UpdateStackSet -> ResponseHeaders toHeaders = forall a b. a -> b -> a Prelude.const forall a. Monoid a => a Prelude.mempty instance Data.ToPath UpdateStackSet where toPath :: UpdateStackSet -> ByteString toPath = forall a b. a -> b -> a Prelude.const ByteString "/" instance Data.ToQuery UpdateStackSet where toQuery :: UpdateStackSet -> QueryString toQuery UpdateStackSet' {Maybe Bool Maybe [Text] Maybe [Capability] Maybe [Parameter] Maybe [Tag] Maybe Text Maybe AutoDeployment Maybe CallAs Maybe DeploymentTargets Maybe ManagedExecution Maybe PermissionModels Maybe StackSetOperationPreferences Text stackSetName :: Text usePreviousTemplate :: Maybe Bool templateURL :: Maybe Text templateBody :: Maybe Text tags :: Maybe [Tag] regions :: Maybe [Text] permissionModel :: Maybe PermissionModels parameters :: Maybe [Parameter] operationPreferences :: Maybe StackSetOperationPreferences operationId :: Maybe Text managedExecution :: Maybe ManagedExecution executionRoleName :: Maybe Text description :: Maybe Text deploymentTargets :: Maybe DeploymentTargets capabilities :: Maybe [Capability] callAs :: Maybe CallAs autoDeployment :: Maybe AutoDeployment administrationRoleARN :: Maybe Text accounts :: Maybe [Text] $sel:stackSetName:UpdateStackSet' :: UpdateStackSet -> Text $sel:usePreviousTemplate:UpdateStackSet' :: UpdateStackSet -> Maybe Bool $sel:templateURL:UpdateStackSet' :: UpdateStackSet -> Maybe Text $sel:templateBody:UpdateStackSet' :: UpdateStackSet -> Maybe Text $sel:tags:UpdateStackSet' :: UpdateStackSet -> Maybe [Tag] $sel:regions:UpdateStackSet' :: UpdateStackSet -> Maybe [Text] $sel:permissionModel:UpdateStackSet' :: UpdateStackSet -> Maybe PermissionModels $sel:parameters:UpdateStackSet' :: UpdateStackSet -> Maybe [Parameter] $sel:operationPreferences:UpdateStackSet' :: UpdateStackSet -> Maybe StackSetOperationPreferences $sel:operationId:UpdateStackSet' :: UpdateStackSet -> Maybe Text $sel:managedExecution:UpdateStackSet' :: UpdateStackSet -> Maybe ManagedExecution $sel:executionRoleName:UpdateStackSet' :: UpdateStackSet -> Maybe Text $sel:description:UpdateStackSet' :: UpdateStackSet -> Maybe Text $sel:deploymentTargets:UpdateStackSet' :: UpdateStackSet -> Maybe DeploymentTargets $sel:capabilities:UpdateStackSet' :: UpdateStackSet -> Maybe [Capability] $sel:callAs:UpdateStackSet' :: UpdateStackSet -> Maybe CallAs $sel:autoDeployment:UpdateStackSet' :: UpdateStackSet -> Maybe AutoDeployment $sel:administrationRoleARN:UpdateStackSet' :: UpdateStackSet -> Maybe Text $sel:accounts:UpdateStackSet' :: UpdateStackSet -> Maybe [Text] ..} = forall a. Monoid a => [a] -> a Prelude.mconcat [ ByteString "Action" forall a. ToQuery a => ByteString -> a -> QueryString Data.=: (ByteString "UpdateStackSet" :: Prelude.ByteString), ByteString "Version" forall a. ToQuery a => ByteString -> a -> QueryString Data.=: (ByteString "2010-05-15" :: Prelude.ByteString), ByteString "Accounts" forall a. ToQuery a => ByteString -> a -> QueryString Data.=: forall a. ToQuery a => a -> QueryString Data.toQuery (forall a. (IsList a, ToQuery (Item a)) => ByteString -> a -> QueryString Data.toQueryList ByteString "member" forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b Prelude.<$> Maybe [Text] accounts), ByteString "AdministrationRoleARN" forall a. ToQuery a => ByteString -> a -> QueryString Data.=: Maybe Text administrationRoleARN, ByteString "AutoDeployment" forall a. ToQuery a => ByteString -> a -> QueryString Data.=: Maybe AutoDeployment autoDeployment, ByteString "CallAs" forall a. ToQuery a => ByteString -> a -> QueryString Data.=: Maybe CallAs callAs, ByteString "Capabilities" forall a. ToQuery a => ByteString -> a -> QueryString Data.=: forall a. ToQuery a => a -> QueryString Data.toQuery (forall a. (IsList a, ToQuery (Item a)) => ByteString -> a -> QueryString Data.toQueryList ByteString "member" forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b Prelude.<$> Maybe [Capability] capabilities), ByteString "DeploymentTargets" forall a. ToQuery a => ByteString -> a -> QueryString Data.=: Maybe DeploymentTargets deploymentTargets, ByteString "Description" forall a. ToQuery a => ByteString -> a -> QueryString Data.=: Maybe Text description, ByteString "ExecutionRoleName" forall a. ToQuery a => ByteString -> a -> QueryString Data.=: Maybe Text executionRoleName, ByteString "ManagedExecution" forall a. ToQuery a => ByteString -> a -> QueryString Data.=: Maybe ManagedExecution managedExecution, ByteString "OperationId" forall a. ToQuery a => ByteString -> a -> QueryString Data.=: Maybe Text operationId, ByteString "OperationPreferences" forall a. ToQuery a => ByteString -> a -> QueryString Data.=: Maybe StackSetOperationPreferences operationPreferences, ByteString "Parameters" forall a. ToQuery a => ByteString -> a -> QueryString Data.=: forall a. ToQuery a => a -> QueryString Data.toQuery (forall a. (IsList a, ToQuery (Item a)) => ByteString -> a -> QueryString Data.toQueryList ByteString "member" forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b Prelude.<$> Maybe [Parameter] parameters), ByteString "PermissionModel" forall a. ToQuery a => ByteString -> a -> QueryString Data.=: Maybe PermissionModels permissionModel, ByteString "Regions" forall a. ToQuery a => ByteString -> a -> QueryString Data.=: forall a. ToQuery a => a -> QueryString Data.toQuery (forall a. (IsList a, ToQuery (Item a)) => ByteString -> a -> QueryString Data.toQueryList ByteString "member" forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b Prelude.<$> Maybe [Text] regions), ByteString "Tags" forall a. ToQuery a => ByteString -> a -> QueryString Data.=: forall a. ToQuery a => a -> QueryString Data.toQuery (forall a. (IsList a, ToQuery (Item a)) => ByteString -> a -> QueryString Data.toQueryList ByteString "member" forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b Prelude.<$> Maybe [Tag] tags), ByteString "TemplateBody" forall a. ToQuery a => ByteString -> a -> QueryString Data.=: Maybe Text templateBody, ByteString "TemplateURL" forall a. ToQuery a => ByteString -> a -> QueryString Data.=: Maybe Text templateURL, ByteString "UsePreviousTemplate" forall a. ToQuery a => ByteString -> a -> QueryString Data.=: Maybe Bool usePreviousTemplate, ByteString "StackSetName" forall a. ToQuery a => ByteString -> a -> QueryString Data.=: Text stackSetName ] -- | /See:/ 'newUpdateStackSetResponse' smart constructor. data UpdateStackSetResponse = UpdateStackSetResponse' { -- | The unique ID for this stack set operation. UpdateStackSetResponse -> Maybe Text operationId :: Prelude.Maybe Prelude.Text, -- | The response's http status code. UpdateStackSetResponse -> Int httpStatus :: Prelude.Int } deriving (UpdateStackSetResponse -> UpdateStackSetResponse -> Bool forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a /= :: UpdateStackSetResponse -> UpdateStackSetResponse -> Bool $c/= :: UpdateStackSetResponse -> UpdateStackSetResponse -> Bool == :: UpdateStackSetResponse -> UpdateStackSetResponse -> Bool $c== :: UpdateStackSetResponse -> UpdateStackSetResponse -> Bool Prelude.Eq, ReadPrec [UpdateStackSetResponse] ReadPrec UpdateStackSetResponse Int -> ReadS UpdateStackSetResponse ReadS [UpdateStackSetResponse] forall a. (Int -> ReadS a) -> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a readListPrec :: ReadPrec [UpdateStackSetResponse] $creadListPrec :: ReadPrec [UpdateStackSetResponse] readPrec :: ReadPrec UpdateStackSetResponse $creadPrec :: ReadPrec UpdateStackSetResponse readList :: ReadS [UpdateStackSetResponse] $creadList :: ReadS [UpdateStackSetResponse] readsPrec :: Int -> ReadS UpdateStackSetResponse $creadsPrec :: Int -> ReadS UpdateStackSetResponse Prelude.Read, Int -> UpdateStackSetResponse -> ShowS [UpdateStackSetResponse] -> ShowS UpdateStackSetResponse -> String forall a. (Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a showList :: [UpdateStackSetResponse] -> ShowS $cshowList :: [UpdateStackSetResponse] -> ShowS show :: UpdateStackSetResponse -> String $cshow :: UpdateStackSetResponse -> String showsPrec :: Int -> UpdateStackSetResponse -> ShowS $cshowsPrec :: Int -> UpdateStackSetResponse -> ShowS Prelude.Show, forall x. Rep UpdateStackSetResponse x -> UpdateStackSetResponse forall x. UpdateStackSetResponse -> Rep UpdateStackSetResponse x forall a. (forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a $cto :: forall x. Rep UpdateStackSetResponse x -> UpdateStackSetResponse $cfrom :: forall x. UpdateStackSetResponse -> Rep UpdateStackSetResponse x Prelude.Generic) -- | -- Create a value of 'UpdateStackSetResponse' with all optional fields omitted. -- -- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields. -- -- The following record fields are available, with the corresponding lenses provided -- for backwards compatibility: -- -- 'operationId', 'updateStackSetResponse_operationId' - The unique ID for this stack set operation. -- -- 'httpStatus', 'updateStackSetResponse_httpStatus' - The response's http status code. newUpdateStackSetResponse :: -- | 'httpStatus' Prelude.Int -> UpdateStackSetResponse newUpdateStackSetResponse :: Int -> UpdateStackSetResponse newUpdateStackSetResponse Int pHttpStatus_ = UpdateStackSetResponse' { $sel:operationId:UpdateStackSetResponse' :: Maybe Text operationId = forall a. Maybe a Prelude.Nothing, $sel:httpStatus:UpdateStackSetResponse' :: Int httpStatus = Int pHttpStatus_ } -- | The unique ID for this stack set operation. updateStackSetResponse_operationId :: Lens.Lens' UpdateStackSetResponse (Prelude.Maybe Prelude.Text) updateStackSetResponse_operationId :: Lens' UpdateStackSetResponse (Maybe Text) updateStackSetResponse_operationId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b Lens.lens (\UpdateStackSetResponse' {Maybe Text operationId :: Maybe Text $sel:operationId:UpdateStackSetResponse' :: UpdateStackSetResponse -> Maybe Text operationId} -> Maybe Text operationId) (\s :: UpdateStackSetResponse s@UpdateStackSetResponse' {} Maybe Text a -> UpdateStackSetResponse s {$sel:operationId:UpdateStackSetResponse' :: Maybe Text operationId = Maybe Text a} :: UpdateStackSetResponse) -- | The response's http status code. updateStackSetResponse_httpStatus :: Lens.Lens' UpdateStackSetResponse Prelude.Int updateStackSetResponse_httpStatus :: Lens' UpdateStackSetResponse Int updateStackSetResponse_httpStatus = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b Lens.lens (\UpdateStackSetResponse' {Int httpStatus :: Int $sel:httpStatus:UpdateStackSetResponse' :: UpdateStackSetResponse -> Int httpStatus} -> Int httpStatus) (\s :: UpdateStackSetResponse s@UpdateStackSetResponse' {} Int a -> UpdateStackSetResponse s {$sel:httpStatus:UpdateStackSetResponse' :: Int httpStatus = Int a} :: UpdateStackSetResponse) instance Prelude.NFData UpdateStackSetResponse where rnf :: UpdateStackSetResponse -> () rnf UpdateStackSetResponse' {Int Maybe Text httpStatus :: Int operationId :: Maybe Text $sel:httpStatus:UpdateStackSetResponse' :: UpdateStackSetResponse -> Int $sel:operationId:UpdateStackSetResponse' :: UpdateStackSetResponse -> Maybe Text ..} = forall a. NFData a => a -> () Prelude.rnf Maybe Text operationId seq :: forall a b. a -> b -> b `Prelude.seq` forall a. NFData a => a -> () Prelude.rnf Int httpStatus