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 |
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 |
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.
Output¶
ContinueServiceDeploymentOutput
dataclass
¶
Bases: _SerdeShape
Dataclass for ContinueServiceDeploymentOutput structure.