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