Skip to main content

assistant_associations

Creates, updates, deletes or gets an assistant_association resource or lists assistant_associations in a region

Overview

Nameassistant_associations
TypeResource
DescriptionDefinition of AWS::Wisdom::AssistantAssociation Resource Type
Idaws.wisdom.assistant_associations

Fields

NameDatatypeDescription
assistant_association_arnstring
assistant_arnstring
assistant_association_idstring
assistant_idstring
associationobject
association_typestring
tagsarray
regionstringAWS region.

Methods

NameAccessible byRequired Params
create_resourceINSERTAssociation, AssociationType, AssistantId, region
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all assistant_associations in a region.

SELECT
region,
assistant_association_arn,
assistant_arn,
assistant_association_id,
assistant_id,
association,
association_type,
tags
FROM aws.wisdom.assistant_associations
WHERE region = 'us-east-1';

Gets all properties from an individual assistant_association.

SELECT
region,
assistant_association_arn,
assistant_arn,
assistant_association_id,
assistant_id,
association,
association_type,
tags
FROM aws.wisdom.assistant_associations
WHERE region = 'us-east-1' AND data__Identifier = '<AssistantAssociationId>|<AssistantId>';

INSERT example

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

/*+ create */
INSERT INTO aws.wisdom.assistant_associations (
AssistantId,
Association,
AssociationType,
region
)
SELECT
'{{ AssistantId }}',
'{{ Association }}',
'{{ AssociationType }}',
'{{ region }}';

DELETE example

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

Permissions

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

Create

wisdom:CreateAssistantAssociation,
wisdom:TagResource

Update

wisdom:GetAssistantAssociation

Read

wisdom:GetAssistantAssociation

List

wisdom:ListAssistantAssociations

Delete

wisdom:DeleteAssistantAssociation