/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the kendra-2019-02-03.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.Kendra.Model
{
///
/// Container for the parameters to the BatchPutDocument operation.
/// Adds one or more documents to an index.
///
///
///
/// The BatchPutDocument
API enables you to ingest inline documents or a
/// set of documents stored in an Amazon S3 bucket. Use this API to ingest your text and
/// unstructured text into an index, add custom attributes to the documents, and to attach
/// an access control list to the documents added to the index.
///
///
///
/// The documents are indexed asynchronously. You can see the progress of the batch using
/// Amazon Web Services CloudWatch. Any error messages related to processing the batch
/// are sent to your Amazon Web Services CloudWatch log.
///
///
///
/// For an example of ingesting inline documents using Python and Java SDKs, see Adding
/// files directly to an index.
///
///
public partial class BatchPutDocumentRequest : AmazonKendraRequest
{
private CustomDocumentEnrichmentConfiguration _customDocumentEnrichmentConfiguration;
private List _documents = new List();
private string _indexId;
private string _roleArn;
///
/// Gets and sets the property CustomDocumentEnrichmentConfiguration.
///
/// Configuration information for altering your document metadata and content during the
/// document ingestion process when you use the BatchPutDocument
API.
///
///
///
/// For more information on how to create, modify and delete document metadata, or make
/// other content alterations when you ingest documents into Amazon Kendra, see Customizing
/// document metadata during the ingestion process.
///
///
public CustomDocumentEnrichmentConfiguration CustomDocumentEnrichmentConfiguration
{
get { return this._customDocumentEnrichmentConfiguration; }
set { this._customDocumentEnrichmentConfiguration = value; }
}
// Check to see if CustomDocumentEnrichmentConfiguration property is set
internal bool IsSetCustomDocumentEnrichmentConfiguration()
{
return this._customDocumentEnrichmentConfiguration != null;
}
///
/// Gets and sets the property Documents.
///
/// One or more documents to add to the index.
///
///
///
/// Documents have the following file size limits.
///
/// -
///
/// 50 MB total size for any file
///
///
-
///
/// 5 MB extracted text for any file
///
///
///
/// For more information, see Quotas.
///
///
[AWSProperty(Required=true, Min=1, Max=10)]
public List Documents
{
get { return this._documents; }
set { this._documents = value; }
}
// Check to see if Documents property is set
internal bool IsSetDocuments()
{
return this._documents != null && this._documents.Count > 0;
}
///
/// Gets and sets the property IndexId.
///
/// The identifier of the index to add the documents to. You need to create the index
/// first using the CreateIndex
API.
///
///
[AWSProperty(Required=true, Min=36, Max=36)]
public string IndexId
{
get { return this._indexId; }
set { this._indexId = value; }
}
// Check to see if IndexId property is set
internal bool IsSetIndexId()
{
return this._indexId != null;
}
///
/// Gets and sets the property RoleArn.
///
/// The Amazon Resource Name (ARN) of an IAM role with permission to access your S3 bucket.
/// For more information, see IAM
/// access roles for Amazon Kendra.
///
///
[AWSProperty(Min=0, Max=1284)]
public string RoleArn
{
get { return this._roleArn; }
set { this._roleArn = value; }
}
// Check to see if RoleArn property is set
internal bool IsSetRoleArn()
{
return this._roleArn != null;
}
}
}