UNPKG

@huaweicloudos/pulumi

Version:

A Pulumi package for creating and managing Huaweicloud cloud resources.

188 lines (187 loc) 6.84 kB
import * as pulumi from "@pulumi/pulumi"; /** * Manages a route table resource under the ER instance within HuaweiCloud. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as pulumi from "@huaweicloudos/pulumi"; * * const config = new pulumi.Config(); * const instanceId = config.requireObject("instanceId"); * const routeTableName = config.requireObject("routeTableName"); * const test = new huaweicloud.er.RouteTable("test", { * instanceId: instanceId, * description: "Route table created by terraform", * tags: { * foo: "bar", * owner: "terraform", * }, * }); * ``` * * ## Import * * Route tables can be imported using their `id` and the related `instance_id`, separated by slashes (/), e.g. bash * * ```sh * $ pulumi import huaweicloud:Er/routeTable:RouteTable test <instance_id>/<id> * ``` */ 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 creation time. */ readonly createdAt: pulumi.Output<string>; /** * Specifies the description of the route table. * The description contain a maximum of `255` characters, and the angle brackets (< and >) are not allowed. */ readonly description: pulumi.Output<string | undefined>; /** * Specifies the ID of the ER instance to which the route table belongs. * Changing this parameter will create a new resource. */ readonly instanceId: pulumi.Output<string>; /** * Whether this route table is the default association route table. */ readonly isDefaultAssociation: pulumi.Output<boolean>; /** * Whether this route table is the default propagation route table. */ readonly isDefaultPropagation: pulumi.Output<boolean>; /** * Specifies the name of the route table. * The name can contain `1` to `64` characters, only English letters, Chinese characters, digits, underscore (_), * hyphens (-) and dots (.) allowed. */ readonly name: pulumi.Output<string>; /** * Specifies the region where the ER instance and route table are located. * If omitted, the provider-level region will be used. Changing this parameter will create a new resource. */ readonly region: pulumi.Output<string>; /** * The current status of the route table. */ readonly status: pulumi.Output<string>; /** * Specifies the key/value pairs to associate with the route table. */ readonly tags: pulumi.Output<{ [key: string]: string; } | undefined>; /** * The latest update time. */ readonly updatedAt: 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 creation time. */ createdAt?: pulumi.Input<string>; /** * Specifies the description of the route table. * The description contain a maximum of `255` characters, and the angle brackets (< and >) are not allowed. */ description?: pulumi.Input<string>; /** * Specifies the ID of the ER instance to which the route table belongs. * Changing this parameter will create a new resource. */ instanceId?: pulumi.Input<string>; /** * Whether this route table is the default association route table. */ isDefaultAssociation?: pulumi.Input<boolean>; /** * Whether this route table is the default propagation route table. */ isDefaultPropagation?: pulumi.Input<boolean>; /** * Specifies the name of the route table. * The name can contain `1` to `64` characters, only English letters, Chinese characters, digits, underscore (_), * hyphens (-) and dots (.) allowed. */ name?: pulumi.Input<string>; /** * Specifies the region where the ER instance and route table are located. * If omitted, the provider-level region will be used. Changing this parameter will create a new resource. */ region?: pulumi.Input<string>; /** * The current status of the route table. */ status?: pulumi.Input<string>; /** * Specifies the key/value pairs to associate with the route table. */ tags?: pulumi.Input<{ [key: string]: pulumi.Input<string>; }>; /** * The latest update time. */ updatedAt?: pulumi.Input<string>; } /** * The set of arguments for constructing a RouteTable resource. */ export interface RouteTableArgs { /** * Specifies the description of the route table. * The description contain a maximum of `255` characters, and the angle brackets (< and >) are not allowed. */ description?: pulumi.Input<string>; /** * Specifies the ID of the ER instance to which the route table belongs. * Changing this parameter will create a new resource. */ instanceId: pulumi.Input<string>; /** * Specifies the name of the route table. * The name can contain `1` to `64` characters, only English letters, Chinese characters, digits, underscore (_), * hyphens (-) and dots (.) allowed. */ name?: pulumi.Input<string>; /** * Specifies the region where the ER instance and route table are located. * If omitted, the provider-level region will be used. Changing this parameter will create a new resource. */ region?: pulumi.Input<string>; /** * Specifies the key/value pairs to associate with the route table. */ tags?: pulumi.Input<{ [key: string]: pulumi.Input<string>; }>; }