Skip to content

ECS  >  Structures  >  DeploymentLifecycleHookDetail

DeploymentLifecycleHookDetail

Structure Class

DeploymentLifecycleHookDetail dataclass

Bases: _SerdeShape

The details of a deployment lifecycle hook that is active during a service deployment.

You can view lifecycle hook details by calling DescribeServiceDeployments.

Attributes

expires_at class-attribute instance-attribute
expires_at: datetime | None = ...

The time when the lifecycle hook times out. If the hook has not been completed by this time, Amazon ECS takes the timeout action.

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

The ID of the lifecycle hook. Use this value when calling ContinueServiceDeployment to continue or roll back a paused deployment.

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

The status of the lifecycle hook. Valid values include AWAITING_ACTION, IN_PROGRESS, SUCCEEDED, FAILED, and TIMED_OUT.

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

The Amazon Resource Name (ARN) of the hook target. For AWS_LAMBDA hooks, this is the Lambda function ARN. For PAUSE hooks, this field is not set.

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

The type of action the lifecycle hook performs, such as AWS_LAMBDA or PAUSE.

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

The action Amazon ECS takes when the lifecycle hook times out. Valid values are CONTINUE and ROLLBACK.