Skip to main content

content_associations

Creates, updates, deletes, gets or lists a content_associations resource.

Overview

Namecontent_associations
TypeResource
Idaws.qconnect.content_associations

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
association_dataobjectThe contents of a content association.
association_typestringThe type of association. (AMAZON_CONNECT_GUIDE)
content_arnstringThe Amazon Resource Name (ARN) of the content. (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>)
content_association_arnstringThe Amazon Resource Name (ARN) of the content 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>)
content_association_idstringThe identifier of the content association. Can be either the ID or the ARN. URLs cannot contain the ARN. (pattern: <code>[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}</code>)
content_idstringThe identifier of the content. (pattern: <code>[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}</code>)
knowledge_base_arnstringThe Amazon Resource Name (ARN) of the knowledge base. (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>)
knowledge_base_idstringThe identifier of the knowledge base. (pattern: <code>[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}</code>)
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_content_associationselectknowledge_base_id, content_id, content_association_id, regionReturns the content association. For more information about content associations--what they are and when they are used--see Integrate Amazon Q in Connect with step-by-step guides in the Amazon Connect Administrator Guide.
list_content_associationsselectknowledge_base_id, content_id, regionnextToken, maxResultsLists the content associations. For more information about content associations--what they are and when they are used--see Integrate Amazon Q in Connect with step-by-step guides in the Amazon Connect Administrator Guide.
create_content_associationinsertknowledge_base_id, content_id, region, associationType, associationCreates an association between a content resource in a knowledge base and step-by-step guides. Step-by-step guides offer instructions to agents for resolving common customer issues. You create a content association to integrate Amazon Q in Connect and step-by-step guides. After you integrate Amazon Q and step-by-step guides, when Amazon Q provides a recommendation to an agent based on the intent that it's detected, it also provides them with the option to start the step-by-step guide that you have associated with the content. Note the following limitations: You can create only one content association for each content resource in a knowledge base. You can associate a step-by-step guide with multiple content resources. For more information, see Integrate Amazon Q in Connect with step-by-step guides in the Amazon Connect Administrator Guide.
delete_content_associationdeleteknowledge_base_id, content_id, content_association_id, regionDeletes the content association. For more information about content associations--what they are and when they are used--see Integrate Amazon Q in Connect with step-by-step guides in the Amazon Connect Administrator Guide.

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
content_association_idstringThe identifier of the content association. Can be either the ID or the ARN. URLs cannot contain the ARN.
content_idstringThe identifier of the content.
knowledge_base_idstringThe identifier of the knowledge base.
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

Returns the content association. For more information about content associations--what they are and when they are used--see Integrate Amazon Q in Connect with step-by-step guides in the Amazon Connect Administrator Guide.

SELECT
association_data,
association_type,
content_arn,
content_association_arn,
content_association_id,
content_id,
knowledge_base_arn,
knowledge_base_id,
tags
FROM aws.qconnect.content_associations
WHERE knowledge_base_id = '{{ knowledge_base_id }}' -- required
AND content_id = '{{ content_id }}' -- required
AND content_association_id = '{{ content_association_id }}' -- required
AND region = '{{ region }}' -- required
;

INSERT examples

Creates an association between a content resource in a knowledge base and step-by-step guides. Step-by-step guides offer instructions to agents for resolving common customer issues. You create a content association to integrate Amazon Q in Connect and step-by-step guides. After you integrate Amazon Q and step-by-step guides, when Amazon Q provides a recommendation to an agent based on the intent that it's detected, it also provides them with the option to start the step-by-step guide that you have associated with the content. Note the following limitations: You can create only one content association for each content resource in a knowledge base. You can associate a step-by-step guide with multiple content resources. For more information, see Integrate Amazon Q in Connect with step-by-step guides in the Amazon Connect Administrator Guide.

INSERT INTO aws.qconnect.content_associations (
clientToken,
associationType,
association,
tags,
knowledge_base_id,
content_id,
region
)
SELECT
'{{ clientToken }}',
'{{ associationType }}' /* required */,
'{{ association }}' /* required */,
'{{ tags }}',
'{{ knowledge_base_id }}',
'{{ content_id }}',
'{{ region }}'
RETURNING
content_association
;

DELETE examples

Deletes the content association. For more information about content associations--what they are and when they are used--see Integrate Amazon Q in Connect with step-by-step guides in the Amazon Connect Administrator Guide.

DELETE FROM aws.qconnect.content_associations
WHERE knowledge_base_id = '{{ knowledge_base_id }}' --required
AND content_id = '{{ content_id }}' --required
AND content_association_id = '{{ content_association_id }}' --required
AND region = '{{ region }}' --required
;