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 { CreateLocalGatewayRouteRequest, CreateLocalGatewayRouteResult } from "../models/models_1"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link CreateLocalGatewayRouteCommand}. */ export interface CreateLocalGatewayRouteCommandInput extends CreateLocalGatewayRouteRequest { } /** * @public * * The output of {@link CreateLocalGatewayRouteCommand}. */ export interface CreateLocalGatewayRouteCommandOutput extends CreateLocalGatewayRouteResult, __MetadataBearer { } declare const CreateLocalGatewayRouteCommand_base: { new (input: CreateLocalGatewayRouteCommandInput): import("@smithy/smithy-client").CommandImpl; new (input: CreateLocalGatewayRouteCommandInput): import("@smithy/smithy-client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions; }; /** *

Creates a static route for the specified local gateway route table. You must specify one of the * following targets:

* * @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { EC2Client, CreateLocalGatewayRouteCommand } from "@aws-sdk/client-ec2"; // ES Modules import * // const { EC2Client, CreateLocalGatewayRouteCommand } = 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 = { // CreateLocalGatewayRouteRequest * DestinationCidrBlock: "STRING_VALUE", * LocalGatewayRouteTableId: "STRING_VALUE", // required * LocalGatewayVirtualInterfaceGroupId: "STRING_VALUE", * DryRun: true || false, * NetworkInterfaceId: "STRING_VALUE", * DestinationPrefixListId: "STRING_VALUE", * }; * const command = new CreateLocalGatewayRouteCommand(input); * const response = await client.send(command); * // { // CreateLocalGatewayRouteResult * // Route: { // LocalGatewayRoute * // DestinationCidrBlock: "STRING_VALUE", * // LocalGatewayVirtualInterfaceGroupId: "STRING_VALUE", * // Type: "static" || "propagated", * // State: "pending" || "active" || "blackhole" || "deleting" || "deleted", * // LocalGatewayRouteTableId: "STRING_VALUE", * // LocalGatewayRouteTableArn: "STRING_VALUE", * // OwnerId: "STRING_VALUE", * // SubnetId: "STRING_VALUE", * // CoipPoolId: "STRING_VALUE", * // NetworkInterfaceId: "STRING_VALUE", * // DestinationPrefixListId: "STRING_VALUE", * // }, * // }; * * ``` * * @param CreateLocalGatewayRouteCommandInput - {@link CreateLocalGatewayRouteCommandInput} * @returns {@link CreateLocalGatewayRouteCommandOutput} * @see {@link CreateLocalGatewayRouteCommandInput} for command's `input` shape. * @see {@link CreateLocalGatewayRouteCommandOutput} 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 CreateLocalGatewayRouteCommand extends CreateLocalGatewayRouteCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: CreateLocalGatewayRouteRequest; output: CreateLocalGatewayRouteResult; }; sdk: { input: CreateLocalGatewayRouteCommandInput; output: CreateLocalGatewayRouteCommandOutput; }; }; }