UNPKG

@huaweicloudos/pulumi

Version:

A Pulumi package for creating and managing Huaweicloud cloud resources.

38 lines 1.33 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.getAgenciesOutput = exports.getAgencies = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("../utilities"); /** * Use this data source to query the IAM agency list within HuaweiCloud. * * > **NOTE:** You *must* have IAM read privileges to use this data source. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as huaweicloud from "@pulumi/huaweicloud"; * * const all = pulumi.output(huaweicloud.Iam.getAgencies()); * ``` */ function getAgencies(args, opts) { args = args || {}; if (!opts) { opts = {}; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); return pulumi.runtime.invoke("huaweicloud:Iam/getAgencies:getAgencies", { "name": args.name, "trustDomainId": args.trustDomainId, }, opts); } exports.getAgencies = getAgencies; function getAgenciesOutput(args, opts) { return pulumi.output(args).apply(a => getAgencies(a, opts)); } exports.getAgenciesOutput = getAgenciesOutput; //# sourceMappingURL=getAgencies.js.map