asDocument

Casts this FlowOutputContent as a Document and retrieves its aws.smithy.kotlin.runtime.content.Document value. Throws an exception if the FlowOutputContent is not a Document.