asHookEvent
Casts this InvokeHarnessStreamOutput as a HookEvent and retrieves its aws.sdk.kotlin.services.bedrockagentcore.model.HarnessHookEvent value. Throws an exception if the InvokeHarnessStreamOutput is not a HookEvent.
Casts this InvokeHarnessStreamOutput as a HookEvent and retrieves its aws.sdk.kotlin.services.bedrockagentcore.model.HarnessHookEvent value. Throws an exception if the InvokeHarnessStreamOutput is not a HookEvent.