LifecycleHookAction¶
Union Type¶
LifecycleHookAction
module-attribute
¶
LifecycleHookAction = Union[LifecycleHookActionHttpPost | LifecycleHookActionUnknown]
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.