amazonka-cloudformation-2.0: Amazon CloudFormation SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.CloudFormation.DeleteStackInstances

Description

Deletes stack instances for the specified accounts, in the specified Amazon Web Services Regions.

Synopsis

Creating a Request

data DeleteStackInstances Source #

See: newDeleteStackInstances smart constructor.

Constructors

DeleteStackInstances' 

Fields

  • accounts :: Maybe [Text]
    Self-managed permissions
    The names of the Amazon Web Services accounts that you want to delete stack instances for.

    You can specify Accounts or DeploymentTargets, but not both.

  • callAs :: Maybe 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 Register a delegated administrator in the CloudFormation User Guide.

  • deploymentTargets :: Maybe DeploymentTargets
    Service-managed permissions
    The Organizations accounts from which to delete stack instances.

    You can specify Accounts or DeploymentTargets, but not both.

  • operationId :: Maybe Text

    The unique identifier for this stack set operation.

    If you don't specify an operation ID, the SDK generates one automatically.

    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 can retry stack set operation requests to ensure that CloudFormation successfully received them.

    Repeating this stack set operation with a new operation ID retries all stack instances whose status is OUTDATED.

  • operationPreferences :: Maybe StackSetOperationPreferences

    Preferences for how CloudFormation performs this stack set operation.

  • stackSetName :: Text

    The name or unique ID of the stack set that you want to delete stack instances for.

  • regions :: [Text]

    The Amazon Web Services Regions where you want to delete stack set instances.

  • retainStacks :: Bool

    Removes the stack instances from the specified stack set, but doesn't delete the stacks. You can't reassociate a retained stack or add an existing, saved stack to a new stack set.

    For more information, see Stack set operation options.

Instances

Instances details
ToHeaders DeleteStackInstances Source # 
Instance details

Defined in Amazonka.CloudFormation.DeleteStackInstances

ToPath DeleteStackInstances Source # 
Instance details

Defined in Amazonka.CloudFormation.DeleteStackInstances

ToQuery DeleteStackInstances Source # 
Instance details

Defined in Amazonka.CloudFormation.DeleteStackInstances

AWSRequest DeleteStackInstances Source # 
Instance details

Defined in Amazonka.CloudFormation.DeleteStackInstances

Associated Types

type AWSResponse DeleteStackInstances #

Generic DeleteStackInstances Source # 
Instance details

Defined in Amazonka.CloudFormation.DeleteStackInstances

Associated Types

type Rep DeleteStackInstances :: Type -> Type #

Read DeleteStackInstances Source # 
Instance details

Defined in Amazonka.CloudFormation.DeleteStackInstances

Show DeleteStackInstances Source # 
Instance details

Defined in Amazonka.CloudFormation.DeleteStackInstances

NFData DeleteStackInstances Source # 
Instance details

Defined in Amazonka.CloudFormation.DeleteStackInstances

Methods

rnf :: DeleteStackInstances -> () #

Eq DeleteStackInstances Source # 
Instance details

Defined in Amazonka.CloudFormation.DeleteStackInstances

Hashable DeleteStackInstances Source # 
Instance details

Defined in Amazonka.CloudFormation.DeleteStackInstances

type AWSResponse DeleteStackInstances Source # 
Instance details

Defined in Amazonka.CloudFormation.DeleteStackInstances

type Rep DeleteStackInstances Source # 
Instance details

Defined in Amazonka.CloudFormation.DeleteStackInstances

