import { Command as $Command } from "@smithy/smithy-client"; import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { EC2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../EC2Client"; import type { CreateVpcEndpointConnectionNotificationRequest, CreateVpcEndpointConnectionNotificationResult } from "../models/models_2"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link CreateVpcEndpointConnectionNotificationCommand}. */ export interface CreateVpcEndpointConnectionNotificationCommandInput extends CreateVpcEndpointConnectionNotificationRequest { } /** * @public * * The output of {@link CreateVpcEndpointConnectionNotificationCommand}. */ export interface CreateVpcEndpointConnectionNotificationCommandOutput extends CreateVpcEndpointConnectionNotificationResult, __MetadataBearer { } declare const CreateVpcEndpointConnectionNotificationCommand_base: { new (input: CreateVpcEndpointConnectionNotificationCommandInput): import("@smithy/smithy-client").CommandImpl; new (input: CreateVpcEndpointConnectionNotificationCommandInput): import("@smithy/smithy-client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions; }; /** *

Creates a connection notification for a specified VPC endpoint or VPC endpoint * service. A connection notification notifies you of specific endpoint events. You must * create an SNS topic to receive notifications. For more information, see Creating an Amazon SNS topic in * the Amazon SNS Developer Guide.

*

You can create a connection notification for interface endpoints only.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { EC2Client, CreateVpcEndpointConnectionNotificationCommand } from "@aws-sdk/client-ec2"; // ES Modules import * // const { EC2Client, CreateVpcEndpointConnectionNotificationCommand } = require("@aws-sdk/client-ec2"); // CommonJS import * // import type { EC2ClientConfig } from "@aws-sdk/client-ec2"; * const config = {}; // type is EC2ClientConfig * const client = new EC2Client(config); * const input = { // CreateVpcEndpointConnectionNotificationRequest * DryRun: true || false, * ServiceId: "STRING_VALUE", * VpcEndpointId: "STRING_VALUE", * ConnectionNotificationArn: "STRING_VALUE", // required * ConnectionEvents: [ // ValueStringList // required * "STRING_VALUE", * ], * ClientToken: "STRING_VALUE", * }; * const command = new CreateVpcEndpointConnectionNotificationCommand(input); * const response = await client.send(command); * // { // CreateVpcEndpointConnectionNotificationResult * // ConnectionNotification: { // ConnectionNotification * // ConnectionNotificationId: "STRING_VALUE", * // ServiceId: "STRING_VALUE", * // VpcEndpointId: "STRING_VALUE", * // ConnectionNotificationType: "Topic", * // ConnectionNotificationArn: "STRING_VALUE", * // ConnectionEvents: [ // ValueStringList * // "STRING_VALUE", * // ], * // ConnectionNotificationState: "Enabled" || "Disabled", * // ServiceRegion: "STRING_VALUE", * // }, * // ClientToken: "STRING_VALUE", * // }; * * ``` * * @param CreateVpcEndpointConnectionNotificationCommandInput - {@link CreateVpcEndpointConnectionNotificationCommandInput} * @returns {@link CreateVpcEndpointConnectionNotificationCommandOutput} * @see {@link CreateVpcEndpointConnectionNotificationCommandInput} for command's `input` shape. * @see {@link CreateVpcEndpointConnectionNotificationCommandOutput} for command's `response` shape. * @see {@link EC2ClientResolvedConfig | config} for EC2Client's `config` shape. * * @throws {@link EC2ServiceException} *

Base exception class for all service exceptions from EC2 service.

* * * @public */ export declare class CreateVpcEndpointConnectionNotificationCommand extends CreateVpcEndpointConnectionNotificationCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: CreateVpcEndpointConnectionNotificationRequest; output: CreateVpcEndpointConnectionNotificationResult; }; sdk: { input: CreateVpcEndpointConnectionNotificationCommandInput; output: CreateVpcEndpointConnectionNotificationCommandOutput; }; }; }