Skip to content

LifecycleHookAction

Union Type

LifecycleHookAction module-attribute

The action that a lifecycle hook runs. Specify exactly one member. Currently, httpPost is the only supported action.

Union Member Types

LifecycleHookActionHttpPost dataclass

Bases: _SerdeShape

Sends an HTTP POST request to your agent's container on the specified port and path to run the hook. The hook succeeds if your container returns a 2xx response. The hook fails if your container returns any other response or doesn't respond before the hook times out.

Attributes

value instance-attribute

LifecycleHookActionUnknown dataclass

Bases: _SerdeShape

Represents an unknown variant. If you receive this value, you will need to update your library to receive the parsed value. This value may not be deliberately sent.

Attributes

tag instance-attribute
tag: str