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
show all
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

Instance Attribute Details

#content_typeString

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

Returns:

  • (String)

    The format of the batch you are uploading.

#documentsIO

A batch of documents formatted in JSON or HTML.

Returns:

  • (IO)

    A batch of documents formatted in JSON or HTML.