import { Command as $Command } from "@smithy/smithy-client"; import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { CreateVpcEndpointRequest, CreateVpcEndpointResponse } from "../models/models_0"; import type { OpenSearchServerlessClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../OpenSearchServerlessClient"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link CreateVpcEndpointCommand}. */ export interface CreateVpcEndpointCommandInput extends CreateVpcEndpointRequest { } /** * @public * * The output of {@link CreateVpcEndpointCommand}. */ export interface CreateVpcEndpointCommandOutput extends CreateVpcEndpointResponse, __MetadataBearer { } declare const CreateVpcEndpointCommand_base: { new (input: CreateVpcEndpointCommandInput): import("@smithy/smithy-client").CommandImpl; new (input: CreateVpcEndpointCommandInput): import("@smithy/smithy-client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions; }; /** *

Creates an OpenSearch Serverless-managed interface VPC endpoint. For more information, see Access Amazon OpenSearch Serverless using an interface endpoint.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { OpenSearchServerlessClient, CreateVpcEndpointCommand } from "@aws-sdk/client-opensearchserverless"; // ES Modules import * // const { OpenSearchServerlessClient, CreateVpcEndpointCommand } = require("@aws-sdk/client-opensearchserverless"); // CommonJS import * // import type { OpenSearchServerlessClientConfig } from "@aws-sdk/client-opensearchserverless"; * const config = {}; // type is OpenSearchServerlessClientConfig * const client = new OpenSearchServerlessClient(config); * const input = { // CreateVpcEndpointRequest * name: "STRING_VALUE", // required * vpcId: "STRING_VALUE", // required * subnetIds: [ // SubnetIds // required * "STRING_VALUE", * ], * securityGroupIds: [ // SecurityGroupIds * "STRING_VALUE", * ], * clientToken: "STRING_VALUE", * }; * const command = new CreateVpcEndpointCommand(input); * const response = await client.send(command); * // { // CreateVpcEndpointResponse * // createVpcEndpointDetail: { // CreateVpcEndpointDetail * // id: "STRING_VALUE", * // name: "STRING_VALUE", * // status: "STRING_VALUE", * // }, * // }; * * ``` * * @param CreateVpcEndpointCommandInput - {@link CreateVpcEndpointCommandInput} * @returns {@link CreateVpcEndpointCommandOutput} * @see {@link CreateVpcEndpointCommandInput} for command's `input` shape. * @see {@link CreateVpcEndpointCommandOutput} for command's `response` shape. * @see {@link OpenSearchServerlessClientResolvedConfig | config} for OpenSearchServerlessClient's `config` shape. * * @throws {@link ConflictException} (client fault) *

When creating a resource, thrown when a resource with the same name already exists or is being created. When deleting a resource, thrown when the resource is not in the ACTIVE, FAILED, or UPDATE_FAILED state.

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

Thrown when an error internal to the service occurs while processing a request.

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

Thrown when you attempt to create more resources than the service allows based on service quotas.

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

Thrown when the HTTP request contains invalid input or is missing required input.

* * @throws {@link OpenSearchServerlessServiceException} *

Base exception class for all service exceptions from OpenSearchServerless service.

* * * @public */ export declare class CreateVpcEndpointCommand extends CreateVpcEndpointCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: CreateVpcEndpointRequest; output: CreateVpcEndpointResponse; }; sdk: { input: CreateVpcEndpointCommandInput; output: CreateVpcEndpointCommandOutput; }; }; }