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.UpdateTerminationProtection

Description

Updates termination protection for the specified stack. If a user attempts to delete a stack with termination protection enabled, the operation fails and the stack remains unchanged. For more information, see Protecting a Stack From Being Deleted in the CloudFormation User Guide.

For nested stacks, termination protection is set on the root stack and can't be changed directly on the nested stack.

Synopsis

Creating a Request

data UpdateTerminationProtection Source #

See: newUpdateTerminationProtection smart constructor.

Constructors

UpdateTerminationProtection' 

Fields

Instances

Instances details
ToHeaders UpdateTerminationProtection Source # 
Instance details

Defined in Amazonka.CloudFormation.UpdateTerminationProtection

ToPath UpdateTerminationProtection Source # 
Instance details

Defined in Amazonka.CloudFormation.UpdateTerminationProtection

ToQuery UpdateTerminationProtection Source # 
Instance details

Defined in Amazonka.CloudFormation.UpdateTerminationProtection

AWSRequest UpdateTerminationProtection Source # 
Instance details

Defined in Amazonka.CloudFormation.UpdateTerminationProtection

Generic UpdateTerminationProtection Source # 
Instance details

Defined in Amazonka.CloudFormation.UpdateTerminationProtection

Associated Types

type Rep UpdateTerminationProtection :: Type -> Type #

Read UpdateTerminationProtection Source # 
Instance details

Defined in Amazonka.CloudFormation.UpdateTerminationProtection

Show UpdateTerminationProtection Source # 
Instance details

Defined in Amazonka.CloudFormation.UpdateTerminationProtection

NFData UpdateTerminationProtection Source # 
Instance details

Defined in Amazonka.CloudFormation.UpdateTerminationProtection

Eq UpdateTerminationProtection Source # 
Instance details

Defined in Amazonka.CloudFormation.UpdateTerminationProtection

Hashable UpdateTerminationProtection Source # 
Instance details

Defined in Amazonka.CloudFormation.UpdateTerminationProtection

type AWSResponse UpdateTerminationProtection Source # 
Instance details

Defined in Amazonka.CloudFormation.UpdateTerminationProtection

type Rep UpdateTerminationProtection Source # 
Instance details

Defined in Amazonka.CloudFormation.UpdateTerminationProtection

type Rep UpdateTerminationProtection = D1 ('MetaData "UpdateTerminationProtection" "Amazonka.CloudFormation.UpdateTerminationProtection" "amazonka-cloudformation-2.0-2g2oPzedi5AcwbDRlNZfB" 'False) (C1 ('MetaCons "UpdateTerminationProtection'" 'PrefixI 'True) (S1 ('MetaSel ('Just "enableTerminationProtection") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Bool) :*: S1 ('MetaSel ('Just "stackName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))

newUpdateTerminationProtection Source #

Create a value of UpdateTerminationProtection 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:

UpdateTerminationProtection, updateTerminationProtection_enableTerminationProtection - Whether to enable termination protection on the specified stack.

UpdateTerminationProtection, updateTerminationProtection_stackName - The name or unique ID of the stack for which you want to set termination protection.

Request Lenses

updateTerminationProtection_enableTerminationProtection :: Lens' UpdateTerminationProtection Bool Source #

Whether to enable termination protection on the specified stack.

updateTerminationProtection_stackName :: Lens' UpdateTerminationProtection Text Source #

The name or unique ID of the stack for which you want to set termination protection.

Destructuring the Response

data UpdateTerminationProtectionResponse Source #

Constructors

UpdateTerminationProtectionResponse' 

Fields

Instances

Instances details
Generic UpdateTerminationProtectionResponse Source # 
Instance details

Defined in Amazonka.CloudFormation.UpdateTerminationProtection

Read UpdateTerminationProtectionResponse Source # 
Instance details

Defined in Amazonka.CloudFormation.UpdateTerminationProtection

Show UpdateTerminationProtectionResponse Source # 
Instance details

Defined in Amazonka.CloudFormation.UpdateTerminationProtection

NFData UpdateTerminationProtectionResponse Source # 
Instance details

Defined in Amazonka.CloudFormation.UpdateTerminationProtection

Eq UpdateTerminationProtectionResponse Source # 
Instance details

Defined in Amazonka.CloudFormation.UpdateTerminationProtection

type Rep UpdateTerminationProtectionResponse Source # 
Instance details

Defined in Amazonka.CloudFormation.UpdateTerminationProtection

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

newUpdateTerminationProtectionResponse Source #

Create a value of UpdateTerminationProtectionResponse 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:

UpdateTerminationProtectionResponse, updateTerminationProtectionResponse_stackId - The unique ID of the stack.

$sel:httpStatus:UpdateTerminationProtectionResponse', updateTerminationProtectionResponse_httpStatus - The response's http status code.

Response Lenses