Skip to main content

retrievers

Creates, updates, deletes or gets a retriever resource or lists retrievers in a region

Overview

Nameretrievers
TypeResource
DescriptionDefinition of AWS::QBusiness::Retriever Resource Type
Idaws.qbusiness.retrievers

Fields

NameDatatypeDescription
application_idstring
configurationundefined
created_atstring
display_namestring
retriever_arnstring
retriever_idstring
role_arnstring
statusstring
tagsarray
typestring
updated_atstring
regionstringAWS region.

Methods

NameAccessible byRequired Params
create_resourceINSERTApplicationId, Configuration, DisplayName, Type, region
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all retrievers in a region.

SELECT
region,
application_id,
configuration,
created_at,
display_name,
retriever_arn,
retriever_id,
role_arn,
status,
tags,
type,
updated_at
FROM aws.qbusiness.retrievers
WHERE region = 'us-east-1';

Gets all properties from an individual retriever.

SELECT
region,
application_id,
configuration,
created_at,
display_name,
retriever_arn,
retriever_id,
role_arn,
status,
tags,
type,
updated_at
FROM aws.qbusiness.retrievers
WHERE region = 'us-east-1' AND data__Identifier = '<ApplicationId>|<RetrieverId>';

INSERT example

Use the following StackQL query and manifest file to create a new retriever resource, using stack-deploy.

/*+ create */
INSERT INTO aws.qbusiness.retrievers (
ApplicationId,
Configuration,
DisplayName,
Type,
region
)
SELECT
'{{ ApplicationId }}',
'{{ Configuration }}',
'{{ DisplayName }}',
'{{ Type }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM aws.qbusiness.retrievers
WHERE data__Identifier = '<ApplicationId|RetrieverId>'
AND region = 'us-east-1';

Permissions

To operate on the retrievers resource, the following permissions are required:

Create

iam:PassRole,
qbusiness:CreateRetriever,
qbusiness:GetRetriever,
qbusiness:ListTagsForResource,
qbusiness:TagResource

Read

qbusiness:GetRetriever,
qbusiness:ListTagsForResource

Update

iam:PassRole,
qbusiness:GetRetriever,
qbusiness:ListTagsForResource,
qbusiness:TagResource,
qbusiness:UntagResource,
qbusiness:UpdateRetriever

Delete

qbusiness:DeleteRetriever,
qbusiness:GetRetriever

List

qbusiness:ListRetrievers