UNPKG

@huaweicloudos/pulumi

Version:

A Pulumi package for creating and managing Huaweicloud cloud resources.

38 lines 1.28 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.getEipsOutput = exports.getEips = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("../utilities"); /** * Use this data source to get a list of EIPs belong to a specific IEC site. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as huaweicloud from "@pulumi/huaweicloud"; * * const sitesTest = huaweicloud.Iec.getSites({}); * const site = sitesTest.then(sitesTest => huaweicloud.Iec.getEips({ * siteId: sitesTest.sites?[0]?.id, * })); * ``` */ function getEips(args, opts) { if (!opts) { opts = {}; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); return pulumi.runtime.invoke("huaweicloud:Iec/getEips:getEips", { "portId": args.portId, "siteId": args.siteId, }, opts); } exports.getEips = getEips; function getEipsOutput(args, opts) { return pulumi.output(args).apply(a => getEips(a, opts)); } exports.getEipsOutput = getEipsOutput; //# sourceMappingURL=getEips.js.map