UNPKG

@pulumi/vault

Version:

A Pulumi package for creating and managing HashiCorp Vault cloud resources.

68 lines 2.58 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.Keys = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("../utilities"); /** * A resource that manages the lifecycle of all [Managed Keys](https://www.vaultproject.io/docs/enterprise/managed-keys) in Vault. * * **Note** this feature is available only with Vault Enterprise. * * ## Import * * Mounts can be imported using the `id` of `default`, e.g. * * ```sh * $ pulumi import vault:managed/keys:Keys keys default * ``` */ class Keys extends pulumi.CustomResource { /** * Get an existing Keys resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name, id, state, opts) { return new Keys(name, state, { ...opts, id: id }); } /** * Returns true if the given object is an instance of Keys. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj) { if (obj === undefined || obj === null) { return false; } return obj['__pulumiType'] === Keys.__pulumiType; } constructor(name, argsOrState, opts) { let resourceInputs = {}; opts = opts || {}; if (opts.id) { const state = argsOrState; resourceInputs["aws"] = state?.aws; resourceInputs["azures"] = state?.azures; resourceInputs["namespace"] = state?.namespace; resourceInputs["pkcs"] = state?.pkcs; } else { const args = argsOrState; resourceInputs["aws"] = args?.aws; resourceInputs["azures"] = args?.azures; resourceInputs["namespace"] = args?.namespace; resourceInputs["pkcs"] = args?.pkcs; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); super(Keys.__pulumiType, name, resourceInputs, opts); } } exports.Keys = Keys; /** @internal */ Keys.__pulumiType = 'vault:managed/keys:Keys'; //# sourceMappingURL=keys.js.map