import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { CreateAIPromptRequest, CreateAIPromptResponse } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; /** * @public * * The input for {@link CreateAIPromptCommand}. */ export interface CreateAIPromptCommandInput extends CreateAIPromptRequest { } /** * @public * * The output of {@link CreateAIPromptCommand}. */ export interface CreateAIPromptCommandOutput extends CreateAIPromptResponse, __MetadataBearer { } declare const CreateAIPromptCommand_base: { new (input: CreateAIPromptCommandInput): import("@smithy/core/client").CommandImpl; new (input: CreateAIPromptCommandInput): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions; }; /** *

Creates an Amazon Q in Connect AI Prompt.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { QConnectClient, CreateAIPromptCommand } from "@aws-sdk/client-qconnect"; // ES Modules import * // const { QConnectClient, CreateAIPromptCommand } = require("@aws-sdk/client-qconnect"); // CommonJS import * // import type { QConnectClientConfig } from "@aws-sdk/client-qconnect"; * const config = {}; // type is QConnectClientConfig * const client = new QConnectClient(config); * const input = { // CreateAIPromptRequest * clientToken: "STRING_VALUE", * assistantId: "STRING_VALUE", // required * name: "STRING_VALUE", // required * type: "STRING_VALUE", // required * templateConfiguration: { // AIPromptTemplateConfiguration Union: only one key present * textFullAIPromptEditTemplateConfiguration: { // TextFullAIPromptEditTemplateConfiguration * text: "STRING_VALUE", // required * }, * }, * visibilityStatus: "STRING_VALUE", // required * templateType: "STRING_VALUE", // required * modelId: "STRING_VALUE", // required * apiFormat: "STRING_VALUE", // required * tags: { // Tags * "": "STRING_VALUE", * }, * description: "STRING_VALUE", * inferenceConfiguration: { // AIPromptInferenceConfiguration * temperature: Number("float"), * topP: Number("float"), * topK: Number("int"), * maxTokensToSample: Number("int"), * }, * }; * const command = new CreateAIPromptCommand(input); * const response = await client.send(command); * // { // CreateAIPromptResponse * // aiPrompt: { // AIPromptData * // assistantId: "STRING_VALUE", // required * // assistantArn: "STRING_VALUE", // required * // aiPromptId: "STRING_VALUE", // required * // aiPromptArn: "STRING_VALUE", // required * // name: "STRING_VALUE", // required * // type: "STRING_VALUE", // required * // templateType: "STRING_VALUE", // required * // modelId: "STRING_VALUE", // required * // apiFormat: "STRING_VALUE", // required * // templateConfiguration: { // AIPromptTemplateConfiguration Union: only one key present * // textFullAIPromptEditTemplateConfiguration: { // TextFullAIPromptEditTemplateConfiguration * // text: "STRING_VALUE", // required * // }, * // }, * // inferenceConfiguration: { // AIPromptInferenceConfiguration * // temperature: Number("float"), * // topP: Number("float"), * // topK: Number("int"), * // maxTokensToSample: Number("int"), * // }, * // modifiedTime: new Date("TIMESTAMP"), * // description: "STRING_VALUE", * // visibilityStatus: "STRING_VALUE", // required * // tags: { // Tags * // "": "STRING_VALUE", * // }, * // origin: "STRING_VALUE", * // status: "STRING_VALUE", * // }, * // }; * * ``` * * @param CreateAIPromptCommandInput - {@link CreateAIPromptCommandInput} * @returns {@link CreateAIPromptCommandOutput} * @see {@link CreateAIPromptCommandInput} for command's `input` shape. * @see {@link CreateAIPromptCommandOutput} for command's `response` shape. * @see {@link QConnectClientResolvedConfig | config} for QConnectClient's `config` shape. * * @throws {@link AccessDeniedException} (client fault) *

You do not have sufficient access to perform this action.

* * @throws {@link ConflictException} (client fault) *

The request could not be processed because of conflict in the current state of the resource. For example, if you're using a Create API (such as CreateAssistant) that accepts name, a conflicting resource (usually with the same name) is being created or mutated.

* * @throws {@link ResourceNotFoundException} (client fault) *

The specified resource does not exist.

* * @throws {@link ServiceQuotaExceededException} (client fault) *

You've exceeded your service quota. To perform the requested action, remove some of the relevant resources, or use service quotas to request a service quota increase.

* * @throws {@link ThrottlingException} (client fault) *

The throttling limit has been exceeded.

* * @throws {@link UnauthorizedException} (client fault) *

You do not have permission to perform this action.

* * @throws {@link ValidationException} (client fault) *

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

* * @throws {@link QConnectServiceException} *

Base exception class for all service exceptions from QConnect service.

* * * @public */ export declare class CreateAIPromptCommand extends CreateAIPromptCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: CreateAIPromptRequest; output: CreateAIPromptResponse; }; sdk: { input: CreateAIPromptCommandInput; output: CreateAIPromptCommandOutput; }; }; }