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.

Constant Summary collapse

SENSITIVE =
[]

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)


836
837
838
839
840
841
# File 'gems/aws-sdk-cloudsearchdomain/lib/aws-sdk-cloudsearchdomain/types.rb', line 836

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

#documentsIO

A batch of documents formatted in JSON or HTML.

Returns:

  • (IO)


836
837
838
839
840
841
# File 'gems/aws-sdk-cloudsearchdomain/lib/aws-sdk-cloudsearchdomain/types.rb', line 836

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