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