Skip to main content

indices

Creates, updates, deletes, gets or lists an indices resource.

Overview

Nameindices
TypeResource
Idaws.qbusiness.indices

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
created_atstring (date-time)The Unix timestamp when the index was created.
display_namestringThe name of the index. (pattern: <code>[a-zA-Z0-9][a-zA-Z0-9_-]*</code>)
index_idstringThe identifier for the index. (pattern: <code>[a-zA-Z0-9][a-zA-Z0-9-]{35}</code>)
statusstringThe current status of the index. When the status is ACTIVE, the index is ready. (CREATING, ACTIVE, DELETING, FAILED, UPDATING)
updated_atstring (date-time)The Unix timestamp when the index was last updated.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_indicesselectapplication_id, regionnextToken, maxResultsLists the Amazon Q Business indices you have created.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
application_idstringThe identifier of the Amazon Q Business application connected to the index.
regionstringAWS region (default: us-east-1)
maxResultsintegerThe maximum number of indices to return.
nextTokenstringIf the maxResults response was incomplete because there is more data to retrieve, Amazon Q Business returns a pagination token in the response. You can use this pagination token to retrieve the next set of Amazon Q Business indices.

SELECT examples

Lists the Amazon Q Business indices you have created.

SELECT
created_at,
display_name,
index_id,
status,
updated_at
FROM aws.qbusiness.indices
WHERE application_id = '{{ application_id }}' -- required
AND region = '{{ region }}' -- required
AND nextToken = '{{ nextToken }}'
AND maxResults = '{{ maxResults }}'
;