@pulumi/gcp
Version:
A Pulumi package for creating and managing Google Cloud Platform resources.
66 lines • 2.53 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.getKeyHandleOutput = exports.getKeyHandle = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
* Provides access to Google Cloud Platform KMS KeyHandle. A key handle is a Cloud KMS resource that helps you safely span the separation of duties to create new Cloud KMS keys for CMEK using Autokey.
*
* For more information see
* [the official documentation](https://cloud.google.com/kms/docs/resource-hierarchy#key_handles)
* and
* [API](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyHandles).
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as gcp from "@pulumi/gcp";
*
* const myKeyHandle = gcp.kms.getKeyHandle({
* name: "eed58b7b-20ad-4da8-ad85-ba78a0d5ab87",
* location: "us-central1",
* });
* ```
*/
function getKeyHandle(args, opts) {
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invoke("gcp:kms/getKeyHandle:getKeyHandle", {
"location": args.location,
"name": args.name,
"project": args.project,
}, opts);
}
exports.getKeyHandle = getKeyHandle;
/**
* Provides access to Google Cloud Platform KMS KeyHandle. A key handle is a Cloud KMS resource that helps you safely span the separation of duties to create new Cloud KMS keys for CMEK using Autokey.
*
* For more information see
* [the official documentation](https://cloud.google.com/kms/docs/resource-hierarchy#key_handles)
* and
* [API](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyHandles).
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as gcp from "@pulumi/gcp";
*
* const myKeyHandle = gcp.kms.getKeyHandle({
* name: "eed58b7b-20ad-4da8-ad85-ba78a0d5ab87",
* location: "us-central1",
* });
* ```
*/
function getKeyHandleOutput(args, opts) {
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invokeOutput("gcp:kms/getKeyHandle:getKeyHandle", {
"location": args.location,
"name": args.name,
"project": args.project,
}, opts);
}
exports.getKeyHandleOutput = getKeyHandleOutput;
//# sourceMappingURL=getKeyHandle.js.map
;