asNodeFailureEvent
Casts this FlowExecutionEvent as a NodeFailureEvent and retrieves its aws.sdk.kotlin.services.bedrockagentruntime.model.NodeFailureEvent value. Throws an exception if the FlowExecutionEvent is not a NodeFailureEvent.