import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * Add a route entry to the VPN gateway. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as volcenginecc from "@volcengine/pulumi-volcenginecc"; * * const vpnGatewayRouteDemo = new volcenginecc.vpn.VpnGatewayRoute("VpnGatewayRouteDemo", { * destinationCidrBlock: "192.168.0.0/25", * nextHopId: "vgc-****", * vpnGatewayId: "vgw-****", * }); * ``` * * ## Import * * ```sh * $ pulumi import volcenginecc:vpn/vpnGatewayRoute:VpnGatewayRoute example "vpn_gateway_route_id" * ``` */ export declare class VpnGatewayRoute extends pulumi.CustomResource { /** * Get an existing VpnGatewayRoute resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input, state?: VpnGatewayRouteState, opts?: pulumi.CustomResourceOptions): VpnGatewayRoute; /** * Returns true if the given object is an instance of VpnGatewayRoute. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is VpnGatewayRoute; readonly asPaths: pulumi.Output; /** * Time when the VPN gateway route entry was created. */ readonly creationTime: pulumi.Output; /** * Destination network segment of the VPN gateway route entry. */ readonly destinationCidrBlock: pulumi.Output; /** * ID of the IPsec connection for the route's next hop. You can call DescribeVpnConnections to query the IPsec connection ID. */ readonly nextHopId: pulumi.Output; /** * Next hop tunnel ID. This parameter is returned only for VPN gateways in dual-tunnel mode. */ readonly nextTunnelId: pulumi.Output; /** * Route type. Static: static route; BGP: BGP route; Cloud: VPC route in the cloud. Note: Route types synchronized from transit routers (TR) are not currently supported for display. */ readonly routeType: pulumi.Output; /** * Status of the VPN gateway route entry. Creating: being created; Deleting: being deleted; Pending: being configured; Available: preferred route in effect; Conflicted: not preferred or not in effect. Note: When route prefixes are the same, the route priority is Cloud > Static route > BGP route. Therefore, there may be multiple routes with the same prefix, some with status Available and others with status Conflicted. */ readonly status: pulumi.Output; /** * Time when the VPN gateway route entry was modified. */ readonly updateTime: pulumi.Output; /** * ID of the VPN gateway for the route entry to be added. */ readonly vpnGatewayId: pulumi.Output; /** * ID of the VPN gateway route entry. */ readonly vpnGatewayRouteId: pulumi.Output; /** * Create a VpnGatewayRoute resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args: VpnGatewayRouteArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering VpnGatewayRoute resources. */ export interface VpnGatewayRouteState { asPaths?: pulumi.Input[]>; /** * Time when the VPN gateway route entry was created. */ creationTime?: pulumi.Input; /** * Destination network segment of the VPN gateway route entry. */ destinationCidrBlock?: pulumi.Input; /** * ID of the IPsec connection for the route's next hop. You can call DescribeVpnConnections to query the IPsec connection ID. */ nextHopId?: pulumi.Input; /** * Next hop tunnel ID. This parameter is returned only for VPN gateways in dual-tunnel mode. */ nextTunnelId?: pulumi.Input; /** * Route type. Static: static route; BGP: BGP route; Cloud: VPC route in the cloud. Note: Route types synchronized from transit routers (TR) are not currently supported for display. */ routeType?: pulumi.Input; /** * Status of the VPN gateway route entry. Creating: being created; Deleting: being deleted; Pending: being configured; Available: preferred route in effect; Conflicted: not preferred or not in effect. Note: When route prefixes are the same, the route priority is Cloud > Static route > BGP route. Therefore, there may be multiple routes with the same prefix, some with status Available and others with status Conflicted. */ status?: pulumi.Input; /** * Time when the VPN gateway route entry was modified. */ updateTime?: pulumi.Input; /** * ID of the VPN gateway for the route entry to be added. */ vpnGatewayId?: pulumi.Input; /** * ID of the VPN gateway route entry. */ vpnGatewayRouteId?: pulumi.Input; } /** * The set of arguments for constructing a VpnGatewayRoute resource. */ export interface VpnGatewayRouteArgs { /** * Destination network segment of the VPN gateway route entry. */ destinationCidrBlock: pulumi.Input; /** * ID of the IPsec connection for the route's next hop. You can call DescribeVpnConnections to query the IPsec connection ID. */ nextHopId: pulumi.Input; /** * ID of the VPN gateway for the route entry to be added. */ vpnGatewayId: pulumi.Input; }