@huaweicloudos/pulumi
Version:
A Pulumi package for creating and managing Huaweicloud cloud resources.
41 lines • 1.42 kB
JavaScript
;
// *** 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.getBandwidthOutput = exports.getBandwidth = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
* Provides details about a specific bandwidth.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as huaweicloud from "@pulumi/huaweicloud";
*
* const config = new pulumi.Config();
* const bandwidthName = config.requireObject("bandwidthName");
* const bandwidth1 = huaweicloud.Eip.getBandwidth({
* name: bandwidthName,
* });
* ```
*/
function getBandwidth(args, opts) {
if (!opts) {
opts = {};
}
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
return pulumi.runtime.invoke("huaweicloud:Eip/getBandwidth:getBandwidth", {
"enterpriseProjectId": args.enterpriseProjectId,
"name": args.name,
"region": args.region,
"size": args.size,
}, opts);
}
exports.getBandwidth = getBandwidth;
function getBandwidthOutput(args, opts) {
return pulumi.output(args).apply(a => getBandwidth(a, opts));
}
exports.getBandwidthOutput = getBandwidthOutput;
//# sourceMappingURL=getBandwidth.js.map