Skip to content

Bedrock AgentCore  >  Structures  >  HarnessHookEvent

HarnessHookEvent

Structure Class

HarnessHookEvent dataclass

A lifecycle hook event emitted in the invocation stream for visibility into hook decisions.

Attributes

decision class-attribute instance-attribute
decision: str | None = None

The decision applied to the hook event. This field is present only for blocking Lambda targets.

hook_event_id instance-attribute
hook_event_id: str

The unique identifier for this hook event.

name instance-attribute
name: str

The name of the hook that ran.

reason class-attribute instance-attribute
reason: str | None = None

The optional reason for the applied decision.

type instance-attribute
type: str

The type of lifecycle hook event.