getContentAssociation method
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.
May throw AccessDeniedException.
May throw ResourceNotFoundException.
May throw UnauthorizedException.
May throw ValidationException.
Parameter contentAssociationId :
The identifier of the content association. Can be either the ID or the
ARN. URLs cannot contain the ARN.
Parameter contentId :
The identifier of the content.
Parameter knowledgeBaseId :
The identifier of the knowledge base.
Implementation
Future<GetContentAssociationResponse> getContentAssociation({
required String contentAssociationId,
required String contentId,
required String knowledgeBaseId,
}) async {
final response = await _protocol.send(
payload: null,
method: 'GET',
requestUri:
'/knowledgeBases/${Uri.encodeComponent(knowledgeBaseId)}/contents/${Uri.encodeComponent(contentId)}/associations/${Uri.encodeComponent(contentAssociationId)}',
exceptionFnMap: _exceptionFns,
);
return GetContentAssociationResponse.fromJson(response);
}