create_index
¶
create_index(
application_id: ApplicationId,
display_name: IndexName,
*,
config_overrides: Optional[QBusinessClientConfig] = None,
description: Optional[Description] = None,
type: Optional[IndexType] = None,
tags: Optional[Tags] = None,
capacity_configuration: Optional[IndexCapacityConfiguration] = None,
client_token: Optional[ClientToken] = None,
) -> CreateIndexResponse
Creates an Amazon Q Business index.
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 the CreateDataSource API.
Parameters:
-
application_id(ApplicationId) –The identifier of the Amazon Q Business application using the index.
-
display_name(IndexName) –A name for the Amazon Q Business index.
-
description(Optional[Description], default:None) –A description for the Amazon Q Business index.
-
type(Optional[IndexType], default:None) –The index type that's suitable for your needs. For more information on what's included in each type of index, see Amazon Q Business tiers.
-
tags(Optional[Tags], default:None) –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: _ . : / = + - @.
-
capacity_configuration(Optional[IndexCapacityConfiguration], default:None) –The capacity units you want to provision for your index. You can add and remove capacity to fit your usage needs.
-
client_token(Optional[ClientToken], default:None) –A token that you provide to identify the request to create an index. Multiple calls to the
CreateIndexAPI with the same client token will create only one index.
Raises:
-
AccessDeniedException–You don't have access to perform this action. Make sure you have the required permission policies and user accounts and try again.
-
ConflictException–You are trying to perform an action that conflicts with the current status of your resource. Fix any inconsistencies with your resources and try again.
-
InternalServerException–An issue occurred with the internal server used for your Amazon Q Business service. Wait some minutes and try again, or contact Support for help.
-
ResourceNotFoundException–The application or plugin resource you want to use doesn’t exist. Make sure you have provided the correct resource and try again.
-
ServiceQuotaExceededException–You have exceeded the set limits for your Amazon Q Business service.
-
ThrottlingException–The request was denied due to throttling. Reduce the number of requests and try again.
-
ValidationException–The input doesn't meet the constraints set by the Amazon Q Business service. Provide the correct input and try again.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_qbusiness/_services/q_business.py
4655 4656 4657 4658 4659 4660 4661 4662 4663 4664 4665 4666 4667 4668 4669 4670 4671 4672 4673 4674 4675 4676 4677 4678 4679 4680 4681 4682 4683 4684 4685 4686 4687 4688 4689 4690 4691 4692 4693 4694 4695 4696 4697 4698 4699 4700 4701 4702 4703 4704 4705 4706 4707 4708 4709 4710 4711 4712 4713 4714 4715 4716 4717 4718 4719 4720 4721 4722 4723 4724 4725 4726 4727 4728 4729 4730 | |