Proton.Client.
delete_service
(**kwargs)¶Delete a service, with its instances and pipeline.
Note
You can't delete a service if it has any service instances that have components attached to them.
For more information about components, see Proton components in the Proton User Guide .
See also: AWS API Documentation
Request Syntax
response = client.delete_service(
name='string'
)
[REQUIRED]
The name of the service to delete.
{
'service': {
'arn': 'string',
'branchName': 'string',
'createdAt': datetime(2015, 1, 1),
'description': 'string',
'lastModifiedAt': datetime(2015, 1, 1),
'name': 'string',
'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'
},
'repositoryConnectionArn': 'string',
'repositoryId': 'string',
'spec': 'string',
'status': 'CREATE_IN_PROGRESS'|'CREATE_FAILED_CLEANUP_IN_PROGRESS'|'CREATE_FAILED_CLEANUP_COMPLETE'|'CREATE_FAILED_CLEANUP_FAILED'|'CREATE_FAILED'|'ACTIVE'|'DELETE_IN_PROGRESS'|'DELETE_FAILED'|'UPDATE_IN_PROGRESS'|'UPDATE_FAILED_CLEANUP_IN_PROGRESS'|'UPDATE_FAILED_CLEANUP_COMPLETE'|'UPDATE_FAILED_CLEANUP_FAILED'|'UPDATE_FAILED'|'UPDATE_COMPLETE_CLEANUP_FAILED',
'statusMessage': 'string',
'templateName': 'string'
}
}
Response Structure
The detailed data of the service being deleted.
The Amazon Resource Name (ARN) of the service.
The name of the code repository branch that holds the code that's deployed in Proton.
The time when the service was created.
A description of the service.
The time when the service was last modified.
The name of the service.
The service pipeline detail data.
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.
The Amazon Resource Name (ARN) of the repository connection. For more information, see Setting up an AWS CodeStar connection in the Proton User Guide .
The ID of the source code repository.
The formatted specification that defines the service.
The status of the service.
A service status message.
The name of the service template.
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