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 { DeleteClientVpnRouteRequest, DeleteClientVpnRouteResult } from "../models/models_2"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link DeleteClientVpnRouteCommand}. */ export interface DeleteClientVpnRouteCommandInput extends DeleteClientVpnRouteRequest { } /** * @public * * The output of {@link DeleteClientVpnRouteCommand}. */ export interface DeleteClientVpnRouteCommandOutput extends DeleteClientVpnRouteResult, __MetadataBearer { } declare const DeleteClientVpnRouteCommand_base: { new (input: DeleteClientVpnRouteCommandInput): import("@smithy/smithy-client").CommandImpl; new (input: DeleteClientVpnRouteCommandInput): import("@smithy/smithy-client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions; }; /** *

Deletes a route from a Client VPN endpoint. You can only delete routes that you manually added using * the CreateClientVpnRoute action. You cannot delete routes that were * automatically added when associating a subnet. To remove routes that have been automatically added, * disassociate the target subnet from the Client VPN endpoint.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { EC2Client, DeleteClientVpnRouteCommand } from "@aws-sdk/client-ec2"; // ES Modules import * // const { EC2Client, DeleteClientVpnRouteCommand } = 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 = { // DeleteClientVpnRouteRequest * ClientVpnEndpointId: "STRING_VALUE", // required * TargetVpcSubnetId: "STRING_VALUE", * DestinationCidrBlock: "STRING_VALUE", // required * DryRun: true || false, * }; * const command = new DeleteClientVpnRouteCommand(input); * const response = await client.send(command); * // { // DeleteClientVpnRouteResult * // Status: { // ClientVpnRouteStatus * // Code: "creating" || "active" || "failed" || "deleting", * // Message: "STRING_VALUE", * // }, * // }; * * ``` * * @param DeleteClientVpnRouteCommandInput - {@link DeleteClientVpnRouteCommandInput} * @returns {@link DeleteClientVpnRouteCommandOutput} * @see {@link DeleteClientVpnRouteCommandInput} for command's `input` shape. * @see {@link DeleteClientVpnRouteCommandOutput} 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 DeleteClientVpnRouteCommand extends DeleteClientVpnRouteCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: DeleteClientVpnRouteRequest; output: DeleteClientVpnRouteResult; }; sdk: { input: DeleteClientVpnRouteCommandInput; output: DeleteClientVpnRouteCommandOutput; }; }; }