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

Creates an API destination, which is an HTTP invocation endpoint configured as a target * for events.

*

API destinations do not support private destinations, such as interface VPC * endpoints.

*

For more information, see API destinations in the * EventBridge User Guide.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { EventBridgeClient, CreateApiDestinationCommand } from "@aws-sdk/client-eventbridge"; // ES Modules import * // const { EventBridgeClient, CreateApiDestinationCommand } = 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 = { // CreateApiDestinationRequest * Name: "STRING_VALUE", // required * Description: "STRING_VALUE", * ConnectionArn: "STRING_VALUE", // required * InvocationEndpoint: "STRING_VALUE", // required * HttpMethod: "POST" || "GET" || "HEAD" || "OPTIONS" || "PUT" || "PATCH" || "DELETE", // required * InvocationRateLimitPerSecond: Number("int"), * }; * const command = new CreateApiDestinationCommand(input); * const response = await client.send(command); * // { // CreateApiDestinationResponse * // ApiDestinationArn: "STRING_VALUE", * // ApiDestinationState: "ACTIVE" || "INACTIVE", * // CreationTime: new Date("TIMESTAMP"), * // LastModifiedTime: new Date("TIMESTAMP"), * // }; * * ``` * * @param CreateApiDestinationCommandInput - {@link CreateApiDestinationCommandInput} * @returns {@link CreateApiDestinationCommandOutput} * @see {@link CreateApiDestinationCommandInput} for command's `input` shape. * @see {@link CreateApiDestinationCommandOutput} 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 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 CreateApiDestinationCommand extends CreateApiDestinationCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: CreateApiDestinationRequest; output: CreateApiDestinationResponse; }; sdk: { input: CreateApiDestinationCommandInput; output: CreateApiDestinationCommandOutput; }; }; }