ECS / Client / continue_service_deployment
continue_service_deployment¶
- ECS.Client.continue_service_deployment(**kwargs)¶
Continues or rolls back an Amazon ECS service deployment that is paused at a lifecycle hook.
When a service deployment reaches a lifecycle stage that has a
PAUSEhook configured, the deployment pauses and waits for an explicit action. Use this API to either continue the deployment to the next stage or roll back to the previous service revision.To find the
hookIdof the paused hook, call DescribeServiceDeployments and inspect thelifecycleHookDetailsfield.See also: AWS API Documentation
Request Syntax
response = client.continue_service_deployment( serviceDeploymentArn='string', hookId='string', action='ROLLBACK'|'CONTINUE' )
- Parameters:
serviceDeploymentArn (string) –
[REQUIRED]
The ARN of the service deployment to continue or roll back.
hookId (string) –
[REQUIRED]
The ID of the paused lifecycle hook to act on. You can find the
hookIdby calling DescribeServiceDeployments and inspecting thelifecycleHookDetailsfield of the service deployment.action (string) –
The action to take on the paused lifecycle hook. Valid values are:
CONTINUE- Proceeds the deployment to the next lifecycle stage.ROLLBACK- Rolls back the deployment to the previous service revision.
If no value is specified, the default action is
CONTINUE.
- Return type:
dict
- Returns:
Response Syntax
{ 'serviceDeploymentArn': 'string' }
Response Structure
(dict) –
serviceDeploymentArn (string) –
The ARN of the service deployment that was continued or rolled back.
Exceptions
ECS.Client.exceptions.AccessDeniedExceptionECS.Client.exceptions.ServerExceptionECS.Client.exceptions.InvalidParameterExceptionECS.Client.exceptions.ClientExceptionECS.Client.exceptions.ServiceDeploymentNotFoundExceptionECS.Client.exceptions.UnsupportedFeatureException