UNPKG

@volcengine/pulumi

Version:

A Pulumi package for creating and managing volcengine cloud resources.

132 lines (131 loc) 3.94 kB
import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * Provides a resource to manage route table * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as volcengine from "@volcengine/pulumi"; * * const fooVpc = new volcengine.vpc.Vpc("fooVpc", { * vpcName: "acc-test-vpc", * cidrBlock: "172.16.0.0/16", * projectName: "default", * }); * const fooRouteTable = new volcengine.vpc.RouteTable("fooRouteTable", { * vpcId: fooVpc.id, * routeTableName: "acc-test-route-table", * description: "tf-test", * projectName: "default", * tags: [{ * key: "k1", * value: "v1", * }], * }); * ``` * * ## Import * * Route table can be imported using the id, e.g. * * ```sh * $ pulumi import volcengine:vpc/routeTable:RouteTable default vtb-274e0syt9av407fap8tle16kb * ``` */ export declare class RouteTable extends pulumi.CustomResource { /** * Get an existing RouteTable 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<pulumi.ID>, state?: RouteTableState, opts?: pulumi.CustomResourceOptions): RouteTable; /** * Returns true if the given object is an instance of RouteTable. 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 RouteTable; /** * The description of the route table. */ readonly description: pulumi.Output<string | undefined>; /** * The ProjectName of the route table. */ readonly projectName: pulumi.Output<string>; /** * The name of the route table. */ readonly routeTableName: pulumi.Output<string>; /** * Tags. */ readonly tags: pulumi.Output<outputs.vpc.RouteTableTag[] | undefined>; /** * The id of the VPC. */ readonly vpcId: pulumi.Output<string>; /** * Create a RouteTable 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: RouteTableArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering RouteTable resources. */ export interface RouteTableState { /** * The description of the route table. */ description?: pulumi.Input<string>; /** * The ProjectName of the route table. */ projectName?: pulumi.Input<string>; /** * The name of the route table. */ routeTableName?: pulumi.Input<string>; /** * Tags. */ tags?: pulumi.Input<pulumi.Input<inputs.vpc.RouteTableTag>[]>; /** * The id of the VPC. */ vpcId?: pulumi.Input<string>; } /** * The set of arguments for constructing a RouteTable resource. */ export interface RouteTableArgs { /** * The description of the route table. */ description?: pulumi.Input<string>; /** * The ProjectName of the route table. */ projectName?: pulumi.Input<string>; /** * The name of the route table. */ routeTableName?: pulumi.Input<string>; /** * Tags. */ tags?: pulumi.Input<pulumi.Input<inputs.vpc.RouteTableTag>[]>; /** * The id of the VPC. */ vpcId: pulumi.Input<string>; }