Skip to content

ECS  >  Operations  >  continue_service_deployment

continue_service_deployment

Operation

continue_service_deployment async

continue_service_deployment(input: ContinueServiceDeploymentInput, plugins: list[Plugin] | None = None) -> ContinueServiceDeploymentOutput

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 PAUSE hook 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 hookId of the paused hook, call DescribeServiceDeployments and inspect the lifecycleHookDetails field.

For more information, see Continuing Amazon ECS service deployments in the Amazon Elastic Container Service Developer Guide.

Parameters:

Name Type Description Default
input ContinueServiceDeploymentInput

An instance of ContinueServiceDeploymentInput.

required
plugins list[Plugin] | None

A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the operation execution and will not affect any other operation invocations.

None

Returns:

Type Description
ContinueServiceDeploymentOutput

An instance of ContinueServiceDeploymentOutput.

Input

ContinueServiceDeploymentInput dataclass

Bases: _SerdeShape

Dataclass for ContinueServiceDeploymentInput structure.

Attributes

action class-attribute instance-attribute
action: str | None = ...

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.

hook_id class-attribute instance-attribute
hook_id: str | None = ...

The ID of the paused lifecycle hook to act on. You can find the hookId by calling DescribeServiceDeployments and inspecting the lifecycleHookDetails field of the service deployment.

service_deployment_arn class-attribute instance-attribute
service_deployment_arn: str | None = ...

The ARN of the service deployment to continue or roll back.

Output

ContinueServiceDeploymentOutput dataclass

Bases: _SerdeShape

Dataclass for ContinueServiceDeploymentOutput structure.

Attributes

response_metadata class-attribute instance-attribute
response_metadata: ResponseMetadata = ...

Metadata about the response that produced this output. Use this to recover the request identifiers a service's support team needs in order to investigate a call. Members of the metadata are individually optional.

service_deployment_arn class-attribute instance-attribute
service_deployment_arn: str | None = ...

The ARN of the service deployment that was continued or rolled back.