type Rep DeleteStackInstances = D1 ('MetaData "DeleteStackInstances" "Amazonka.CloudFormation.DeleteStackInstances" "amazonka-cloudformation-2.0-2g2oPzedi5AcwbDRlNZfB" 'False) (C1 ('MetaCons "DeleteStackInstances'" 'PrefixI 'True) (((S1 ('MetaSel ('Just "accounts") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Text])) :*: S1 ('MetaSel ('Just "callAs") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe CallAs))) :*: (S1 ('MetaSel ('Just "deploymentTargets") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe DeploymentTargets)) :*: S1 ('MetaSel ('Just "operationId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))) :*: ((S1 ('MetaSel ('Just "operationPreferences") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe StackSetOperationPreferences)) :*: S1 ('MetaSel ('Just "stackSetName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)) :*: (S1 ('MetaSel ('Just "regions") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [Text]) :*: S1 ('MetaSel ('Just "retainStacks") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Bool)))))

newDeleteStackInstances Source #

Create a value of DeleteStackInstances with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

DeleteStackInstances, deleteStackInstances_accounts - [Self-managed permissions] The names of the Amazon Web Services accounts that you want to delete stack instances for.

You can specify Accounts or DeploymentTargets, but not both.

$sel:callAs:DeleteStackInstances', deleteStackInstances_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 Register a delegated administrator in the CloudFormation User Guide.

DeleteStackInstances, deleteStackInstances_deploymentTargets - [Service-managed permissions] The Organizations accounts from which to delete stack instances.

You can specify Accounts or DeploymentTargets, but not both.

DeleteStackInstances, deleteStackInstances_operationId - The unique identifier for this stack set operation.

If you don't specify an operation ID, the SDK generates one automatically.

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 can retry stack set operation requests to ensure that CloudFormation successfully received them.

Repeating this stack set operation with a new operation ID retries all stack instances whose status is OUTDATED.

DeleteStackInstances, deleteStackInstances_operationPreferences - Preferences for how CloudFormation performs this stack set operation.

DeleteStackInstances, deleteStackInstances_stackSetName - The name or unique ID of the stack set that you want to delete stack instances for.

$sel:regions:DeleteStackInstances', deleteStackInstances_regions - The Amazon Web Services Regions where you want to delete stack set instances.

DeleteStackInstances, deleteStackInstances_retainStacks - Removes the stack instances from the specified stack set, but doesn't delete the stacks. You can't reassociate a retained stack or add an existing, saved stack to a new stack set.

For more information, see Stack set operation options.

Request Lenses

deleteStackInstances_accounts :: Lens' DeleteStackInstances (Maybe [Text]) Source #

Self-managed permissions
The names of the Amazon Web Services accounts that you want to delete stack instances for.

You can specify Accounts or DeploymentTargets, but not both.

deleteStackInstances_callAs :: Lens' DeleteStackInstances (Maybe CallAs) Source #

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 Register a delegated administrator in the CloudFormation User Guide.

deleteStackInstances_deploymentTargets :: Lens' DeleteStackInstances (Maybe DeploymentTargets) Source #

Service-managed permissions
The Organizations accounts from which to delete stack instances.

You can specify Accounts or DeploymentTargets, but not both.

deleteStackInstances_operationId :: Lens' DeleteStackInstances (Maybe Text) Source #

The unique identifier for this stack set operation.

If you don't specify an operation ID, the SDK generates one automatically.

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 can retry stack set operation requests to ensure that CloudFormation successfully received them.

Repeating this stack set operation with a new operation ID retries all stack instances whose status is OUTDATED.

deleteStackInstances_operationPreferences :: Lens' DeleteStackInstances (Maybe StackSetOperationPreferences) Source #

Preferences for how CloudFormation performs this stack set operation.

deleteStackInstances_stackSetName :: Lens' DeleteStackInstances Text Source #

The name or unique ID of the stack set that you want to delete stack instances for.

deleteStackInstances_regions :: Lens' DeleteStackInstances [Text] Source #

The Amazon Web Services Regions where you want to delete stack set instances.

deleteStackInstances_retainStacks :: Lens' DeleteStackInstances Bool Source #

Removes the stack instances from the specified stack set, but doesn't delete the stacks. You can't reassociate a retained stack or add an existing, saved stack to a new stack set.

For more information, see Stack set operation options.

Destructuring the Response

data DeleteStackInstancesResponse Source #

See: newDeleteStackInstancesResponse smart constructor.

Constructors

DeleteStackInstancesResponse' 

Fields

Instances

Instances details
Generic DeleteStackInstancesResponse Source # 
Instance details

Defined in Amazonka.CloudFormation.DeleteStackInstances

Associated Types

type Rep DeleteStackInstancesResponse :: Type -> Type #

Read DeleteStackInstancesResponse Source # 
Instance details

Defined in Amazonka.CloudFormation.DeleteStackInstances

Show DeleteStackInstancesResponse Source # 
Instance details

Defined in Amazonka.CloudFormation.DeleteStackInstances

NFData DeleteStackInstancesResponse Source # 
Instance details

Defined in Amazonka.CloudFormation.DeleteStackInstances

Eq DeleteStackInstancesResponse Source # 
Instance details

Defined in Amazonka.CloudFormation.DeleteStackInstances

type Rep DeleteStackInstancesResponse Source # 
Instance details

Defined in Amazonka.CloudFormation.DeleteStackInstances

type Rep DeleteStackInstancesResponse = D1 ('MetaData "DeleteStackInstancesResponse" "Amazonka.CloudFormation.DeleteStackInstances" "amazonka-cloudformation-2.0-2g2oPzedi5AcwbDRlNZfB" 'False) (C1 ('MetaCons "DeleteStackInstancesResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "operationId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newDeleteStackInstancesResponse Source #

Create a value of DeleteStackInstancesResponse with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

DeleteStackInstances, deleteStackInstancesResponse_operationId - The unique identifier for this stack set operation.

$sel:httpStatus:DeleteStackInstancesResponse', deleteStackInstancesResponse_httpStatus - The response's http status code.

Response Lenses

deleteStackInstancesResponse_operationId :: Lens' DeleteStackInstancesResponse (Maybe Text) Source #

The unique identifier for this stack set operation.