stop_deployment
async
¶
stop_deployment(
application_id: Name,
environment_id: Name,
deployment_number: Integer,
*,
config_overrides: Optional[AsyncAppConfigClientConfig] = None,
allow_revert: Optional[Boolean] = None,
) -> Deployment
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.
Parameters:
-
application_id(Name) –The application ID.
-
environment_id(Name) –The environment ID.
-
deployment_number(Integer) –The sequence number of the deployment.
-
allow_revert(Optional[Boolean], default:None) –A Boolean that enables AppConfig to rollback a
COMPLETEDdeployment to the previous configuration version. This action moves the deployment to a status ofREVERTED.
Raises:
-
BadRequestException–The input fails to satisfy the constraints specified by an Amazon Web Services service.
-
InternalServerException–There was an internal failure in the AppConfig service.
-
ResourceNotFoundException–The requested resource could not be found.
-
UnknownServiceError–The service returned an error code this client does not model.
Examples:
To stop configuration deployment The following stop-deployment example stops the deployment of an application configuration to the specified environment.
>>> await client.stop_deployment(application_id='339ohji', environment_id='54j1r29', deployment_number=2)
Source code in docs_src/capo_appconfig/_services/async_app_config.py
3303 3304 3305 3306 3307 3308 3309 3310 3311 3312 3313 3314 3315 3316 3317 3318 3319 3320 3321 3322 3323 3324 3325 3326 3327 3328 3329 3330 3331 3332 3333 3334 3335 3336 3337 3338 3339 3340 3341 3342 3343 3344 3345 3346 3347 3348 3349 3350 3351 3352 3353 3354 3355 3356 3357 3358 3359 3360 3361 3362 3363 | |