import { Command as $Command } from "@smithy/smithy-client"; import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { EventBridgeClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../EventBridgeClient"; import type { CreateEventBusRequest, CreateEventBusResponse } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link CreateEventBusCommand}. */ export interface CreateEventBusCommandInput extends CreateEventBusRequest { } /** * @public * * The output of {@link CreateEventBusCommand}. */ export interface CreateEventBusCommandOutput extends CreateEventBusResponse, __MetadataBearer { } declare const CreateEventBusCommand_base: { new (input: CreateEventBusCommandInput): import("@smithy/smithy-client").CommandImpl; new (input: CreateEventBusCommandInput): import("@smithy/smithy-client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions; }; /** *

Creates a new event bus within your account. This can be a custom event bus which you can * use to receive events from your custom applications and services, or it can be a partner event * bus which can be matched to a partner event source.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { EventBridgeClient, CreateEventBusCommand } from "@aws-sdk/client-eventbridge"; // ES Modules import * // const { EventBridgeClient, CreateEventBusCommand } = require("@aws-sdk/client-eventbridge"); // CommonJS import * // import type { EventBridgeClientConfig } from "@aws-sdk/client-eventbridge"; * const config = {}; // type is EventBridgeClientConfig * const client = new EventBridgeClient(config); * const input = { // CreateEventBusRequest * Name: "STRING_VALUE", // required * EventSourceName: "STRING_VALUE", * Description: "STRING_VALUE", * KmsKeyIdentifier: "STRING_VALUE", * DeadLetterConfig: { // DeadLetterConfig * Arn: "STRING_VALUE", * }, * LogConfig: { // LogConfig * IncludeDetail: "NONE" || "FULL", * Level: "OFF" || "ERROR" || "INFO" || "TRACE", * }, * Tags: [ // TagList * { // Tag * Key: "STRING_VALUE", // required * Value: "STRING_VALUE", // required * }, * ], * }; * const command = new CreateEventBusCommand(input); * const response = await client.send(command); * // { // CreateEventBusResponse * // EventBusArn: "STRING_VALUE", * // Description: "STRING_VALUE", * // KmsKeyIdentifier: "STRING_VALUE", * // DeadLetterConfig: { // DeadLetterConfig * // Arn: "STRING_VALUE", * // }, * // LogConfig: { // LogConfig * // IncludeDetail: "NONE" || "FULL", * // Level: "OFF" || "ERROR" || "INFO" || "TRACE", * // }, * // }; * * ``` * * @param CreateEventBusCommandInput - {@link CreateEventBusCommandInput} * @returns {@link CreateEventBusCommandOutput} * @see {@link CreateEventBusCommandInput} for command's `input` shape. * @see {@link CreateEventBusCommandOutput} for command's `response` shape. * @see {@link EventBridgeClientResolvedConfig | config} for EventBridgeClient'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 InvalidStateException} (client fault) *

The specified state is not a valid state for an event source.

* * @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 ResourceNotFoundException} (client fault) *

An entity that you specified does not exist.

* * @throws {@link EventBridgeServiceException} *

Base exception class for all service exceptions from EventBridge service.

* * * @public */ export declare class CreateEventBusCommand extends CreateEventBusCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: CreateEventBusRequest; output: CreateEventBusResponse; }; sdk: { input: CreateEventBusCommandInput; output: CreateEventBusCommandOutput; }; }; }