DeletePartnerEventSourceCommand

This operation is used by SaaS partners to delete a partner event source. This operation is not used by Amazon Web Services customers.

When you delete an event source, the status of the corresponding partner event bus in the Amazon Web Services customer account becomes DELETED.

Example Syntax

Use a bare-bones client and the command you need to make an API call.

import { EventBridgeClient, DeletePartnerEventSourceCommand } from "@aws-sdk/client-eventbridge"; // ES Modules import
// const { EventBridgeClient, DeletePartnerEventSourceCommand } = require("@aws-sdk/client-eventbridge"); // CommonJS import
const client = new EventBridgeClient(config);
const input = { // DeletePartnerEventSourceRequest
  Name: "STRING_VALUE", // required
  Account: "STRING_VALUE", // required
};
const command = new DeletePartnerEventSourceCommand(input);
const response = await client.send(command);
// {};

DeletePartnerEventSourceCommand Input

Parameter
Type
Description
Account
Required
string | undefined

The Amazon Web Services account ID of the Amazon Web Services customer that the event source was created for.

Name
Required
string | undefined

The name of the event source to delete.

DeletePartnerEventSourceCommand Output

Parameter
Type
Description
$metadata
Required
ResponseMetadata
Metadata pertaining to this request.

Throws

Name
Fault
Details
ConcurrentModificationException
client

There is concurrent modification on a rule, target, archive, or replay.

InternalException
server

This exception occurs due to unexpected causes.

OperationDisabledException
client

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

EventBridgeServiceException
Base exception class for all service exceptions from EventBridge service.