Skip to main content

assistant_associations

Creates, updates, deletes, gets or lists an assistant_associations resource.

Overview

Nameassistant_associations
TypeResource
Idaws.qconnect.assistant_associations

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
assistant_arnstringThe Amazon Resource Name (ARN) of the Amazon Q in Connect assistant. (pattern: <code>arn:[a-z-]?:wisdom:[a-z0-9-]?:[0-9]{12}:[a-z-]*?/[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}(?:/[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}){0,2}</code>)
assistant_association_arnstringThe Amazon Resource Name (ARN) of the assistant association. (pattern: <code>arn:[a-z-]?:wisdom:[a-z0-9-]?:[0-9]{12}:[a-z-]*?/[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}(?:/[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}){0,2}</code>)
assistant_association_idstringThe identifier of the assistant association. (pattern: <code>[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}</code>)
assistant_idstringThe identifier of the Amazon Q in Connect assistant. (pattern: <code>[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}</code>)
association_dataobjectA union type that currently has a single argument, the knowledge base ID.
association_typestringThe type of association. (KNOWLEDGE_BASE, EXTERNAL_BEDROCK_KNOWLEDGE_BASE)
tagsobjectThe tags used to organize, track, or control access for this resource.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_assistant_associationselectassistant_association_id, assistant_id, regionRetrieves information about an assistant association.
list_assistant_associationsselectassistant_id, regionnextToken, maxResultsLists information about assistant associations.
create_assistant_associationinsertassistant_id, region, associationType, associationCreates an association between an Amazon Q in Connect assistant and another resource. Currently, the only supported association is with a knowledge base. An assistant can have only a single association.
delete_assistant_associationdeleteassistant_association_id, assistant_id, regionDeletes an assistant association.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
assistant_association_idstringThe identifier of the assistant association. Can be either the ID or the ARN. URLs cannot contain the ARN.
assistant_idstringThe identifier of the Amazon Q in Connect assistant. Can be either the ID or the ARN. URLs cannot contain the ARN.
regionstringAWS region (default: us-east-1)
maxResultsintegerThe maximum number of results to return per page.
nextTokenstringThe token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results.

SELECT examples

Retrieves information about an assistant association.

SELECT
assistant_arn,
assistant_association_arn,
assistant_association_id,
assistant_id,
association_data,
association_type,
tags
FROM aws.qconnect.assistant_associations
WHERE assistant_association_id = '{{ assistant_association_id }}' -- required
AND assistant_id = '{{ assistant_id }}' -- required
AND region = '{{ region }}' -- required
;

INSERT examples

Creates an association between an Amazon Q in Connect assistant and another resource. Currently, the only supported association is with a knowledge base. An assistant can have only a single association.

INSERT INTO aws.qconnect.assistant_associations (
associationType,
association,
clientToken,
tags,
assistant_id,
region
)
SELECT
'{{ associationType }}' /* required */,
'{{ association }}' /* required */,
'{{ clientToken }}',
'{{ tags }}',
'{{ assistant_id }}',
'{{ region }}'
RETURNING
assistant_association
;

DELETE examples

Deletes an assistant association.

DELETE FROM aws.qconnect.assistant_associations
WHERE assistant_association_id = '{{ assistant_association_id }}' --required
AND assistant_id = '{{ assistant_id }}' --required
AND region = '{{ region }}' --required
;