UNPKG

@pulumi/gcp

Version:

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

38 lines 2.01 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.getIAMPolicyOutput = exports.getIAMPolicy = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("../utilities"); /** * Generates an IAM policy document that may be referenced by and applied to * other Google Cloud Platform IAM resources, such as the `gcp.projects.IAMPolicy` resource. * * **Note:** Please review the documentation of the resource that you will be using the datasource with. Some resources such as `gcp.projects.IAMPolicy` and others have limitations in their API methods which are noted on their respective page. */ function getIAMPolicy(args, opts) { args = args || {}; opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("gcp:organizations/getIAMPolicy:getIAMPolicy", { "auditConfigs": args.auditConfigs, "bindings": args.bindings, }, opts); } exports.getIAMPolicy = getIAMPolicy; /** * Generates an IAM policy document that may be referenced by and applied to * other Google Cloud Platform IAM resources, such as the `gcp.projects.IAMPolicy` resource. * * **Note:** Please review the documentation of the resource that you will be using the datasource with. Some resources such as `gcp.projects.IAMPolicy` and others have limitations in their API methods which are noted on their respective page. */ function getIAMPolicyOutput(args, opts) { args = args || {}; opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("gcp:organizations/getIAMPolicy:getIAMPolicy", { "auditConfigs": args.auditConfigs, "bindings": args.bindings, }, opts); } exports.getIAMPolicyOutput = getIAMPolicyOutput; //# sourceMappingURL=getIAMPolicy.js.map