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 |
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 operation.
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:
RollbackStack
, rollbackStack_clientRequestToken
- A unique identifier for this RollbackStack
request.
RollbackStack
, rollbackStack_roleARN
- The Amazon Resource Name (ARN) of an Identity and Access Management role
that CloudFormation assumes to rollback the stack.
RollbackStack
, rollbackStack_stackName
- The name that's 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's 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:
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.