Document

public struct Document : AWSShape

Undocumented

  • Declaration

    Swift

    public static var _members: [AWSShapeMember]
  • A blob of base64-encoded document bytes. The maximum size of a document that’s provided in a blob of bytes is 5 MB. The document bytes must be in PNG or JPEG format. If you’re using an AWS SDK to call Amazon Textract, you might not need to base64-encode image bytes passed using the Bytes field.

    Declaration

    Swift

    public let bytes: Data?
  • Identifies an S3 object as the document source. The maximum size of a document that’s stored in an S3 bucket is 5 MB.

    Declaration

    Swift

    public let s3Object: S3Object?
  • Undocumented

    Declaration

    Swift

    public init(bytes: Data? = nil, s3Object: S3Object? = nil)
  • Declaration

    Swift

    public func validate(name: String) throws