import * as pulumi from "@pulumi/pulumi"; /** * Creates and manages Scaleway VPC Routes. * For more information, see [the main documentation](https://www.scaleway.com/en/docs/network/vpc/concepts/). * * ## Example Usage * * ### Basic * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as scaleway from "@ediri/scaleway"; * * const vpc01 = new scaleway.Vpc("vpc01", {}); * const pn01 = new scaleway.VpcPrivateNetwork("pn01", { * ipv4Subnet: { * subnet: "172.16.64.0/22", * }, * vpcId: vpc01.id, * }); * const server01 = new scaleway.InstanceServer("server01", { * type: "PLAY2-MICRO", * image: "openvpn", * }); * const pnic01 = new scaleway.InstancePrivateNic("pnic01", { * privateNetworkId: pn01.id, * serverId: server01.id, * }); * const rt01 = new scaleway.VpcRoute("rt01", { * vpcId: vpc01.id, * description: "tf-route-vpn", * tags: [ * "tf", * "route", * ], * destination: "10.0.0.0/24", * nexthopResourceId: pnic01.id, * }); * ``` * * ## Import * * Routes can be imported using `{region}/{id}`, e.g. * * bash * * ```sh * $ pulumi import scaleway:index/vpcRoute:VpcRoute main fr-par/11111111-1111-1111-1111-111111111111 * ``` */ export declare class VpcRoute extends pulumi.CustomResource { /** * Get an existing VpcRoute 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?: VpcRouteState, opts?: pulumi.CustomResourceOptions): VpcRoute; /** * Returns true if the given object is an instance of VpcRoute. 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 VpcRoute; /** * The date and time of the creation of the route (RFC 3339 format). */ readonly createdAt: pulumi.Output; /** * The route description. */ readonly description: pulumi.Output; /** * The destination of the route. */ readonly destination: pulumi.Output; /** * The ID of the nexthop private network. */ readonly nexthopPrivateNetworkId: pulumi.Output; /** * The ID of the nexthop resource. */ readonly nexthopResourceId: pulumi.Output; /** * `region`) The region of the route. */ readonly region: pulumi.Output; /** * The tags to associate with the route. */ readonly tags: pulumi.Output; /** * The date and time of the creation of the route (RFC 3339 format). */ readonly updatedAt: pulumi.Output; /** * The VPC ID the route belongs to. */ readonly vpcId: pulumi.Output; /** * Create a VpcRoute 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: VpcRouteArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering VpcRoute resources. */ export interface VpcRouteState { /** * The date and time of the creation of the route (RFC 3339 format). */ createdAt?: pulumi.Input; /** * The route description. */ description?: pulumi.Input; /** * The destination of the route. */ destination?: pulumi.Input; /** * The ID of the nexthop private network. */ nexthopPrivateNetworkId?: pulumi.Input; /** * The ID of the nexthop resource. */ nexthopResourceId?: pulumi.Input; /** * `region`) The region of the route. */ region?: pulumi.Input; /** * The tags to associate with the route. */ tags?: pulumi.Input[]>; /** * The date and time of the creation of the route (RFC 3339 format). */ updatedAt?: pulumi.Input; /** * The VPC ID the route belongs to. */ vpcId?: pulumi.Input; } /** * The set of arguments for constructing a VpcRoute resource. */ export interface VpcRouteArgs { /** * The route description. */ description?: pulumi.Input; /** * The destination of the route. */ destination?: pulumi.Input; /** * The ID of the nexthop private network. */ nexthopPrivateNetworkId?: pulumi.Input; /** * The ID of the nexthop resource. */ nexthopResourceId?: pulumi.Input; /** * `region`) The region of the route. */ region?: pulumi.Input; /** * The tags to associate with the route. */ tags?: pulumi.Input[]>; /** * The VPC ID the route belongs to. */ vpcId: pulumi.Input; }