import { Command as $Command } from "@smithy/smithy-client"; import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { EventBridgeClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../EventBridgeClient"; import type { PutEventsRequest, PutEventsResponse } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link PutEventsCommand}. */ export interface PutEventsCommandInput extends PutEventsRequest { } /** * @public * * The output of {@link PutEventsCommand}. */ export interface PutEventsCommandOutput extends PutEventsResponse, __MetadataBearer { } declare const PutEventsCommand_base: { new (input: PutEventsCommandInput): import("@smithy/smithy-client").CommandImpl; new (input: PutEventsCommandInput): import("@smithy/smithy-client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions; }; /** *

Sends custom events to Amazon EventBridge so that they can be matched to rules.

*

You can batch multiple event entries into one request for efficiency. * However, the total entry size must be less than 256KB. You can calculate the entry size before you send the events. * For more information, see Calculating PutEvents event entry * size in the * Amazon EventBridge User Guide * .

*

PutEvents accepts the data in JSON format. For the JSON number (integer) data type, the * constraints are: a minimum value of -9,223,372,036,854,775,808 and a maximum value of * 9,223,372,036,854,775,807.

* *

PutEvents will only process nested JSON up to 1000 levels deep.

*
* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { EventBridgeClient, PutEventsCommand } from "@aws-sdk/client-eventbridge"; // ES Modules import * // const { EventBridgeClient, PutEventsCommand } = require("@aws-sdk/client-eventbridge"); // CommonJS import * // import type { EventBridgeClientConfig } from "@aws-sdk/client-eventbridge"; * const config = {}; // type is EventBridgeClientConfig * const client = new EventBridgeClient(config); * const input = { // PutEventsRequest * Entries: [ // PutEventsRequestEntryList // required * { // PutEventsRequestEntry * Time: new Date("TIMESTAMP"), * Source: "STRING_VALUE", * Resources: [ // EventResourceList * "STRING_VALUE", * ], * DetailType: "STRING_VALUE", * Detail: "STRING_VALUE", * EventBusName: "STRING_VALUE", * TraceHeader: "STRING_VALUE", * }, * ], * EndpointId: "STRING_VALUE", * }; * const command = new PutEventsCommand(input); * const response = await client.send(command); * // { // PutEventsResponse * // FailedEntryCount: Number("int"), * // Entries: [ // PutEventsResultEntryList * // { // PutEventsResultEntry * // EventId: "STRING_VALUE", * // ErrorCode: "STRING_VALUE", * // ErrorMessage: "STRING_VALUE", * // }, * // ], * // }; * * ``` * * @param PutEventsCommandInput - {@link PutEventsCommandInput} * @returns {@link PutEventsCommandOutput} * @see {@link PutEventsCommandInput} for command's `input` shape. * @see {@link PutEventsCommandOutput} for command's `response` shape. * @see {@link EventBridgeClientResolvedConfig | config} for EventBridgeClient's `config` shape. * * @throws {@link InternalException} (server fault) *

This exception occurs due to unexpected causes.

* * @throws {@link EventBridgeServiceException} *

Base exception class for all service exceptions from EventBridge service.

* * * @public */ export declare class PutEventsCommand extends PutEventsCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: PutEventsRequest; output: PutEventsResponse; }; sdk: { input: PutEventsCommandInput; output: PutEventsCommandOutput; }; }; }