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
Idawscc.qbusiness.retrievers

Fields

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

For more information, see AWS::QBusiness::Retriever.

Methods

NameResourceAccessible byRequired Params
create_resourceretrieversINSERTApplicationId, Configuration, DisplayName, Type, region
delete_resourceretrieversDELETEIdentifier, region
update_resourceretrieversUPDATEIdentifier, PatchDocument, region
list_resourcesretrievers_list_onlySELECTregion
get_resourceretrieversSELECTIdentifier, region

SELECT examples

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 awscc.qbusiness.retrievers
WHERE
region = '{{ region }}' AND
Identifier = '{{ application_id }}|{{ retriever_id }}';

INSERT example

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

/*+ create */
INSERT INTO awscc.qbusiness.retrievers (
ApplicationId,
Configuration,
DisplayName,
Type,
region
)
SELECT
'{{ application_id }}',
'{{ configuration }}',
'{{ display_name }}',
'{{ type }}',
'{{ region }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

UPDATE example

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

/*+ update */
UPDATE awscc.qbusiness.retrievers
SET PatchDocument = string('{{ {
"Configuration": configuration,
"DisplayName": display_name,
"RoleArn": role_arn,
"Tags": tags
} | generate_patch_document }}')
WHERE
region = '{{ region }}' AND
Identifier = '{{ application_id }}|{{ retriever_id }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

DELETE example

/*+ delete */
DELETE FROM awscc.qbusiness.retrievers
WHERE
Identifier = '{{ application_id }}|{{ retriever_id }}' AND
region = '{{ region }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

Additional Parameters

Mutable resources in the Cloud Control provider support additional optional parameters which can be supplied with INSERT, UPDATE, or DELETE operations. These include:

ParameterDescription
ClientToken
A unique identifier to ensure the idempotency of the resource request.This allows the provider to accurately distinguish between retries and new requests.
A client token is valid for 36 hours once used.
After that, a resource request with the same client token is treated as a new request.
If you do not specify a client token, one is generated for inclusion in the request.
RoleArn
The ARN of the IAM role used to perform this resource operation.The role specified must have the permissions required for this operation.
If you do not specify a role, a temporary session is created using your AWS user credentials.
TypeVersionId
For private resource types, the type version to use in this resource operation.If you do not specify a resource version, the default version is used.

Permissions

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

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