@pulumi/gcp
Version:
A Pulumi package for creating and managing Google Cloud Platform resources.
54 lines • 1.77 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.getScopeIamPolicyOutput = exports.getScopeIamPolicy = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
* Retrieves the current IAM policy data for scope
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as gcp from "@pulumi/gcp";
*
* const policy = gcp.gkehub.getScopeIamPolicy({
* project: scope.project,
* scopeId: scope.scopeId,
* });
* ```
*/
function getScopeIamPolicy(args, opts) {
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invoke("gcp:gkehub/getScopeIamPolicy:getScopeIamPolicy", {
"project": args.project,
"scopeId": args.scopeId,
}, opts);
}
exports.getScopeIamPolicy = getScopeIamPolicy;
/**
* Retrieves the current IAM policy data for scope
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as gcp from "@pulumi/gcp";
*
* const policy = gcp.gkehub.getScopeIamPolicy({
* project: scope.project,
* scopeId: scope.scopeId,
* });
* ```
*/
function getScopeIamPolicyOutput(args, opts) {
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invokeOutput("gcp:gkehub/getScopeIamPolicy:getScopeIamPolicy", {
"project": args.project,
"scopeId": args.scopeId,
}, opts);
}
exports.getScopeIamPolicyOutput = getScopeIamPolicyOutput;
//# sourceMappingURL=getScopeIamPolicy.js.map