@pulumi/gcp
Version:
A Pulumi package for creating and managing Google Cloud Platform resources.
54 lines • 1.75 kB
JavaScript
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
Object.defineProperty(exports, "__esModule", { value: true });
exports.getNoteIamPolicyOutput = exports.getNoteIamPolicy = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
* Retrieves the current IAM policy data for note
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as gcp from "@pulumi/gcp";
*
* const policy = gcp.containeranalysis.getNoteIamPolicy({
* project: note.project,
* note: note.name,
* });
* ```
*/
function getNoteIamPolicy(args, opts) {
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invoke("gcp:containeranalysis/getNoteIamPolicy:getNoteIamPolicy", {
"note": args.note,
"project": args.project,
}, opts);
}
exports.getNoteIamPolicy = getNoteIamPolicy;
/**
* Retrieves the current IAM policy data for note
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as gcp from "@pulumi/gcp";
*
* const policy = gcp.containeranalysis.getNoteIamPolicy({
* project: note.project,
* note: note.name,
* });
* ```
*/
function getNoteIamPolicyOutput(args, opts) {
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invokeOutput("gcp:containeranalysis/getNoteIamPolicy:getNoteIamPolicy", {
"note": args.note,
"project": args.project,
}, opts);
}
exports.getNoteIamPolicyOutput = getNoteIamPolicyOutput;
//# sourceMappingURL=getNoteIamPolicy.js.map
;