Attempts to cancel an environment deployment on an UpdateEnvironment action, if the deployment is IN_PROGRESS¶
Description¶
Attempts to cancel an environment deployment on an update_environment 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.
- If the cancellation attempt succeeds, the resulting deployment state is
CANCELLED. - If the cancellation attempt fails, the resulting deployment state is
FAILED. - If the current
update_environmentaction succeeds before the cancellation attempt starts, the resulting deployment state isSUCCEEDEDand the cancellation attempt has no effect.
Usage¶
Arguments¶
-
environmentName[required] The name of the environment with the deployment to cancel.
Value¶
A list with the following syntax:
list(
environment = list(
arn = "string",
codebuildRoleArn = "string",
componentRoleArn = "string",
createdAt = as.POSIXct(
"2015-01-01"
),
deploymentStatus = "IN_PROGRESS"|"FAILED"|"SUCCEEDED"|"DELETE_IN_PROGRESS"|"DELETE_FAILED"|"DELETE_COMPLETE"|"CANCELLING"|"CANCELLED",
deploymentStatusMessage = "string",
description = "string",
environmentAccountConnectionId = "string",
environmentAccountId = "string",
lastAttemptedDeploymentId = "string",
lastDeploymentAttemptedAt = as.POSIXct(
"2015-01-01"
),
lastDeploymentSucceededAt = as.POSIXct(
"2015-01-01"
),
lastSucceededDeploymentId = "string",
name = "string",
protonServiceRoleArn = "string",
provisioning = "CUSTOMER_MANAGED",
provisioningRepository = list(
arn = "string",
branch = "string",
name = "string",
provider = "GITHUB"|"GITHUB_ENTERPRISE"|"BITBUCKET"
),
spec = "string",
templateMajorVersion = "string",
templateMinorVersion = "string",
templateName = "string"
)
)