libZSservicesZSamazonka-cloudformationZSamazonka-cloudformation
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

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 cannot be changed directly on the nested stack.

Synopsis

Creating a Request

data UpdateTerminationProtection Source #

See: newUpdateTerminationProtection smart constructor.

Constructors

UpdateTerminationProtection' 

Fields

Instances

Instances details
Eq UpdateTerminationProtection Source # 
Instance details

Defined in Amazonka.CloudFormation.UpdateTerminationProtection

Read UpdateTerminationProtection Source # 
Instance details

Defined in Amazonka.CloudFormation.UpdateTerminationProtection

Show 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 #

NFData UpdateTerminationProtection Source # 
Instance details

Defined in Amazonka.CloudFormation.UpdateTerminationProtection

Hashable UpdateTerminationProtection Source # 
Instance details

Defined in Amazonka.CloudFormation.UpdateTerminationProtection

AWSRequest UpdateTerminationProtection Source # 
Instance details

Defined in Amazonka.CloudFormation.UpdateTerminationProtection

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

type Rep UpdateTerminationProtection Source # 
Instance details

Defined in Amazonka.CloudFormation.UpdateTerminationProtection

type Rep UpdateTerminationProtection = D1 ('MetaData "UpdateTerminationProtection" "Amazonka.CloudFormation.UpdateTerminationProtection" "libZSservicesZSamazonka-cloudformationZSamazonka-cloudformation" 'False) (C1 ('MetaCons "UpdateTerminationProtection'" 'PrefixI 'True) (S1 ('MetaSel ('Just "enableTerminationProtection") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Bool) :*: S1 ('MetaSel ('Just "stackName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))
type AWSResponse UpdateTerminationProtection Source # 
Instance details

Defined in Amazonka.CloudFormation.UpdateTerminationProtection

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:

$sel:enableTerminationProtection:UpdateTerminationProtection', updateTerminationProtection_enableTerminationProtection - Whether to enable termination protection on the specified stack.

$sel:stackName: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
Eq 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

Generic UpdateTerminationProtectionResponse Source # 
Instance details

Defined in Amazonka.CloudFormation.UpdateTerminationProtection

NFData 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" "libZSservicesZSamazonka-cloudformationZSamazonka-cloudformation" '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:

$sel:stackId:UpdateTerminationProtectionResponse', updateTerminationProtectionResponse_stackId - The unique ID of the stack.

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

Response Lenses