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
Idawscc.wisdom.assistants

Fields

NameDatatypeDescription
typestring
descriptionstring
assistant_arnstring
assistant_idstring
server_side_encryption_configurationobject
tagsarray
namestring
regionstringAWS region.

For more information, see AWS::Wisdom::Assistant.

Methods

NameResourceAccessible byRequired Params
create_resourceassistantsINSERTName, Type, region
delete_resourceassistantsDELETEIdentifier, region
update_resourceassistantsUPDATEIdentifier, PatchDocument, region
list_resourcesassistants_list_onlySELECTregion
get_resourceassistantsSELECTIdentifier, region

SELECT examples

Gets all properties from an individual assistant.

SELECT
region,
type,
description,
assistant_arn,
assistant_id,
server_side_encryption_configuration,
tags,
name
FROM awscc.wisdom.assistants
WHERE
region = '{{ region }}' AND
Identifier = '{{ assistant_id }}';

INSERT example

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

/*+ create */
INSERT INTO awscc.wisdom.assistants (
Type,
Name,
region
)
SELECT
'{{ type }}',
'{{ name }}',
'{{ region }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

DELETE example

/*+ delete */
DELETE FROM awscc.wisdom.assistants
WHERE
Identifier = '{{ assistant_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 assistants resource, the following permissions are required:

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