import { Command as $Command } from "@smithy/core/client"; import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { AppRunnerClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../AppRunnerClient"; import type { CreateVpcConnectorRequest, CreateVpcConnectorResponse } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link CreateVpcConnectorCommand}. */ export interface CreateVpcConnectorCommandInput extends CreateVpcConnectorRequest { } /** * @public * * The output of {@link CreateVpcConnectorCommand}. */ export interface CreateVpcConnectorCommandOutput extends CreateVpcConnectorResponse, __MetadataBearer { } declare const CreateVpcConnectorCommand_base: { new (input: CreateVpcConnectorCommandInput): import("@smithy/core/client").CommandImpl; new (input: CreateVpcConnectorCommandInput): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): { [x: string]: unknown; }; }; /** *

Create an App Runner VPC connector resource. App Runner requires this resource when you want to associate your App Runner service to a custom Amazon Virtual Private Cloud * (Amazon VPC).

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { AppRunnerClient, CreateVpcConnectorCommand } from "@aws-sdk/client-apprunner"; // ES Modules import * // const { AppRunnerClient, CreateVpcConnectorCommand } = require("@aws-sdk/client-apprunner"); // CommonJS import * // import type { AppRunnerClientConfig } from "@aws-sdk/client-apprunner"; * const config = {}; // type is AppRunnerClientConfig * const client = new AppRunnerClient(config); * const input = { // CreateVpcConnectorRequest * VpcConnectorName: "STRING_VALUE", // required * Subnets: [ // StringList // required * "STRING_VALUE", * ], * SecurityGroups: [ * "STRING_VALUE", * ], * Tags: [ // TagList * { // Tag * Key: "STRING_VALUE", * Value: "STRING_VALUE", * }, * ], * }; * const command = new CreateVpcConnectorCommand(input); * const response = await client.send(command); * // { // CreateVpcConnectorResponse * // VpcConnector: { // VpcConnector * // VpcConnectorName: "STRING_VALUE", * // VpcConnectorArn: "STRING_VALUE", * // VpcConnectorRevision: Number("int"), * // Subnets: [ // StringList * // "STRING_VALUE", * // ], * // SecurityGroups: [ * // "STRING_VALUE", * // ], * // Status: "ACTIVE" || "INACTIVE", * // CreatedAt: new Date("TIMESTAMP"), * // DeletedAt: new Date("TIMESTAMP"), * // }, * // }; * * ``` * * @param CreateVpcConnectorCommandInput - {@link CreateVpcConnectorCommandInput} * @returns {@link CreateVpcConnectorCommandOutput} * @see {@link CreateVpcConnectorCommandInput} for command's `input` shape. * @see {@link CreateVpcConnectorCommandOutput} for command's `response` shape. * @see {@link AppRunnerClientResolvedConfig | config} for AppRunnerClient's `config` shape. * * @throws {@link InternalServiceErrorException} (server fault) *

An unexpected service exception occurred.

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

One or more input parameters aren't valid. Refer to the API action's document page, correct the input parameters, and try the action again.

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

App Runner can't create this resource. You've reached your account quota for this resource type.

*

For App Runner per-resource quotas, see App Runner endpoints and quotas in the * Amazon Web Services General Reference.

* * @throws {@link AppRunnerServiceException} *

Base exception class for all service exceptions from AppRunner service.

* * * @public */ export declare class CreateVpcConnectorCommand extends CreateVpcConnectorCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: CreateVpcConnectorRequest; output: CreateVpcConnectorResponse; }; sdk: { input: CreateVpcConnectorCommandInput; output: CreateVpcConnectorCommandOutput; }; }; }