Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
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
- 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.
UpdateTerminationProtection' | |
|
Instances
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 #
See: newUpdateTerminationProtectionResponse
smart constructor.
UpdateTerminationProtectionResponse' | |
|
Instances
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
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.