assistant_associations
Creates, updates, deletes or gets an assistant_association
resource or lists assistant_associations
in a region
Overview
Name | assistant_associations |
Type | Resource |
Description | Definition of AWS::Wisdom::AssistantAssociation Resource Type |
Id | aws.wisdom.assistant_associations |
Fields
Name | Datatype | Description |
---|---|---|
assistant_association_arn | string | |
assistant_arn | string | |
assistant_association_id | string | |
assistant_id | string | |
association | object | |
association_type | string | |
tags | array | |
region | string | AWS region. |
Methods
Name | Accessible by | Required Params |
---|---|---|
create_resource | INSERT | Association, AssociationType, AssistantId, region |
delete_resource | DELETE | data__Identifier, region |
update_resource | UPDATE | data__Identifier, data__PatchDocument, region |
list_resources | SELECT | region |
get_resource | SELECT | data__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
.
- Required Properties
- All Properties
- Manifest
/*+ create */
INSERT INTO aws.wisdom.assistant_associations (
AssistantId,
Association,
AssociationType,
region
)
SELECT
'{{ AssistantId }}',
'{{ Association }}',
'{{ AssociationType }}',
'{{ region }}';
/*+ create */
INSERT INTO aws.wisdom.assistant_associations (
AssistantId,
Association,
AssociationType,
Tags,
region
)
SELECT
'{{ AssistantId }}',
'{{ Association }}',
'{{ AssociationType }}',
'{{ Tags }}',
'{{ region }}';
version: 1
name: stack name
description: stack description
providers:
- aws
globals:
- name: region
value: '{{ vars.AWS_REGION }}'
resources:
- name: assistant_association
props:
- name: AssistantId
value: '{{ AssistantId }}'
- name: Association
value:
KnowledgeBaseId: '{{ KnowledgeBaseId }}'
- name: AssociationType
value: '{{ AssociationType }}'
- name: Tags
value:
- Key: '{{ Key }}'
Value: '{{ Value }}'
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