Skip to main content

models

Creates, updates, deletes, gets or lists a models resource.

Overview

Namemodels
TypeResource
Idaws.qconnect.models

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
cross_region_statusstringThe cross-region availability status of the model. NONE indicates the model is only available in a single region, REGIONAL indicates the model is available through regional inference, and GLOBAL indicates the model is available through global cross-region inference. (NONE, REGIONAL, GLOBAL)
display_namestringThe display name of the model.
end_of_life_timestampstring (date-time)The timestamp when the model will reach end of life and no longer be available for use.
legacy_timestampstring (date-time)The timestamp when the model lifecycle will transition from ACTIVE to LEGACY.
model_idstringThe identifier of the model.
model_lifecyclestringThe current lifecycle of the model. ACTIVE indicates the model is recommended for use and LEGACY indicates the model is still usable but is deprecated. (ACTIVE, LEGACY)
supported_ai_prompt_typesarrayThe list of AI Prompt types that the model supports.
supports_prompt_cachingbooleanWhether the model supports prompt caching.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_modelsselectassistant_id, regionaiPromptType, modelLifecycle, nextToken, maxResultsLists the models available to an Amazon Q in Connect assistant in the assistant's Amazon Web Services Region. The available models are determined by the region of the specified assistant.

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
assistant_idstringThe identifier of the Amazon Q in Connect assistant. Can be either the ID or the ARN. URLs cannot contain the ARN. The assistant's region determines which models are available.
regionstringAWS region (default: us-east-1)
aiPromptTypestringThe type of the AI Prompt to filter models by. When specified, only models that support the given AI Prompt type are returned.
maxResultsintegerThe maximum number of results to return per page.
modelLifecyclestringThe lifecycle status of models to filter by. When specified, only models with the given lifecycle status are returned.
nextTokenstringThe token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results.

SELECT examples

Lists the models available to an Amazon Q in Connect assistant in the assistant's Amazon Web Services Region. The available models are determined by the region of the specified assistant.

SELECT
cross_region_status,
display_name,
end_of_life_timestamp,
legacy_timestamp,
model_id,
model_lifecycle,
supported_ai_prompt_types,
supports_prompt_caching
FROM aws.qconnect.models
WHERE assistant_id = '{{ assistant_id }}' -- required
AND region = '{{ region }}' -- required
AND aiPromptType = '{{ aiPromptType }}'
AND modelLifecycle = '{{ modelLifecycle }}'
AND nextToken = '{{ nextToken }}'
AND maxResults = '{{ maxResults }}'
;