Class: Aws::Translate::Types::Document

Inherits:
Struct
  • Object
show all
Includes:
Structure
Defined in:
lib/aws-sdk-translate/types.rb

Overview

The content and content type of a document.

Constant Summary collapse

SENSITIVE =
[:content]

Instance Attribute Summary collapse

Instance Attribute Details

#contentString

The ‘Content`field type is Binary large object (blob). This object contains the document content converted into base64-encoded binary data. If you use one of the AWS SDKs, the SDK performs the Base64-encoding on this field before sending the request.

Returns:

  • (String)


256
257
258
259
260
261
# File 'lib/aws-sdk-translate/types.rb', line 256

class Document < Struct.new(
  :content,
  :content_type)
  SENSITIVE = [:content]
  include Aws::Structure
end

#content_typeString

Describes the format of the document. You can specify one of the following:

  • ‘text/html` - The input data consists of HTML content. Amazon Translate translates only the text in the HTML element.

  • ‘text/plain` - The input data consists of unformatted text. Amazon Translate translates every character in the content.

  • ‘application/vnd.openxmlformats-officedocument.wordprocessingml.document`

    • The input data consists of a Word document (.docx).

Returns:

  • (String)


256
257
258
259
260
261
# File 'lib/aws-sdk-translate/types.rb', line 256

class Document < Struct.new(
  :content,
  :content_type)
  SENSITIVE = [:content]
  include Aws::Structure
end