stop_deployment
(**kwargs)¶Attempts to stop an ongoing deployment.
See also: AWS API Documentation
Request Syntax
response = client.stop_deployment(
deploymentId='string',
autoRollbackEnabled=True|False
)
[REQUIRED]
The unique ID of a deployment.
dict
Response Syntax
{
'status': 'Pending'|'Succeeded',
'statusMessage': 'string'
}
Response Structure
(dict) --
Represents the output of a StopDeployment
operation.
status (string) --
The status of the stop deployment operation:
statusMessage (string) --
An accompanying status message.
Exceptions
CodeDeploy.Client.exceptions.DeploymentIdRequiredException
CodeDeploy.Client.exceptions.DeploymentDoesNotExistException
CodeDeploy.Client.exceptions.DeploymentGroupDoesNotExistException
CodeDeploy.Client.exceptions.DeploymentAlreadyCompletedException
CodeDeploy.Client.exceptions.InvalidDeploymentIdException
CodeDeploy.Client.exceptions.UnsupportedActionForDeploymentTypeException