Skip to content

QBusinessClient.create_index

rboto-qbusiness==0.4.0 · Service index · Types

Model summary (excerpt): 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.

Install and imports

python -m pip install "rboto[qbusiness]==0.4.0"
from rboto import QBusinessClient
from collections.abc import Sequence
from rboto_qbusiness.types import (
    CreateIndexOutput,
    IndexCapacityConfiguration,
    IndexType,
    Tag,
)

Signature

async def create_index(
    *,
    application_id: str,
    display_name: str,
    description: str | None = None,
    type: IndexType | None = None,
    tags: Sequence[Tag] | None = None,
    capacity_configuration: IndexCapacityConfiguration | None = None,
    client_token: str | None = None,
) -> CreateIndexOutput: ...

Arguments without defaults are required. None omits an optional request argument. Static types do not validate resource existence, permissions, lengths, ranges, or conditional service requirements.

Arguments

Argument Required Model notes (excerpt)
application_id Yes The identifier of the Amazon Q Business application using the index.
display_name Yes A name for the Amazon Q Business index.
description No A description for the Amazon Q Business index.
type No 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 No 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 No The capacity units you want to provision for your index. You can add and remove capacity to fit your usage needs.
client_token No 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.

Output

CreateIndexOutput.

Read-only native attributes, accessed as response.field. Collection getters materialize Python values; to_dict() recursively materializes a mapping. Streams are consumed once.

Field Type Presence References
index_id str | None Always present —
index_arn str | None Always present —

| None means a value can be absent. Output mappings include every declared key; optional input keys may be omitted. Unknown output enum/union variants are not automatically valid inputs.

CreateIndexOutput, IndexCapacityConfiguration, IndexType, Tag

Follow these links for nested inputs and outputs; recursive types link back to the same type page.

Pagination and streaming

No generated paginator for this operation.

No output stream.

Errors

Import from rboto_qbusiness.exceptions:

AccessDeniedError, ConflictError, InternalServerError, ResourceNotFoundError, ServiceQuotaExceededError, ThrottlingError, ValidationError.

Other service failures use the service base error; credential, transport and timeout failures use shared errors.

Service guide · Pinned model