import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { SendMessageRequest, SendMessageResponse } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; /** * @public * * The input for {@link SendMessageCommand}. */ export interface SendMessageCommandInput extends SendMessageRequest { } /** * @public * * The output of {@link SendMessageCommand}. */ export interface SendMessageCommandOutput extends SendMessageResponse, __MetadataBearer { } declare const SendMessageCommand_base: { new (input: SendMessageCommandInput): import("@smithy/core/client").CommandImpl; new (input: SendMessageCommandInput): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions; }; /** *

Sends a message.

*

For security recommendations, see Connect Customer Chat security best practices.

* *

* ConnectionToken is used for invoking this API instead of * ParticipantToken.

*
*

The Amazon Connect Participant Service APIs do not use Signature Version 4 * authentication.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { ConnectParticipantClient, SendMessageCommand } from "@aws-sdk/client-connectparticipant"; // ES Modules import * // const { ConnectParticipantClient, SendMessageCommand } = require("@aws-sdk/client-connectparticipant"); // CommonJS import * // import type { ConnectParticipantClientConfig } from "@aws-sdk/client-connectparticipant"; * const config = {}; // type is ConnectParticipantClientConfig * const client = new ConnectParticipantClient(config); * const input = { // SendMessageRequest * ContentType: "STRING_VALUE", // required * Content: "STRING_VALUE", // required * ClientToken: "STRING_VALUE", * ConnectionToken: "STRING_VALUE", // required * }; * const command = new SendMessageCommand(input); * const response = await client.send(command); * // { // SendMessageResponse * // Id: "STRING_VALUE", * // AbsoluteTime: "STRING_VALUE", * // MessageMetadata: { // MessageProcessingMetadata * // MessageProcessingStatus: "PROCESSING" || "FAILED" || "REJECTED", * // }, * // }; * * ``` * * @param SendMessageCommandInput - {@link SendMessageCommandInput} * @returns {@link SendMessageCommandOutput} * @see {@link SendMessageCommandInput} for command's `input` shape. * @see {@link SendMessageCommandOutput} for command's `response` shape. * @see {@link ConnectParticipantClientResolvedConfig | config} for ConnectParticipantClient's `config` shape. * * @throws {@link AccessDeniedException} (client fault) *

You do not have sufficient access to perform this action.

* * @throws {@link InternalServerException} (server fault) *

This exception occurs when there is an internal failure in the Amazon Connect service.

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

The request was denied due to request throttling.

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

The input fails to satisfy the constraints specified by Amazon Connect.

* * @throws {@link ConnectParticipantServiceException} *

Base exception class for all service exceptions from ConnectParticipant service.

* * * @public */ export declare class SendMessageCommand extends SendMessageCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: SendMessageRequest; output: SendMessageResponse; }; sdk: { input: SendMessageCommandInput; output: SendMessageCommandOutput; }; }; }