asFailedAttachmentEvent
Casts this ChatOutputStream as a FailedAttachmentEvent and retrieves its aws.sdk.kotlin.services.qbusiness.model.FailedAttachmentEvent value. Throws an exception if the ChatOutputStream is not a FailedAttachmentEvent.