You are viewing documentation for version 2 of the AWS SDK for Ruby. Version 3 documentation can be found here.
Class: Aws::CloudSearchDomain::Types::UploadDocumentsRequest
- Inherits:
-
Struct
- Object
- Struct
- Aws::CloudSearchDomain::Types::UploadDocumentsRequest
- Defined in:
- (unknown)
Overview
Note:
When passing UploadDocumentsRequest as input to an Aws::Client method, you can use a vanilla Hash:
{
documents: source_file, # file/IO object, or string data, required
content_type: "application/json", # required, accepts application/json, application/xml
}
Container for the parameters to the UploadDocuments
request.
Instance Attribute Summary collapse
-
#content_type ⇒ String
The format of the batch you are uploading.
-
#documents ⇒ IO
A batch of documents formatted in JSON or HTML.
Instance Attribute Details
#content_type ⇒ String
The format of the batch you are uploading. Amazon CloudSearch supports two document batch formats:
- application/json
- application/xml
Possible values:
- application/json
- application/xml
#documents ⇒ IO
A batch of documents formatted in JSON or HTML.