- Navigation GuideYou are on a Command (operation) page with structural examples. Use the navigation breadcrumb if you would like to return to the Client landing page.
DeleteContentAssociationCommand
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.
Example Syntax
Use a bare-bones client and the command you need to make an API call.
import { QConnectClient, DeleteContentAssociationCommand } from "@aws-sdk/client-qconnect"; // ES Modules import
// const { QConnectClient, DeleteContentAssociationCommand } = require("@aws-sdk/client-qconnect"); // CommonJS import
const client = new QConnectClient(config);
const input = { // DeleteContentAssociationRequest
knowledgeBaseId: "STRING_VALUE", // required
contentId: "STRING_VALUE", // required
contentAssociationId: "STRING_VALUE", // required
};
const command = new DeleteContentAssociationCommand(input);
const response = await client.send(command);
// {};
DeleteContentAssociationCommand Input
See DeleteContentAssociationCommandInput for more details
Parameter | Type | Description |
---|
Parameter | Type | Description |
---|---|---|
contentAssociationId Required | string | undefined | The identifier of the content association. Can be either the ID or the ARN. URLs cannot contain the ARN. |
contentId Required | string | undefined | The identifier of the content. |
knowledgeBaseId Required | string | undefined | The identifier of the knowledge base. |
DeleteContentAssociationCommand Output
See DeleteContentAssociationCommandOutput for details
Parameter | Type | Description |
---|
Parameter | Type | Description |
---|---|---|
$metadata Required | ResponseMetadata | Metadata pertaining to this request. |
Throws
Name | Fault | Details |
---|
Name | Fault | Details |
---|---|---|
AccessDeniedException | client | You do not have sufficient access to perform this action. |
ResourceNotFoundException | client | The specified resource does not exist. |
ValidationException | client | The input fails to satisfy the constraints specified by a service. |
QConnectServiceException | Base exception class for all service exceptions from QConnect service. |