Skip to main content

retrievers

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

Overview

Nameretrievers
TypeResource
Idaws.qbusiness.retrievers

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
application_idstringThe identifier of the Amazon Q Business application using the retriever. (pattern: <code>[a-zA-Z0-9][a-zA-Z0-9-]{35}</code>)
configurationobjectProvides information on how the retriever used for your Amazon Q Business application is configured.
created_atstring (date-time)The Unix timestamp when the retriever was created.
display_namestringThe name of the retriever. (pattern: <code>[a-zA-Z0-9][a-zA-Z0-9_-]*</code>)
retriever_arnstringThe Amazon Resource Name (ARN) of the IAM role associated with the retriever. (pattern: <code>arn:[a-z0-9-.]{1,63}:[a-z0-9-.]{0,63}:[a-z0-9-.]{0,63}:[a-z0-9-.]{0,63}:[^/].{0,1023}</code>)
retriever_idstringThe identifier of the retriever. (pattern: <code>[a-zA-Z0-9][a-zA-Z0-9-]{35}</code>)
role_arnstringThe Amazon Resource Name (ARN) of the role with the permission to access the retriever and required resources. (pattern: <code>arn:[a-z0-9-.]{1,63}:[a-z0-9-.]{0,63}:[a-z0-9-.]{0,63}:[a-z0-9-.]{0,63}:[^/].{0,1023}</code>)
statusstringThe status of the retriever. (CREATING, ACTIVE, FAILED)
type_stringThe type of the retriever. (NATIVE_INDEX, KENDRA_INDEX)
updated_atstring (date-time)The Unix timestamp when the retriever was last updated.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_retrieverselectapplication_id, retriever_id, regionGets information about an existing retriever used by an Amazon Q Business application.
list_retrieversselectapplication_id, regionnextToken, maxResultsLists the retriever used by an Amazon Q Business application.
create_retrieverinsertapplication_id, region, type, displayName, configurationAdds a retriever to your Amazon Q Business application.
update_retrieverupdateapplication_id, retriever_id, regionUpdates the retriever used for your Amazon Q Business application.
delete_retrieverdeleteapplication_id, retriever_id, regionDeletes the retriever used by an Amazon Q Business application.

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 using the retriever.
regionstringAWS region (default: us-east-1)
retriever_idstringThe identifier of the retriever being deleted.
maxResultsintegerThe maximum number of retrievers returned.
nextTokenstringIf the number of retrievers returned exceeds maxResults, Amazon Q Business returns a next token as a pagination token to retrieve the next set of retrievers.

SELECT examples

Gets information about an existing retriever used by an Amazon Q Business application.

SELECT
application_id,
configuration,
created_at,
display_name,
retriever_arn,
retriever_id,
role_arn,
status,
type_,
updated_at
FROM aws.qbusiness.retrievers
WHERE application_id = '{{ application_id }}' -- required
AND retriever_id = '{{ retriever_id }}' -- required
AND region = '{{ region }}' -- required
;

INSERT examples

Adds a retriever to your Amazon Q Business application.

INSERT INTO aws.qbusiness.retrievers (
type,
displayName,
configuration,
roleArn,
clientToken,
tags,
application_id,
region
)
SELECT
'{{ type }}' /* required */,
'{{ displayName }}' /* required */,
'{{ configuration }}' /* required */,
'{{ roleArn }}',
'{{ clientToken }}',
'{{ tags }}',
'{{ application_id }}',
'{{ region }}'
RETURNING
retriever_arn,
retriever_id
;

UPDATE examples

Updates the retriever used for your Amazon Q Business application.

UPDATE aws.qbusiness.retrievers
SET
configuration = '{{ configuration }}',
displayName = '{{ displayName }}',
roleArn = '{{ roleArn }}'
WHERE
application_id = '{{ application_id }}' --required
AND retriever_id = '{{ retriever_id }}' --required
AND region = '{{ region }}' --required;

DELETE examples

Deletes the retriever used by an Amazon Q Business application.

DELETE FROM aws.qbusiness.retrievers
WHERE application_id = '{{ application_id }}' --required
AND retriever_id = '{{ retriever_id }}' --required
AND region = '{{ region }}' --required
;