HttpPostLifecycleHookAction¶
Structure Class¶
HttpPostLifecycleHookAction
dataclass
¶
Bases: _SerdeShape
A lifecycle hook action that sends an HTTP POST request to the
agent's container. The path and port can't conflict with a path that
your agent already serves for AgentCore Runtime, such as the protocol's
invocation path or the health check path.
Attributes¶
path
instance-attribute
¶
path: str
The path in the agent's container that AgentCore Runtime sends the
POST request to.
port
class-attribute
instance-attribute
¶
port: int | None = ...
The port in the agent's container that AgentCore Runtime sends the
POST request to. If you don't specify a port, the default is the
runtime's server port: the port in the protocol configuration if one is
set, otherwise the protocol's default port.