@pulumi/vault
Version:
A Pulumi package for creating and managing HashiCorp Vault cloud resources.
96 lines • 2.87 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.getSecretSubkeysV2Output = exports.getSecretSubkeysV2 = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as vault from "@pulumi/vault";
*
* const kvv2 = new vault.Mount("kvv2", {
* path: "kvv2",
* type: "kv",
* options: {
* version: "2",
* },
* description: "KV Version 2 secret engine mount",
* });
* const awsSecret = new vault.kv.SecretV2("aws_secret", {
* mount: kvv2.path,
* name: "aws_secret",
* dataJson: JSON.stringify({
* zip: "zap",
* foo: "bar",
* }),
* });
* const test = vault.kv.getSecretSubkeysV2Output({
* mount: kvv2.path,
* name: awsSecret.name,
* });
* ```
*
* ## Required Vault Capabilities
*
* Use of this resource requires the `read` capability on the given path.
*/
function getSecretSubkeysV2(args, opts) {
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invoke("vault:kv/getSecretSubkeysV2:getSecretSubkeysV2", {
"depth": args.depth,
"mount": args.mount,
"name": args.name,
"namespace": args.namespace,
"version": args.version,
}, opts);
}
exports.getSecretSubkeysV2 = getSecretSubkeysV2;
/**
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as vault from "@pulumi/vault";
*
* const kvv2 = new vault.Mount("kvv2", {
* path: "kvv2",
* type: "kv",
* options: {
* version: "2",
* },
* description: "KV Version 2 secret engine mount",
* });
* const awsSecret = new vault.kv.SecretV2("aws_secret", {
* mount: kvv2.path,
* name: "aws_secret",
* dataJson: JSON.stringify({
* zip: "zap",
* foo: "bar",
* }),
* });
* const test = vault.kv.getSecretSubkeysV2Output({
* mount: kvv2.path,
* name: awsSecret.name,
* });
* ```
*
* ## Required Vault Capabilities
*
* Use of this resource requires the `read` capability on the given path.
*/
function getSecretSubkeysV2Output(args, opts) {
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invokeOutput("vault:kv/getSecretSubkeysV2:getSecretSubkeysV2", {
"depth": args.depth,
"mount": args.mount,
"name": args.name,
"namespace": args.namespace,
"version": args.version,
}, opts);
}
exports.getSecretSubkeysV2Output = getSecretSubkeysV2Output;
//# sourceMappingURL=getSecretSubkeysV2.js.map