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 { CreateEndpointRequest, CreateEndpointResponse } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link CreateEndpointCommand}. */ export interface CreateEndpointCommandInput extends CreateEndpointRequest { } /** * @public * * The output of {@link CreateEndpointCommand}. */ export interface CreateEndpointCommandOutput extends CreateEndpointResponse, __MetadataBearer { } declare const CreateEndpointCommand_base: { new (input: CreateEndpointCommandInput): import("@smithy/smithy-client").CommandImpl; new (input: CreateEndpointCommandInput): import("@smithy/smithy-client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions; }; /** *

Creates a global endpoint. Global endpoints improve your application's availability by * making it regional-fault tolerant. To do this, you define a primary and secondary Region with * event buses in each Region. You also create a Amazon RouteĀ 53 health check that will * tell EventBridge to route events to the secondary Region when an "unhealthy" state is * encountered and events will be routed back to the primary Region when the health check reports * a "healthy" state.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { EventBridgeClient, CreateEndpointCommand } from "@aws-sdk/client-eventbridge"; // ES Modules import * // const { EventBridgeClient, CreateEndpointCommand } = 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 = { // CreateEndpointRequest * Name: "STRING_VALUE", // required * Description: "STRING_VALUE", * RoutingConfig: { // RoutingConfig * FailoverConfig: { // FailoverConfig * Primary: { // Primary * HealthCheck: "STRING_VALUE", // required * }, * Secondary: { // Secondary * Route: "STRING_VALUE", // required * }, * }, * }, * ReplicationConfig: { // ReplicationConfig * State: "ENABLED" || "DISABLED", * }, * EventBuses: [ // EndpointEventBusList // required * { // EndpointEventBus * EventBusArn: "STRING_VALUE", // required * }, * ], * RoleArn: "STRING_VALUE", * }; * const command = new CreateEndpointCommand(input); * const response = await client.send(command); * // { // CreateEndpointResponse * // Name: "STRING_VALUE", * // Arn: "STRING_VALUE", * // RoutingConfig: { // RoutingConfig * // FailoverConfig: { // FailoverConfig * // Primary: { // Primary * // HealthCheck: "STRING_VALUE", // required * // }, * // Secondary: { // Secondary * // Route: "STRING_VALUE", // required * // }, * // }, * // }, * // ReplicationConfig: { // ReplicationConfig * // State: "ENABLED" || "DISABLED", * // }, * // EventBuses: [ // EndpointEventBusList * // { // EndpointEventBus * // EventBusArn: "STRING_VALUE", // required * // }, * // ], * // RoleArn: "STRING_VALUE", * // State: "ACTIVE" || "CREATING" || "UPDATING" || "DELETING" || "CREATE_FAILED" || "UPDATE_FAILED" || "DELETE_FAILED", * // }; * * ``` * * @param CreateEndpointCommandInput - {@link CreateEndpointCommandInput} * @returns {@link CreateEndpointCommandOutput} * @see {@link CreateEndpointCommandInput} for command's `input` shape. * @see {@link CreateEndpointCommandOutput} for command's `response` shape. * @see {@link EventBridgeClientResolvedConfig | config} for EventBridgeClient's `config` shape. * * @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 ResourceAlreadyExistsException} (client fault) *

The resource you are trying to create already exists.

* * @throws {@link EventBridgeServiceException} *

Base exception class for all service exceptions from EventBridge service.

* * * @public */ export declare class CreateEndpointCommand extends CreateEndpointCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: CreateEndpointRequest; output: CreateEndpointResponse; }; sdk: { input: CreateEndpointCommandInput; output: CreateEndpointCommandOutput; }; }; }