Copyright | (c) 2013-2017 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 |
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 AWS CloudFormation User Guide .
For nested stacks , termination protection is set on the root stack and cannot be changed directly on the nested stack.
- updateTerminationProtection :: Bool -> Text -> UpdateTerminationProtection
- data UpdateTerminationProtection
- utpEnableTerminationProtection :: Lens' UpdateTerminationProtection Bool
- utpStackName :: Lens' UpdateTerminationProtection Text
- updateTerminationProtectionResponse :: Int -> UpdateTerminationProtectionResponse
- data UpdateTerminationProtectionResponse
- utprsStackId :: Lens' UpdateTerminationProtectionResponse (Maybe Text)
- utprsResponseStatus :: Lens' UpdateTerminationProtectionResponse Int
Creating a Request
updateTerminationProtection Source #
Creates a value of UpdateTerminationProtection
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
utpEnableTerminationProtection
- Whether to enable termination protection on the specified stack.utpStackName
- The name or unique ID of the stack for which you want to set termination protection.
data UpdateTerminationProtection Source #
See: updateTerminationProtection
smart constructor.
Request Lenses
utpEnableTerminationProtection :: Lens' UpdateTerminationProtection Bool Source #
Whether to enable termination protection on the specified stack.
utpStackName :: Lens' UpdateTerminationProtection Text Source #
The name or unique ID of the stack for which you want to set termination protection.
Destructuring the Response
updateTerminationProtectionResponse Source #
Creates a value of UpdateTerminationProtectionResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
utprsStackId
- The unique ID of the stack.utprsResponseStatus
- -- | The response status code.
data UpdateTerminationProtectionResponse Source #
See: updateTerminationProtectionResponse
smart constructor.
Response Lenses
utprsStackId :: Lens' UpdateTerminationProtectionResponse (Maybe Text) Source #
The unique ID of the stack.
utprsResponseStatus :: Lens' UpdateTerminationProtectionResponse Int Source #
- - | The response status code.