aws_sdk_kendra/client/create_index.rs
1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2impl super::Client {
3 /// Constructs a fluent builder for the [`CreateIndex`](crate::operation::create_index::builders::CreateIndexFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`name(impl Into<String>)`](crate::operation::create_index::builders::CreateIndexFluentBuilder::name) / [`set_name(Option<String>)`](crate::operation::create_index::builders::CreateIndexFluentBuilder::set_name):<br>required: **true**<br><p>A name for the index.</p><br>
7 /// - [`edition(IndexEdition)`](crate::operation::create_index::builders::CreateIndexFluentBuilder::edition) / [`set_edition(Option<IndexEdition>)`](crate::operation::create_index::builders::CreateIndexFluentBuilder::set_edition):<br>required: **false**<br><p>The Amazon Kendra edition to use for the index. Choose <code>DEVELOPER_EDITION</code> for indexes intended for development, testing, or proof of concept. Use <code>ENTERPRISE_EDITION</code> for production. Use <code>GEN_AI_ENTERPRISE_EDITION</code> for creating generative AI applications. Once you set the edition for an index, it can't be changed.</p> <p>The <code>Edition</code> parameter is optional. If you don't supply a value, the default is <code>ENTERPRISE_EDITION</code>.</p> <p>For more information on quota limits for Gen AI Enterprise Edition, Enterprise Edition, and Developer Edition indices, see <a href="https://docs.aws.amazon.com/kendra/latest/dg/quotas.html">Quotas</a>.</p><br>
8 /// - [`role_arn(impl Into<String>)`](crate::operation::create_index::builders::CreateIndexFluentBuilder::role_arn) / [`set_role_arn(Option<String>)`](crate::operation::create_index::builders::CreateIndexFluentBuilder::set_role_arn):<br>required: **true**<br><p>The Amazon Resource Name (ARN) of an IAM role with permission to access your Amazon CloudWatch logs and metrics. For more information, see <a href="https://docs.aws.amazon.com/kendra/latest/dg/iam-roles.html">IAM access roles for Amazon Kendra</a>.</p><br>
9 /// - [`server_side_encryption_configuration(ServerSideEncryptionConfiguration)`](crate::operation::create_index::builders::CreateIndexFluentBuilder::server_side_encryption_configuration) / [`set_server_side_encryption_configuration(Option<ServerSideEncryptionConfiguration>)`](crate::operation::create_index::builders::CreateIndexFluentBuilder::set_server_side_encryption_configuration):<br>required: **false**<br><p>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.</p><br>
10 /// - [`description(impl Into<String>)`](crate::operation::create_index::builders::CreateIndexFluentBuilder::description) / [`set_description(Option<String>)`](crate::operation::create_index::builders::CreateIndexFluentBuilder::set_description):<br>required: **false**<br><p>A description for the index.</p><br>
11 /// - [`client_token(impl Into<String>)`](crate::operation::create_index::builders::CreateIndexFluentBuilder::client_token) / [`set_client_token(Option<String>)`](crate::operation::create_index::builders::CreateIndexFluentBuilder::set_client_token):<br>required: **false**<br><p>A token that you provide to identify the request to create an index. Multiple calls to the <code>CreateIndex</code> API with the same client token will create only one index.</p><br>
12 /// - [`tags(Tag)`](crate::operation::create_index::builders::CreateIndexFluentBuilder::tags) / [`set_tags(Option<Vec::<Tag>>)`](crate::operation::create_index::builders::CreateIndexFluentBuilder::set_tags):<br>required: **false**<br><p>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: _ . : / = + - @.</p><br>
13 /// - [`user_token_configurations(UserTokenConfiguration)`](crate::operation::create_index::builders::CreateIndexFluentBuilder::user_token_configurations) / [`set_user_token_configurations(Option<Vec::<UserTokenConfiguration>>)`](crate::operation::create_index::builders::CreateIndexFluentBuilder::set_user_token_configurations):<br>required: **false**<br><p>The user token configuration.</p><important> <p>If you're using an Amazon Kendra Gen AI Enterprise Edition index and you try to use <code>UserTokenConfigurations</code> to configure user context policy, Amazon Kendra returns a <code>ValidationException</code> error.</p> </important><br>
14 /// - [`user_context_policy(UserContextPolicy)`](crate::operation::create_index::builders::CreateIndexFluentBuilder::user_context_policy) / [`set_user_context_policy(Option<UserContextPolicy>)`](crate::operation::create_index::builders::CreateIndexFluentBuilder::set_user_context_policy):<br>required: **false**<br><p>The user context policy.</p><important> <p>If you're using an Amazon Kendra Gen AI Enterprise Edition index, you can only use <code>ATTRIBUTE_FILTER</code> to filter search results by user context. If you're using an Amazon Kendra Gen AI Enterprise Edition index and you try to use <code>USER_TOKEN</code> to configure user context policy, Amazon Kendra returns a <code>ValidationException</code> error.</p> </important> <dl> <dt> ATTRIBUTE_FILTER </dt> <dd> <p>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 <code>_user_id</code> and <code>_group_ids</code> or you can provide user and group information in <code>UserContext</code>.</p> </dd> <dt> USER_TOKEN </dt> <dd> <p>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.</p> </dd> </dl><br>
15 /// - [`user_group_resolution_configuration(UserGroupResolutionConfiguration)`](crate::operation::create_index::builders::CreateIndexFluentBuilder::user_group_resolution_configuration) / [`set_user_group_resolution_configuration(Option<UserGroupResolutionConfiguration>)`](crate::operation::create_index::builders::CreateIndexFluentBuilder::set_user_group_resolution_configuration):<br>required: **false**<br><p>Gets users and groups from IAM Identity Center identity source. To configure this, see <a href="https://docs.aws.amazon.com/kendra/latest/dg/API_UserGroupResolutionConfiguration.html">UserGroupResolutionConfiguration</a>. This is useful for user context filtering, where search results are filtered based on the user or their group access to documents.</p><important> <p>If you're using an Amazon Kendra Gen AI Enterprise Edition index, <code>UserGroupResolutionConfiguration</code> isn't supported.</p> </important><br>
16 /// - On success, responds with [`CreateIndexOutput`](crate::operation::create_index::CreateIndexOutput) with field(s):
17 /// - [`id(Option<String>)`](crate::operation::create_index::CreateIndexOutput::id): <p>The identifier of the index. Use this identifier when you query an index, set up a data source, or index a document.</p>
18 /// - On failure, responds with [`SdkError<CreateIndexError>`](crate::operation::create_index::CreateIndexError)
19 pub fn create_index(&self) -> crate::operation::create_index::builders::CreateIndexFluentBuilder {
20 crate::operation::create_index::builders::CreateIndexFluentBuilder::new(self.handle.clone())
21 }
22}