cancel_environment_deployment
(**kwargs)¶Attempts to cancel an environment deployment on an UpdateEnvironment action, if the deployment is IN_PROGRESS
. For more information, see Update an environment 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_environment_deployment(
environmentName='string'
)
[REQUIRED]
The name of the environment with the deployment to cancel.
{
'environment': {
'arn': 'string',
'codebuildRoleArn': 'string',
'componentRoleArn': 'string',
'createdAt': datetime(2015, 1, 1),
'deploymentStatus': 'IN_PROGRESS'|'FAILED'|'SUCCEEDED'|'DELETE_IN_PROGRESS'|'DELETE_FAILED'|'DELETE_COMPLETE'|'CANCELLING'|'CANCELLED',
'deploymentStatusMessage': 'string',
'description': 'string',
'environmentAccountConnectionId': 'string',
'environmentAccountId': 'string',
'lastDeploymentAttemptedAt': datetime(2015, 1, 1),
'lastDeploymentSucceededAt': datetime(2015, 1, 1),
'name': 'string',
'protonServiceRoleArn': 'string',
'provisioning': 'CUSTOMER_MANAGED',
'provisioningRepository': {
'arn': 'string',
'branch': 'string',
'name': 'string',
'provider': 'GITHUB'|'GITHUB_ENTERPRISE'|'BITBUCKET'
},
'spec': 'string',
'templateMajorVersion': 'string',
'templateMinorVersion': 'string',
'templateName': 'string'
}
}
Response Structure
The environment summary data that's returned by Proton.
The Amazon Resource Name (ARN) of the environment.
The Amazon Resource Name (ARN) of the IAM service role that allows Proton to provision infrastructure using CodeBuild-based provisioning on your behalf.
The Amazon Resource Name (ARN) of the IAM service role that Proton uses when provisioning directly defined components in this environment. It determines the scope of infrastructure that a component can provision.
The environment must have a componentRoleArn
to allow directly defined components to be associated with the environment.
For more information about components, see Proton components in the Proton User Guide .
The time when the environment was created.
The environment deployment status.
An environment deployment status message.
The description of the environment.
The ID of the environment account connection that's used to provision infrastructure resources in an environment account.
The ID of the environment account that the environment infrastructure resources are provisioned in.
The time when a deployment of the environment was last attempted.
The time when the environment was last deployed successfully.
The name of the environment.
The Amazon Resource Name (ARN) of the Proton service role that allows Proton to make calls to other services on your behalf.
When included, indicates that the environment template is for customer provisioned and managed infrastructure.
The linked repository that you use to host your rendered infrastructure templates for self-managed provisioning. A linked repository is a repository that has been registered with Proton. For more information, see CreateRepository.
The Amazon Resource Name (ARN) of the linked repository.
The repository branch.
The repository name.
The repository provider.
The environment spec.
The major version of the environment template.
The minor version of the environment template.
The Amazon Resource Name (ARN) of the environment 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