You are viewing documentation for version 3 of the AWS SDK for Ruby. Version 2 documentation can be found here.

Class: Aws::CloudSearchDomain::Types::UploadDocumentsRequest

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-cloudsearchdomain/lib/aws-sdk-cloudsearchdomain/types.rb

Overview

Note:

When making an API call, you may pass UploadDocumentsRequest data as a hash:

{
  documents: "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

Returns:

  • (String)


788
789
790
791
792
# File 'gems/aws-sdk-cloudsearchdomain/lib/aws-sdk-cloudsearchdomain/types.rb', line 788

class UploadDocumentsRequest < Struct.new(
  :documents,
  :content_type)
  include Aws::Structure
end

#documentsIO

A batch of documents formatted in JSON or HTML.

Returns:

  • (IO)


788
789
790
791
792
# File 'gems/aws-sdk-cloudsearchdomain/lib/aws-sdk-cloudsearchdomain/types.rb', line 788

class UploadDocumentsRequest < Struct.new(
  :documents,
  :content_type)
  include Aws::Structure
end