UNPKG

@huaweicloudos/pulumi

Version:

A Pulumi package for creating and managing Huaweicloud cloud resources.

49 lines 1.68 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.getGatewayOutput = exports.getGateway = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("../utilities"); /** * Use this data source to get an available public NAT gateway within HuaweiCloud. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as huaweicloud from "@pulumi/huaweicloud"; * * const config = new pulumi.Config(); * const gatewayName = config.requireObject("gatewayName"); * const test = huaweicloud.Nat.getGateway({ * name: gatewayName, * }); * ``` */ function getGateway(args, opts) { args = args || {}; if (!opts) { opts = {}; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); return pulumi.runtime.invoke("huaweicloud:Nat/getGateway:getGateway", { "description": args.description, "enterpriseProjectId": args.enterpriseProjectId, "id": args.id, "internalNetworkId": args.internalNetworkId, "name": args.name, "region": args.region, "routerId": args.routerId, "spec": args.spec, "status": args.status, "subnetId": args.subnetId, "vpcId": args.vpcId, }, opts); } exports.getGateway = getGateway; function getGatewayOutput(args, opts) { return pulumi.output(args).apply(a => getGateway(a, opts)); } exports.getGatewayOutput = getGatewayOutput; //# sourceMappingURL=getGateway.js.map