UNPKG

@pulumi/gcp

Version:

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

50 lines 1.72 kB
"use strict"; // *** 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.getCryptoKeyIamPolicyOutput = exports.getCryptoKeyIamPolicy = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("../utilities"); /** * Retrieves the current IAM policy data for a Google Cloud KMS crypto key. * * ## example * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as gcp from "@pulumi/gcp"; * * const foo = gcp.kms.getCryptoKeyIamPolicy({ * cryptoKeyId: cryptoKey.id, * }); * ``` */ function getCryptoKeyIamPolicy(args, opts) { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("gcp:kms/getCryptoKeyIamPolicy:getCryptoKeyIamPolicy", { "cryptoKeyId": args.cryptoKeyId, }, opts); } exports.getCryptoKeyIamPolicy = getCryptoKeyIamPolicy; /** * Retrieves the current IAM policy data for a Google Cloud KMS crypto key. * * ## example * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as gcp from "@pulumi/gcp"; * * const foo = gcp.kms.getCryptoKeyIamPolicy({ * cryptoKeyId: cryptoKey.id, * }); * ``` */ function getCryptoKeyIamPolicyOutput(args, opts) { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("gcp:kms/getCryptoKeyIamPolicy:getCryptoKeyIamPolicy", { "cryptoKeyId": args.cryptoKeyId, }, opts); } exports.getCryptoKeyIamPolicyOutput = getCryptoKeyIamPolicyOutput; //# sourceMappingURL=getCryptoKeyIamPolicy.js.map