deleteContentAssociation method

Future<void> deleteContentAssociation({
  1. required String contentAssociationId,
  2. required String contentId,
  3. required String knowledgeBaseId,
})

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.

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<void> deleteContentAssociation({
  required String contentAssociationId,
  required String contentId,
  required String knowledgeBaseId,
}) async {
  final response = await _protocol.send(
    payload: null,
    method: 'DELETE',
    requestUri:
        '/knowledgeBases/${Uri.encodeComponent(knowledgeBaseId)}/contents/${Uri.encodeComponent(contentId)}/associations/${Uri.encodeComponent(contentAssociationId)}',
    exceptionFnMap: _exceptionFns,
  );
}