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
6223 6224 6225 6226 6227 6228 6229 6230 6231 6232 6233 6234 6235 6236 6237 6238 6239 6240 6241 6242 6243 6244 6245 6246 6247 6248 6249 6250 6251 6252 6253 6254 6255 6256 6257 6258 6259 6260 6261 6262 6263 6264 6265 6266 6267 6268 6269 6270 6271 6272 6273 6274 6275 6276 6277 6278 6279 6280 6281 6282 6283 6284 6285 6286 6287 6288 6289 6290 6291 | |