| Copyright | (c) 2013-2021 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | None |
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
- data UpdateTerminationProtection = UpdateTerminationProtection' {}
- newUpdateTerminationProtection :: Bool -> Text -> UpdateTerminationProtection
- updateTerminationProtection_enableTerminationProtection :: Lens' UpdateTerminationProtection Bool
- updateTerminationProtection_stackName :: Lens' UpdateTerminationProtection Text
- data UpdateTerminationProtectionResponse = UpdateTerminationProtectionResponse' {
- stackId :: Maybe Text
- httpStatus :: Int
- newUpdateTerminationProtectionResponse :: Int -> UpdateTerminationProtectionResponse
- updateTerminationProtectionResponse_stackId :: Lens' UpdateTerminationProtectionResponse (Maybe Text)
- updateTerminationProtectionResponse_httpStatus :: Lens' UpdateTerminationProtectionResponse Int
Creating a Request
data UpdateTerminationProtection Source #
See: newUpdateTerminationProtection smart constructor.
Constructors
| UpdateTerminationProtection' | |
Fields
| |
Instances
newUpdateTerminationProtection Source #
Arguments
| :: Bool |
|
| -> Text | |
| -> UpdateTerminationProtection |
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 #
See: newUpdateTerminationProtectionResponse smart constructor.
Constructors
| UpdateTerminationProtectionResponse' | |
Fields
| |
Instances
newUpdateTerminationProtectionResponse Source #
Arguments
| :: Int | |
| -> UpdateTerminationProtectionResponse |
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
updateTerminationProtectionResponse_stackId :: Lens' UpdateTerminationProtectionResponse (Maybe Text) Source #
The unique ID of the stack.
updateTerminationProtectionResponse_httpStatus :: Lens' UpdateTerminationProtectionResponse Int Source #
The response's http status code.