Bedrock AgentCore Control Structures HarnessBeforeInvocationHook¶ Structure Class¶ HarnessBeforeInvocationHook dataclass ¶ Bases: _SerdeShape The configuration for a hook that runs before an invocation begins. Attributes¶ name instance-attribute ¶ name: str The name of the hook. target instance-attribute ¶ target: HarnessHookTarget The target that receives the hook event.