/*
* 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 CreateIndex operation.
/// Creates an Amazon Kendra index. Index creation is an asynchronous API. To determine
/// if index creation has completed, check the Status
field returned from
/// a call to DescribeIndex
. The Status
field is set to ACTIVE
/// when the index is ready to use.
///
///
///
/// Once the index is active you can index your documents using the BatchPutDocument
/// API or using one of the supported data sources.
///
///
///
/// For an example of creating an index and data source using the Python SDK, see Getting
/// started with Python SDK. For an example of creating an index and data source using
/// the Java SDK, see Getting
/// started with Java SDK.
///
///
public partial class CreateIndexRequest : AmazonKendraRequest
{
private string _clientToken;
private string _description;
private IndexEdition _edition;
private string _name;
private string _roleArn;
private ServerSideEncryptionConfiguration _serverSideEncryptionConfiguration;
private List _tags = new List();
private UserContextPolicy _userContextPolicy;
private UserGroupResolutionConfiguration _userGroupResolutionConfiguration;
private List _userTokenConfigurations = new List();
///
/// Gets and sets the property ClientToken.
///
/// A token that you provide to identify the request to create an index. Multiple calls
/// to the CreateIndex
API with the same client token will create only one
/// index.
///
///
[AWSProperty(Min=1, Max=100)]
public string ClientToken
{
get { return this._clientToken; }
set { this._clientToken = value; }
}
// Check to see if ClientToken property is set
internal bool IsSetClientToken()
{
return this._clientToken != null;
}
///
/// Gets and sets the property Description.
///
/// A description for the index.
///
///
[AWSProperty(Min=0, Max=1000)]
public string Description
{
get { return this._description; }
set { this._description = value; }
}
// Check to see if Description property is set
internal bool IsSetDescription()
{
return this._description != null;
}
///
/// Gets and sets the property Edition.
///
/// The Amazon Kendra edition to use for the index. Choose DEVELOPER_EDITION
/// for indexes intended for development, testing, or proof of concept. Use ENTERPRISE_EDITION
/// for production. Once you set the edition for an index, it can't be changed.
///
///
///
/// The Edition
parameter is optional. If you don't supply a value, the default
/// is ENTERPRISE_EDITION
.
///
///
///
/// For more information on quota limits for Enterprise and Developer editions, see Quotas.
///
///
public IndexEdition Edition
{
get { return this._edition; }
set { this._edition = value; }
}
// Check to see if Edition property is set
internal bool IsSetEdition()
{
return this._edition != null;
}
///
/// Gets and sets the property Name.
///
/// A name for the index.
///
///
[AWSProperty(Required=true, Min=1, Max=1000)]
public string Name
{
get { return this._name; }
set { this._name = value; }
}
// Check to see if Name property is set
internal bool IsSetName()
{
return this._name != null;
}
///
/// Gets and sets the property RoleArn.
///
/// The Amazon Resource Name (ARN) of an IAM role with permission to access your Amazon
/// CloudWatch logs and metrics. For more information, see IAM
/// access roles for Amazon Kendra.
///
///
[AWSProperty(Required=true, 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;
}
///
/// Gets and sets the property ServerSideEncryptionConfiguration.
///
/// The identifier of the KMS customer managed key (CMK) that's used to encrypt data indexed
/// by Amazon Kendra. Amazon Kendra doesn't support asymmetric CMKs.
///
///
public ServerSideEncryptionConfiguration ServerSideEncryptionConfiguration
{
get { return this._serverSideEncryptionConfiguration; }
set { this._serverSideEncryptionConfiguration = value; }
}
// Check to see if ServerSideEncryptionConfiguration property is set
internal bool IsSetServerSideEncryptionConfiguration()
{
return this._serverSideEncryptionConfiguration != null;
}
///
/// Gets and sets the property Tags.
///
/// A list of key-value pairs that identify or categorize the index. You can also use
/// tags to help control access to the index. Tag keys and values can consist of Unicode
/// letters, digits, white space, and any of the following symbols: _ . : / = + - @.
///
///
[AWSProperty(Min=0, Max=200)]
public List Tags
{
get { return this._tags; }
set { this._tags = value; }
}
// Check to see if Tags property is set
internal bool IsSetTags()
{
return this._tags != null && this._tags.Count > 0;
}
///
/// Gets and sets the property UserContextPolicy.
///
/// The user context policy.
///
/// - ATTRIBUTE_FILTER
-
///
/// All indexed content is searchable and displayable for all users. If you want to filter
/// search results on user context, you can use the attribute filters of
_user_id
/// and _group_ids
or you can provide user and group information in UserContext
.
///
///
/// - USER_TOKEN
-
///
/// Enables token-based user access control to filter search results on user context.
/// All documents with no access control and all documents accessible to the user will
/// be searchable and displayable.
///
///
///
public UserContextPolicy UserContextPolicy
{
get { return this._userContextPolicy; }
set { this._userContextPolicy = value; }
}
// Check to see if UserContextPolicy property is set
internal bool IsSetUserContextPolicy()
{
return this._userContextPolicy != null;
}
///
/// Gets and sets the property UserGroupResolutionConfiguration.
///
/// Gets users and groups from IAM Identity Center (successor to Single Sign-On) identity
/// source. To configure this, see UserGroupResolutionConfiguration.
///
///
public UserGroupResolutionConfiguration UserGroupResolutionConfiguration
{
get { return this._userGroupResolutionConfiguration; }
set { this._userGroupResolutionConfiguration = value; }
}
// Check to see if UserGroupResolutionConfiguration property is set
internal bool IsSetUserGroupResolutionConfiguration()
{
return this._userGroupResolutionConfiguration != null;
}
///
/// Gets and sets the property UserTokenConfigurations.
///
/// The user token configuration.
///
///
[AWSProperty(Max=1)]
public List UserTokenConfigurations
{
get { return this._userTokenConfigurations; }
set { this._userTokenConfigurations = value; }
}
// Check to see if UserTokenConfigurations property is set
internal bool IsSetUserTokenConfigurations()
{
return this._userTokenConfigurations != null && this._userTokenConfigurations.Count > 0;
}
}
}