stop_deployment
async
¶
stop_deployment(
deployment_id: DeploymentId,
*,
config_overrides: Optional[AsyncCodeDeployClientConfig] = None,
auto_rollback_enabled: Optional[NullableBoolean] = None,
) -> StopDeploymentOutput
Attempts to stop an ongoing deployment.
Parameters:
-
deployment_id(DeploymentId) –The unique ID of a deployment.
-
auto_rollback_enabled(Optional[NullableBoolean], default:None) –Indicates, when a deployment is stopped, whether instances that have been updated should be rolled back to the previous version of the application revision.
Raises:
-
DeploymentAlreadyCompletedException–The deployment is already complete.
-
DeploymentDoesNotExistException–The deployment with the user or Amazon Web Services account does not exist.
-
DeploymentGroupDoesNotExistException–The named deployment group with the user or Amazon Web Services account does not exist.
-
DeploymentIdRequiredException–At least one deployment ID must be specified.
-
InvalidDeploymentIdException–At least one of the deployment IDs was specified in an invalid format.
-
UnsupportedActionForDeploymentTypeException–A call was submitted that is not supported for the specified deployment type.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_codedeploy/_services/async_code_deploy.py
3531 3532 3533 3534 3535 3536 3537 3538 3539 3540 3541 3542 3543 3544 3545 3546 3547 3548 3549 3550 3551 3552 3553 3554 3555 3556 3557 3558 3559 3560 3561 3562 3563 3564 3565 3566 3567 3568 3569 3570 3571 3572 3573 3574 3575 3576 3577 3578 3579 3580 3581 3582 3583 3584 3585 3586 3587 3588 3589 3590 3591 3592 3593 3594 3595 3596 3597 3598 | |