create_index
async
¶
create_index(
application_id: ApplicationId,
display_name: IndexName,
*,
config_overrides: Optional[AsyncQBusinessClientConfig] = 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/async_q_business.py
4719 4720 4721 4722 4723 4724 4725 4726 4727 4728 4729 4730 4731 4732 4733 4734 4735 4736 4737 4738 4739 4740 4741 4742 4743 4744 4745 4746 4747 4748 4749 4750 4751 4752 4753 4754 4755 4756 4757 4758 4759 4760 4761 4762 4763 4764 4765 4766 4767 4768 4769 4770 4771 4772 4773 4774 4775 4776 4777 4778 4779 4780 4781 4782 4783 4784 4785 4786 4787 4788 4789 4790 4791 4792 4793 4794 4795 | |