Class: Aws::Translate::Types::Document
- Inherits:
-
Struct
- Object
- Struct
- Aws::Translate::Types::Document
- 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
-
#content ⇒ String
The ‘Content`field type is Binary large object (blob).
-
#content_type ⇒ String
Describes the format of the document.
Instance Attribute Details
#content ⇒ String
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.
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_type ⇒ String
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).
-
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 |