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 |
When specifying RollbackStack
, you preserve the state of previously
provisioned resources when an operation fails. You can check the status
of the stack through the DescribeStacks API.
Rolls back the specified stack to the last known stable state from
CREATE_FAILED
or UPDATE_FAILED
stack statuses.
This operation will delete a stack if it doesn't contain a last known
stable state. A last known stable state includes any status in a
*_COMPLETE
. This includes the following stack statuses.
CREATE_COMPLETE
UPDATE_COMPLETE
UPDATE_ROLLBACK_COMPLETE
IMPORT_COMPLETE
IMPORT_ROLLBACK_COMPLETE
Synopsis
- data RollbackStack = RollbackStack' {}
- newRollbackStack :: Text -> RollbackStack
- rollbackStack_clientRequestToken :: Lens' RollbackStack (Maybe Text)
- rollbackStack_roleARN :: Lens' RollbackStack (Maybe Text)
- rollbackStack_stackName :: Lens' RollbackStack Text
- data RollbackStackResponse = RollbackStackResponse' {
- stackId :: Maybe Text
- httpStatus :: Int
- newRollbackStackResponse :: Int -> RollbackStackResponse
- rollbackStackResponse_stackId :: Lens' RollbackStackResponse (Maybe Text)
- rollbackStackResponse_httpStatus :: Lens' RollbackStackResponse Int
Creating a Request
data RollbackStack Source #
See: newRollbackStack
smart constructor.
Instances
Create a value of RollbackStack
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:clientRequestToken:RollbackStack'
, rollbackStack_clientRequestToken
- A unique identifier for this RollbackStack
request.
$sel:roleARN:RollbackStack'
, rollbackStack_roleARN
- The Amazon Resource Name (ARN) of an Identity and Access Management role
that CloudFormation assumes to rollback the stack.
$sel:stackName:RollbackStack'
, rollbackStack_stackName
- The name that is associated with the stack.
Request Lenses
rollbackStack_clientRequestToken :: Lens' RollbackStack (Maybe Text) Source #
A unique identifier for this RollbackStack
request.
rollbackStack_roleARN :: Lens' RollbackStack (Maybe Text) Source #
The Amazon Resource Name (ARN) of an Identity and Access Management role that CloudFormation assumes to rollback the stack.
rollbackStack_stackName :: Lens' RollbackStack Text Source #
The name that is associated with the stack.
Destructuring the Response
data RollbackStackResponse Source #
See: newRollbackStackResponse
smart constructor.
RollbackStackResponse' | |
|
Instances
newRollbackStackResponse Source #
Create a value of RollbackStackResponse
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:RollbackStackResponse'
, rollbackStackResponse_stackId
- Unique identifier of the stack.
$sel:httpStatus:RollbackStackResponse'
, rollbackStackResponse_httpStatus
- The response's http status code.
Response Lenses
rollbackStackResponse_stackId :: Lens' RollbackStackResponse (Maybe Text) Source #
Unique identifier of the stack.
rollbackStackResponse_httpStatus :: Lens' RollbackStackResponse Int Source #
The response's http status code.