NomadSecretBackendArgs

data class NomadSecretBackendArgs(val address: Output<String>? = null, val backend: Output<String>? = null, val caCert: Output<String>? = null, val clientCert: Output<String>? = null, val clientKey: Output<String>? = null, val defaultLeaseTtlSeconds: Output<Int>? = null, val description: Output<String>? = null, val disableRemount: Output<Boolean>? = null, val local: Output<Boolean>? = null, val maxLeaseTtlSeconds: Output<Int>? = null, val maxTokenNameLength: Output<Int>? = null, val maxTtl: Output<Int>? = null, val namespace: Output<String>? = null, val token: Output<String>? = null, val ttl: Output<Int>? = null) : ConvertibleToJava<NomadSecretBackendArgs>

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as vault from "@pulumi/vault";
const config = new vault.NomadSecretBackend("config", {
backend: "nomad",
description: "test description",
defaultLeaseTtlSeconds: 3600,
maxLeaseTtlSeconds: 7200,
maxTtl: 240,
address: "https://127.0.0.1:4646",
token: "ae20ceaa-...",
ttl: 120,
});
import pulumi
import pulumi_vault as vault
config = vault.NomadSecretBackend("config",
backend="nomad",
description="test description",
default_lease_ttl_seconds=3600,
max_lease_ttl_seconds=7200,
max_ttl=240,
address="https://127.0.0.1:4646",
token="ae20ceaa-...",
ttl=120)
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Vault = Pulumi.Vault;
return await Deployment.RunAsync(() =>
{
var config = new Vault.NomadSecretBackend("config", new()
{
Backend = "nomad",
Description = "test description",
DefaultLeaseTtlSeconds = 3600,
MaxLeaseTtlSeconds = 7200,
MaxTtl = 240,
Address = "https://127.0.0.1:4646",
Token = "ae20ceaa-...",
Ttl = 120,
});
});
package main
import (
"github.com/pulumi/pulumi-vault/sdk/v6/go/vault"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := vault.NewNomadSecretBackend(ctx, "config", &vault.NomadSecretBackendArgs{
Backend: pulumi.String("nomad"),
Description: pulumi.String("test description"),
DefaultLeaseTtlSeconds: pulumi.Int(3600),
MaxLeaseTtlSeconds: pulumi.Int(7200),
MaxTtl: pulumi.Int(240),
Address: pulumi.String("https://127.0.0.1:4646"),
Token: pulumi.String("ae20ceaa-..."),
Ttl: pulumi.Int(120),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.vault.NomadSecretBackend;
import com.pulumi.vault.NomadSecretBackendArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var config = new NomadSecretBackend("config", NomadSecretBackendArgs.builder()
.backend("nomad")
.description("test description")
.defaultLeaseTtlSeconds(3600)
.maxLeaseTtlSeconds(7200)
.maxTtl(240)
.address("https://127.0.0.1:4646")
.token("ae20ceaa-...")
.ttl(120)
.build());
}
}
resources:
config:
type: vault:NomadSecretBackend
properties:
backend: nomad
description: test description
defaultLeaseTtlSeconds: '3600'
maxLeaseTtlSeconds: '7200'
maxTtl: '240'
address: https://127.0.0.1:4646
token: ae20ceaa-...
ttl: '120'

Import

Nomad secret backend can be imported using the backend, e.g.

$ pulumi import vault:index/nomadSecretBackend:NomadSecretBackend nomad nomad

Constructors

Link copied to clipboard
constructor(address: Output<String>? = null, backend: Output<String>? = null, caCert: Output<String>? = null, clientCert: Output<String>? = null, clientKey: Output<String>? = null, defaultLeaseTtlSeconds: Output<Int>? = null, description: Output<String>? = null, disableRemount: Output<Boolean>? = null, local: Output<Boolean>? = null, maxLeaseTtlSeconds: Output<Int>? = null, maxTokenNameLength: Output<Int>? = null, maxTtl: Output<Int>? = null, namespace: Output<String>? = null, token: Output<String>? = null, ttl: Output<Int>? = null)

Properties

Link copied to clipboard
val address: Output<String>? = null

Specifies the address of the Nomad instance, provided as "protocol://host:port" like "http://127.0.0.1:4646".

Link copied to clipboard
val backend: Output<String>? = null

The unique path this backend should be mounted at. Must not begin or end with a /. Defaults to nomad.

Link copied to clipboard
val caCert: Output<String>? = null

CA certificate to use when verifying the Nomad server certificate, must be x509 PEM encoded.

Link copied to clipboard
val clientCert: Output<String>? = null

Client certificate to provide to the Nomad server, must be x509 PEM encoded.

Link copied to clipboard
val clientKey: Output<String>? = null

Client certificate key to provide to the Nomad server, must be x509 PEM encoded.

Link copied to clipboard
val defaultLeaseTtlSeconds: Output<Int>? = null

Default lease duration for secrets in seconds.

Link copied to clipboard
val description: Output<String>? = null

Human-friendly description of the mount for the Active Directory backend.

Link copied to clipboard
val disableRemount: Output<Boolean>? = null

If set, opts out of mount migration on path updates. See here for more info on Mount Migration

Link copied to clipboard
val local: Output<Boolean>? = null

Mark the secrets engine as local-only. Local engines are not replicated or removed by replication.Tolerance duration to use when checking the last rotation time.

Link copied to clipboard
val maxLeaseTtlSeconds: Output<Int>? = null

Maximum possible lease duration for secrets in seconds.

Link copied to clipboard
val maxTokenNameLength: Output<Int>? = null

Specifies the maximum length to use for the name of the Nomad token generated with Generate Credential. If omitted, 0 is used and ignored, defaulting to the max value allowed by the Nomad version.

Link copied to clipboard
val maxTtl: Output<Int>? = null

Maximum possible lease duration for secrets in seconds.

Link copied to clipboard
val namespace: Output<String>? = null

The namespace to provision the resource in. The value should not contain leading or trailing forward slashes. The namespace is always relative to the provider's configured namespace. Available only for Vault Enterprise.

Link copied to clipboard
val token: Output<String>? = null

Specifies the Nomad Management token to use.

Link copied to clipboard
val ttl: Output<Int>? = null

Specifies the ttl of the lease for the generated token.

Functions

Link copied to clipboard
open override fun toJava(): NomadSecretBackendArgs