Jump to Content

This API Documentation is now deprecated

We are excited to announce our new API Documentation.

Class PutPartnerEventsCommandProtected

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.

import { CloudWatchEventsClient, PutPartnerEventsCommand } from "@aws-sdk/client-cloudwatch-events"; // ES Modules import
// const { CloudWatchEventsClient, PutPartnerEventsCommand } = require("@aws-sdk/client-cloudwatch-events"); // CommonJS import
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

Returns

PutPartnerEventsCommandOutput

See

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.

Hierarchy

Constructors

Properties

Methods

Constructors

Properties

Methods