import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { PutPartnerEventsRequest, PutPartnerEventsResponse } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; /** * @public * * The input for {@link PutPartnerEventsCommand}. */ export interface PutPartnerEventsCommandInput extends PutPartnerEventsRequest { } /** * @public * * The output of {@link PutPartnerEventsCommand}. */ export interface PutPartnerEventsCommandOutput extends PutPartnerEventsResponse, __MetadataBearer { } declare const PutPartnerEventsCommand_base: { new (input: PutPartnerEventsCommandInput): import("@smithy/core/client").CommandImpl; new (input: PutPartnerEventsCommandInput): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions; }; /** *

This is used by SaaS partners to write events to a customer's partner event bus. Amazon Web Services * customers do not use this operation.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { CloudWatchEventsClient, PutPartnerEventsCommand } from "@aws-sdk/client-cloudwatch-events"; // ES Modules import * // const { CloudWatchEventsClient, PutPartnerEventsCommand } = 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 = { // PutPartnerEventsRequest * Entries: [ // PutPartnerEventsRequestEntryList // required * { // PutPartnerEventsRequestEntry * Time: new Date("TIMESTAMP"), * Source: "STRING_VALUE", * Resources: [ // EventResourceList * "STRING_VALUE", * ], * DetailType: "STRING_VALUE", * Detail: "STRING_VALUE", * }, * ], * }; * const command = new PutPartnerEventsCommand(input); * const response = await client.send(command); * // { // PutPartnerEventsResponse * // FailedEntryCount: Number("int"), * // Entries: [ // PutPartnerEventsResultEntryList * // { // PutPartnerEventsResultEntry * // EventId: "STRING_VALUE", * // ErrorCode: "STRING_VALUE", * // ErrorMessage: "STRING_VALUE", * // }, * // ], * // }; * * ``` * * @param PutPartnerEventsCommandInput - {@link PutPartnerEventsCommandInput} * @returns {@link PutPartnerEventsCommandOutput} * @see {@link PutPartnerEventsCommandInput} for command's `input` shape. * @see {@link PutPartnerEventsCommandOutput} 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 OperationDisabledException} (client fault) *

The operation you are attempting is not available in this region.

* * @throws {@link CloudWatchEventsServiceException} *

Base exception class for all service exceptions from CloudWatchEvents service.

* * * @public */ export declare class PutPartnerEventsCommand extends PutPartnerEventsCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: PutPartnerEventsRequest; output: PutPartnerEventsResponse; }; sdk: { input: PutPartnerEventsCommandInput; output: PutPartnerEventsCommandOutput; }; }; }