import * as pulumi from "@pulumi/pulumi"; /** * Provides a Hetzner Cloud Network Route to represent a Network route in the Hetzner Cloud. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as hcloud from "@pulumi/hcloud"; * * const mynet = new hcloud.Network("mynet", { * name: "my-net", * ipRange: "10.0.0.0/8", * }); * const privNet = new hcloud.NetworkRoute("privNet", { * networkId: mynet.id, * destination: "10.100.1.0/24", * gateway: "10.0.1.1", * }); * ``` * * ## Import * * Network Route entries can be imported using a compound ID with the following format: * `-` * * ```sh * $ pulumi import hcloud:index/networkRoute:NetworkRoute example "$NETWORK_ID-$DESTINATION" * ``` */ export declare class NetworkRoute extends pulumi.CustomResource { /** * Get an existing NetworkRoute 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?: NetworkRouteState, opts?: pulumi.CustomResourceOptions): NetworkRoute; /** * Returns true if the given object is an instance of NetworkRoute. 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 NetworkRoute; /** * Destination network or host of this route. Must be a subnet of the ipRange of the Network. Must not overlap with an existing ipRange in any subnets or with any destinations in other routes or with the first ip of the networks ipRange or with 172.31.1.1. */ readonly destination: pulumi.Output; /** * Gateway for the route. Cannot be the first ip of the networks ipRange and also cannot be 172.31.1.1 as this IP is being used as a gateway for the public network interface of servers. */ readonly gateway: pulumi.Output; /** * ID of the Network the route should be added to. */ readonly networkId: pulumi.Output; /** * Create a NetworkRoute 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: NetworkRouteArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering NetworkRoute resources. */ export interface NetworkRouteState { /** * Destination network or host of this route. Must be a subnet of the ipRange of the Network. Must not overlap with an existing ipRange in any subnets or with any destinations in other routes or with the first ip of the networks ipRange or with 172.31.1.1. */ destination?: pulumi.Input; /** * Gateway for the route. Cannot be the first ip of the networks ipRange and also cannot be 172.31.1.1 as this IP is being used as a gateway for the public network interface of servers. */ gateway?: pulumi.Input; /** * ID of the Network the route should be added to. */ networkId?: pulumi.Input; } /** * The set of arguments for constructing a NetworkRoute resource. */ export interface NetworkRouteArgs { /** * Destination network or host of this route. Must be a subnet of the ipRange of the Network. Must not overlap with an existing ipRange in any subnets or with any destinations in other routes or with the first ip of the networks ipRange or with 172.31.1.1. */ destination: pulumi.Input; /** * Gateway for the route. Cannot be the first ip of the networks ipRange and also cannot be 172.31.1.1 as this IP is being used as a gateway for the public network interface of servers. */ gateway: pulumi.Input; /** * ID of the Network the route should be added to. */ networkId: pulumi.Input; }