stopDeployment

Stops a deployment. This API action works only on deployments that have a status of DEPLOYING, unless an AllowRevert parameter is supplied. If the AllowRevert parameter is supplied, the status of an in-progress deployment will be ROLLED_BACK. The status of a completed deployment will be REVERTED. AppConfig only allows a revert within 72 hours of deployment completion.

Samples


fun main() { 
   //sampleStart 
   // The following stop deployment example stops the deployment of an application configuration to the
// specified environment.
val resp = appConfigClient.stopDeployment {
    applicationId = "339ohji"
    environmentId = "54j1r29"
    deploymentNumber = 2
} 
   //sampleEnd
}