@huaweicloudos/pulumi
Version:
A Pulumi package for creating and managing Huaweicloud cloud resources.
44 lines • 1.52 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.getCustomRoleOutput = exports.getCustomRole = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
* Use this data source to get details of the specified IAM **custom policy**.
*
* > **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 policy = pulumi.output(huaweicloud.Iam.getCustomRole({
* name: "custom_policy",
* }));
* ```
*/
function getCustomRole(args, opts) {
args = args || {};
if (!opts) {
opts = {};
}
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
return pulumi.runtime.invoke("huaweicloud:Iam/getCustomRole:getCustomRole", {
"description": args.description,
"domainId": args.domainId,
"id": args.id,
"name": args.name,
"references": args.references,
"type": args.type,
}, opts);
}
exports.getCustomRole = getCustomRole;
function getCustomRoleOutput(args, opts) {
return pulumi.output(args).apply(a => getCustomRole(a, opts));
}
exports.getCustomRoleOutput = getCustomRoleOutput;
//# sourceMappingURL=getCustomRole.js.map