Skip to main content

assistants

Creates, updates, deletes or gets an assistant resource or lists assistants in a region

Overview

Nameassistants
TypeResource
DescriptionDefinition of AWS::Wisdom::Assistant Resource Type
Idaws.wisdom.assistants

Fields

NameDatatypeDescription
typestring
descriptionstring
assistant_arnstring
assistant_idstring
server_side_encryption_configurationobject
tagsarray
namestring
regionstringAWS region.

Methods

NameAccessible byRequired Params
create_resourceINSERTName, Type, region
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all assistants in a region.

SELECT
region,
type,
description,
assistant_arn,
assistant_id,
server_side_encryption_configuration,
tags,
name
FROM aws.wisdom.assistants
WHERE region = 'us-east-1';

Gets all properties from an individual assistant.

SELECT
region,
type,
description,
assistant_arn,
assistant_id,
server_side_encryption_configuration,
tags,
name
FROM aws.wisdom.assistants
WHERE region = 'us-east-1' AND data__Identifier = '<AssistantId>';

INSERT example

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

/*+ create */
INSERT INTO aws.wisdom.assistants (
Type,
Name,
region
)
SELECT
'{{ Type }}',
'{{ Name }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM aws.wisdom.assistants
WHERE data__Identifier = '<AssistantId>'
AND region = 'us-east-1';

Permissions

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

Create

kms:CreateGrant,
kms:DescribeKey,
wisdom:CreateAssistant,
wisdom:TagResource

Update

wisdom:GetAssistant

Read

wisdom:GetAssistant

List

wisdom:ListAssistants

Delete

wisdom:DeleteAssistant