import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { CreatePartnerEventSourceRequest, CreatePartnerEventSourceResponse } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; /** * @public * * The input for {@link CreatePartnerEventSourceCommand}. */ export interface CreatePartnerEventSourceCommandInput extends CreatePartnerEventSourceRequest { } /** * @public * * The output of {@link CreatePartnerEventSourceCommand}. */ export interface CreatePartnerEventSourceCommandOutput extends CreatePartnerEventSourceResponse, __MetadataBearer { } declare const CreatePartnerEventSourceCommand_base: { new (input: CreatePartnerEventSourceCommandInput): import("@smithy/core/client").CommandImpl; new (input: CreatePartnerEventSourceCommandInput): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions; }; /** *

Called by an SaaS partner to create a partner event source. This operation is not used by * Amazon Web Services customers.

*

Each partner event source can be used by one Amazon Web Services account to create a matching partner * event bus in that Amazon Web Services account. A SaaS partner must create one partner event source for each * Amazon Web Services account that wants to receive those event types.

*

A partner event source creates events based on resources within the SaaS partner's service * or application.

*

An Amazon Web Services account that creates a partner event bus that matches the partner event source can * use that event bus to receive events from the partner, and then process them using Amazon Web Services Events * rules and targets.

*

Partner event source names follow this format:

*

* * partner_name/event_namespace/event_name * *

*

* partner_name is determined during partner registration and identifies * the partner to Amazon Web Services customers. event_namespace is determined by the * partner and is a way for the partner to categorize their events. * event_name is determined by the partner, and should uniquely identify * an event-generating resource within the partner system. The combination of * event_namespace and event_name should help Amazon Web Services * customers decide whether to create an event bus to receive these events.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { CloudWatchEventsClient, CreatePartnerEventSourceCommand } from "@aws-sdk/client-cloudwatch-events"; // ES Modules import * // const { CloudWatchEventsClient, CreatePartnerEventSourceCommand } = 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 = { // CreatePartnerEventSourceRequest * Name: "STRING_VALUE", // required * Account: "STRING_VALUE", // required * }; * const command = new CreatePartnerEventSourceCommand(input); * const response = await client.send(command); * // { // CreatePartnerEventSourceResponse * // EventSourceArn: "STRING_VALUE", * // }; * * ``` * * @param CreatePartnerEventSourceCommandInput - {@link CreatePartnerEventSourceCommandInput} * @returns {@link CreatePartnerEventSourceCommandOutput} * @see {@link CreatePartnerEventSourceCommandInput} for command's `input` shape. * @see {@link CreatePartnerEventSourceCommandOutput} for command's `response` shape. * @see {@link CloudWatchEventsClientResolvedConfig | config} for CloudWatchEventsClient's `config` shape. * * @throws {@link ConcurrentModificationException} (client fault) *

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

* * @throws {@link InternalException} (server fault) *

This exception occurs due to unexpected causes.

* * @throws {@link LimitExceededException} (client fault) *

The request failed because it attempted to create resource beyond the allowed service * quota.

* * @throws {@link OperationDisabledException} (client fault) *

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

* * @throws {@link ResourceAlreadyExistsException} (client fault) *

The resource you are trying to create already exists.

* * @throws {@link CloudWatchEventsServiceException} *

Base exception class for all service exceptions from CloudWatchEvents service.

* * * @public */ export declare class CreatePartnerEventSourceCommand extends CreatePartnerEventSourceCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: CreatePartnerEventSourceRequest; output: CreatePartnerEventSourceResponse; }; sdk: { input: CreatePartnerEventSourceCommandInput; output: CreatePartnerEventSourceCommandOutput; }; }; }