DeleteAIPromptCommand

Deletes an Amazon Q in Connect AI Prompt.

Example Syntax

Use a bare-bones client and the command you need to make an API call.

import { QConnectClient, DeleteAIPromptCommand } from "@aws-sdk/client-qconnect"; // ES Modules import
// const { QConnectClient, DeleteAIPromptCommand } = require("@aws-sdk/client-qconnect"); // CommonJS import
const client = new QConnectClient(config);
const input = { // DeleteAIPromptRequest
  assistantId: "STRING_VALUE", // required
  aiPromptId: "STRING_VALUE", // required
};
const command = new DeleteAIPromptCommand(input);
const response = await client.send(command);
// {};

DeleteAIPromptCommand Input

See DeleteAIPromptCommandInput for more details

Parameter
Type
Description
aiPromptId
Required
string | undefined

The identifier of the Amazon Q in Connect AI prompt. Can be either the ID or the ARN. URLs cannot contain the ARN.

assistantId
Required
string | undefined

The identifier of the Amazon Q in Connect assistant. Can be either the ID or the ARN. URLs cannot contain the ARN.

DeleteAIPromptCommand Output

Parameter
Type
Description
$metadata
Required
ResponseMetadata
Metadata pertaining to this request.

Throws

Name
Fault
Details
AccessDeniedException
client

You do not have sufficient access to perform this action.

ResourceNotFoundException
client

The specified resource does not exist.

ThrottlingException
client

The throttling limit has been exceeded.

ValidationException
client

The input fails to satisfy the constraints specified by a service.

QConnectServiceException
Base exception class for all service exceptions from QConnect service.