import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { PutEventsRequest, PutEventsResponse } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; /** * @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/core/client").CommandImpl; new (input: PutEventsCommandInput): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions; }; /** *

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

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { CloudWatchEventsClient, PutEventsCommand } from "@aws-sdk/client-cloudwatch-events"; // ES Modules import * // const { CloudWatchEventsClient, PutEventsCommand } = require("@aws-sdk/client-cloudwatch-events"); // CommonJS import * // import type { CloudWatchEventsClientConfig } from "@aws-sdk/client-cloudwatch-events"; * const config = {}; // type is CloudWatchEventsClientConfig * const client = new CloudWatchEventsClient(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", * }, * ], * }; * 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 CloudWatchEventsClientResolvedConfig | config} for CloudWatchEventsClient's `config` shape. * * @throws {@link InternalException} (server fault) *

This exception occurs due to unexpected causes.

* * @throws {@link CloudWatchEventsServiceException} *

Base exception class for all service exceptions from CloudWatchEvents 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; }; }; }