import { Command as $Command } from "@smithy/core/client"; import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { IoTEventsDataClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../IoTEventsDataClient"; import type { BatchPutMessageRequest, BatchPutMessageResponse } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link BatchPutMessageCommand}. */ export interface BatchPutMessageCommandInput extends BatchPutMessageRequest { } /** * @public * * The output of {@link BatchPutMessageCommand}. */ export interface BatchPutMessageCommandOutput extends BatchPutMessageResponse, __MetadataBearer { } declare const BatchPutMessageCommand_base: { new (input: BatchPutMessageCommandInput): import("@smithy/core/client").CommandImpl; new (input: BatchPutMessageCommandInput): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): { [x: string]: unknown; }; }; /** *

Sends a set of messages to the IoT Events system. Each message payload is transformed into * the input you specify ("inputName") and ingested into any detectors that monitor * that input. If multiple messages are sent, the order in which the messages are processed isn't * guaranteed. To guarantee ordering, you must send messages one at a time and wait for a * successful response.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { IoTEventsDataClient, BatchPutMessageCommand } from "@aws-sdk/client-iot-events-data"; // ES Modules import * // const { IoTEventsDataClient, BatchPutMessageCommand } = require("@aws-sdk/client-iot-events-data"); // CommonJS import * // import type { IoTEventsDataClientConfig } from "@aws-sdk/client-iot-events-data"; * const config = {}; // type is IoTEventsDataClientConfig * const client = new IoTEventsDataClient(config); * const input = { // BatchPutMessageRequest * messages: [ // Messages // required * { // Message * messageId: "STRING_VALUE", // required * inputName: "STRING_VALUE", // required * payload: new Uint8Array(), // e.g. Buffer.from("") or new TextEncoder().encode("") // required * timestamp: { // TimestampValue * timeInMillis: Number("long"), * }, * }, * ], * }; * const command = new BatchPutMessageCommand(input); * const response = await client.send(command); * // { // BatchPutMessageResponse * // BatchPutMessageErrorEntries: [ // BatchPutMessageErrorEntries * // { // BatchPutMessageErrorEntry * // messageId: "STRING_VALUE", * // errorCode: "ResourceNotFoundException" || "InvalidRequestException" || "InternalFailureException" || "ServiceUnavailableException" || "ThrottlingException", * // errorMessage: "STRING_VALUE", * // }, * // ], * // }; * * ``` * * @param BatchPutMessageCommandInput - {@link BatchPutMessageCommandInput} * @returns {@link BatchPutMessageCommandOutput} * @see {@link BatchPutMessageCommandInput} for command's `input` shape. * @see {@link BatchPutMessageCommandOutput} for command's `response` shape. * @see {@link IoTEventsDataClientResolvedConfig | config} for IoTEventsDataClient's `config` shape. * * @throws {@link InternalFailureException} (server fault) *

An internal failure occurred.

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

The request was invalid.

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

The service is currently unavailable.

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

The request could not be completed due to throttling.

* * @throws {@link IoTEventsDataServiceException} *

Base exception class for all service exceptions from IoTEventsData service.

* * * @public */ export declare class BatchPutMessageCommand extends BatchPutMessageCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: BatchPutMessageRequest; output: BatchPutMessageResponse; }; sdk: { input: BatchPutMessageCommandInput; output: BatchPutMessageCommandOutput; }; }; }