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

Fields

NameDatatypeDescription
assistant_association_arnstring
assistant_arnstring
assistant_association_idstring
assistant_idstring
associationobject
association_typestring
tagsarray
regionstringAWS region.

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

Methods

NameResourceAccessible byRequired Params
create_resourceassistant_associationsINSERTAssociation, AssociationType, AssistantId, region
delete_resourceassistant_associationsDELETEIdentifier, region
update_resourceassistant_associationsUPDATEIdentifier, PatchDocument, region
list_resourcesassistant_associations_list_onlySELECTregion
get_resourceassistant_associationsSELECTIdentifier, region

SELECT examples

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 awscc.wisdom.assistant_associations
WHERE
region = '{{ region }}' AND
Identifier = '{{ assistant_association_id }}|{{ assistant_id }}';

INSERT example

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

/*+ create */
INSERT INTO awscc.wisdom.assistant_associations (
AssistantId,
Association,
AssociationType,
region
)
SELECT
'{{ assistant_id }}',
'{{ association }}',
'{{ association_type }}',
'{{ region }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

DELETE example

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

wisdom:CreateAssistantAssociation,
wisdom:TagResource