UNPKG

@pulumi/gcp

Version:

A Pulumi package for creating and managing Google Cloud Platform resources.

62 lines 2.43 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.getIamCustomRolesOutput = exports.getIamCustomRoles = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("../utilities"); /** * Get information about a Google Cloud Organization IAM Custom Roles. * Note that you must have the `roles/iam.organizationRoleViewer`. * See [the official documentation](https://cloud.google.com/iam/docs/creating-custom-roles) * and [API](https://cloud.google.com/iam/docs/reference/rest/v1/organizations.roles/list). * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as gcp from "@pulumi/gcp"; * * const example = gcp.organizations.getIamCustomRoles({ * orgId: "1234567890", * showDeleted: true, * view: "FULL", * }); * ``` */ function getIamCustomRoles(args, opts) { args = args || {}; opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("gcp:organizations/getIamCustomRoles:getIamCustomRoles", { "orgId": args.orgId, "showDeleted": args.showDeleted, "view": args.view, }, opts); } exports.getIamCustomRoles = getIamCustomRoles; /** * Get information about a Google Cloud Organization IAM Custom Roles. * Note that you must have the `roles/iam.organizationRoleViewer`. * See [the official documentation](https://cloud.google.com/iam/docs/creating-custom-roles) * and [API](https://cloud.google.com/iam/docs/reference/rest/v1/organizations.roles/list). * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as gcp from "@pulumi/gcp"; * * const example = gcp.organizations.getIamCustomRoles({ * orgId: "1234567890", * showDeleted: true, * view: "FULL", * }); * ``` */ function getIamCustomRolesOutput(args, opts) { args = args || {}; opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("gcp:organizations/getIamCustomRoles:getIamCustomRoles", { "orgId": args.orgId, "showDeleted": args.showDeleted, "view": args.view, }, opts); } exports.getIamCustomRolesOutput = getIamCustomRolesOutput; //# sourceMappingURL=getIamCustomRoles.js.map