UNPKG

@huaweicloudos/pulumi

Version:

A Pulumi package for creating and managing Huaweicloud cloud resources.

45 lines 1.48 kB
"use strict"; // *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** Object.defineProperty(exports, "__esModule", { value: true }); exports.getRouteTableOutput = exports.getRouteTable = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("../utilities"); /** * Provides details about a specific VPC route table. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as huaweicloud from "@pulumi/huaweicloud"; * * const config = new pulumi.Config(); * const vpcId = config.requireObject("vpcId"); * const default = huaweicloud.Vpc.getRouteTable({ * vpcId: vpcId, * }); * const custom = huaweicloud.Vpc.getRouteTable({ * vpcId: vpcId, * name: "demo", * }); * ``` */ function getRouteTable(args, opts) { if (!opts) { opts = {}; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); return pulumi.runtime.invoke("huaweicloud:Vpc/getRouteTable:getRouteTable", { "id": args.id, "name": args.name, "region": args.region, "vpcId": args.vpcId, }, opts); } exports.getRouteTable = getRouteTable; function getRouteTableOutput(args, opts) { return pulumi.output(args).apply(a => getRouteTable(a, opts)); } exports.getRouteTableOutput = getRouteTableOutput; //# sourceMappingURL=getRouteTable.js.map