import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { CreateMessageTemplateAttachmentRequest, CreateMessageTemplateAttachmentResponse } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; /** * @public * * The input for {@link CreateMessageTemplateAttachmentCommand}. */ export interface CreateMessageTemplateAttachmentCommandInput extends CreateMessageTemplateAttachmentRequest { } /** * @public * * The output of {@link CreateMessageTemplateAttachmentCommand}. */ export interface CreateMessageTemplateAttachmentCommandOutput extends CreateMessageTemplateAttachmentResponse, __MetadataBearer { } declare const CreateMessageTemplateAttachmentCommand_base: { new (input: CreateMessageTemplateAttachmentCommandInput): import("@smithy/core/client").CommandImpl; new (input: CreateMessageTemplateAttachmentCommandInput): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions; }; /** *

Uploads an attachment file to the specified Amazon Q in Connect message template. The name of the message template attachment has to be unique for each message template referenced by the $LATEST qualifier. The body of the attachment file should be encoded using base64 encoding. After the file is uploaded, you can use the pre-signed Amazon S3 URL returned in response to download the uploaded file.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { QConnectClient, CreateMessageTemplateAttachmentCommand } from "@aws-sdk/client-qconnect"; // ES Modules import * // const { QConnectClient, CreateMessageTemplateAttachmentCommand } = 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 = { // CreateMessageTemplateAttachmentRequest * knowledgeBaseId: "STRING_VALUE", // required * messageTemplateId: "STRING_VALUE", // required * contentDisposition: "STRING_VALUE", // required * name: "STRING_VALUE", // required * body: "STRING_VALUE", // required * clientToken: "STRING_VALUE", * }; * const command = new CreateMessageTemplateAttachmentCommand(input); * const response = await client.send(command); * // { // CreateMessageTemplateAttachmentResponse * // attachment: { // MessageTemplateAttachment * // contentDisposition: "STRING_VALUE", // required * // name: "STRING_VALUE", // required * // uploadedTime: new Date("TIMESTAMP"), // required * // url: "STRING_VALUE", // required * // urlExpiry: new Date("TIMESTAMP"), // required * // attachmentId: "STRING_VALUE", // required * // }, * // }; * * ``` * * @param CreateMessageTemplateAttachmentCommandInput - {@link CreateMessageTemplateAttachmentCommandInput} * @returns {@link CreateMessageTemplateAttachmentCommandOutput} * @see {@link CreateMessageTemplateAttachmentCommandInput} for command's `input` shape. * @see {@link CreateMessageTemplateAttachmentCommandOutput} 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 CreateMessageTemplateAttachmentCommand extends CreateMessageTemplateAttachmentCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: CreateMessageTemplateAttachmentRequest; output: CreateMessageTemplateAttachmentResponse; }; sdk: { input: CreateMessageTemplateAttachmentCommandInput; output: CreateMessageTemplateAttachmentCommandOutput; }; }; }