cancel_service_pipeline_deployment
(**kwargs)¶Attempts to cancel a service pipeline deployment on an UpdateServicePipeline action, if the deployment is IN_PROGRESS
. For more information, see Update a service pipeline in the Proton User guide .
The following list includes potential cancellation scenarios.
CANCELLED
.FAILED
.SUCCEEDED
and the cancellation attempt has no effect.See also: AWS API Documentation
Request Syntax
response = client.cancel_service_pipeline_deployment(
serviceName='string'
)
[REQUIRED]
The name of the service with the service pipeline deployment to cancel.
{
'pipeline': {
'arn': 'string',
'createdAt': datetime(2015, 1, 1),
'deploymentStatus': 'IN_PROGRESS'|'FAILED'|'SUCCEEDED'|'DELETE_IN_PROGRESS'|'DELETE_FAILED'|'DELETE_COMPLETE'|'CANCELLING'|'CANCELLED',
'deploymentStatusMessage': 'string',
'lastDeploymentAttemptedAt': datetime(2015, 1, 1),
'lastDeploymentSucceededAt': datetime(2015, 1, 1),
'spec': 'string',
'templateMajorVersion': 'string',
'templateMinorVersion': 'string',
'templateName': 'string'
}
}
Response Structure
The service pipeline detail data that's returned by Proton.
The Amazon Resource Name (ARN) of the service pipeline.
The time when the service pipeline was created.
The deployment status of the service pipeline.
A service pipeline deployment status message.
The time when a deployment of the service pipeline was last attempted.
The time when the service pipeline was last deployed successfully.
The service spec that was used to create the service pipeline.
The major version of the service template that was used to create the service pipeline.
The minor version of the service template that was used to create the service pipeline.
The name of the service template that was used to create the service pipeline.
Exceptions
Proton.Client.exceptions.ValidationException
Proton.Client.exceptions.AccessDeniedException
Proton.Client.exceptions.ThrottlingException
Proton.Client.exceptions.ConflictException
Proton.Client.exceptions.ResourceNotFoundException
Proton.Client.exceptions.InternalServerException