We are excited to announce our new API Documentation.
Protected
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.
Use a bare-bones client and the command you need to make an API call.
import { CloudWatchEventsClient, PutPartnerEventsCommand } from "@aws-sdk/client-cloudwatch-events"; // ES Modules import// const { CloudWatchEventsClient, PutPartnerEventsCommand } = require("@aws-sdk/client-cloudwatch-events"); // CommonJS importconst 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",// },// ],// };
PutPartnerEventsCommandInput
PutPartnerEventsCommandOutput
input
response
config
InternalException (server fault)
This exception occurs due to unexpected causes.
OperationDisabledException (client fault)
The operation you are attempting is not available in this region.
CloudWatchEventsServiceException
Base exception class for all service exceptions from CloudWatchEvents service.
Readonly
Static
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.
Param
PutPartnerEventsCommandInput
Returns
PutPartnerEventsCommandOutput
See
input
shape.response
shape.config
shape.Throws
InternalException (server fault)
This exception occurs due to unexpected causes.
Throws
OperationDisabledException (client fault)
The operation you are attempting is not available in this region.
Throws
CloudWatchEventsServiceException
Base exception class for all service exceptions from CloudWatchEvents service.