rollback_stack
async
¶
rollback_stack(
*,
config_overrides: Optional[AsyncCloudFormationClientConfig] = None,
stack_name: Optional[StackNameOrId] = None,
role_arn: Optional[RoleARN] = None,
client_request_token: Optional[ClientRequestToken] = None,
retain_except_on_create: Optional[RetainExceptOnCreate] = None,
deployment_config: Optional[DeploymentConfig] = None,
) -> RollbackStackOutput
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
Parameters:
-
stack_name(Optional[StackNameOrId], default:None) –The name that's associated with the stack.
-
role_arn(Optional[RoleARN], default:None) –The Amazon Resource Name (ARN) of an IAM role that CloudFormation assumes to rollback the stack.
-
client_request_token(Optional[ClientRequestToken], default:None) –A unique identifier for this
RollbackStackrequest. -
retain_except_on_create(Optional[RetainExceptOnCreate], default:None) –When set to
true, newly created resources are deleted when the operation rolls back. This includes newly created resources marked with a deletion policy ofRetain.Default:
false -
deployment_config(Optional[DeploymentConfig], default:None) –The deployment configuration for this stack operation, including the deployment mode.
Raises:
-
TokenAlreadyExistsException–A client request token already exists.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_cloudformation/_services/async_cloud_formation.py
6133 6134 6135 6136 6137 6138 6139 6140 6141 6142 6143 6144 6145 6146 6147 6148 6149 6150 6151 6152 6153 6154 6155 6156 6157 6158 6159 6160 6161 6162 6163 6164 6165 6166 6167 6168 6169 6170 6171 6172 6173 6174 6175 6176 6177 6178 6179 6180 6181 6182 6183 6184 6185 6186 6187 6188 6189 6190 6191 6192 6193 6194 6195 6196 6197 6198 6199 6200 6201 | |