BackendConfigClusterArgs

data class BackendConfigClusterArgs(val aiaPath: Output<String>? = null, val backend: Output<String>? = null, val namespace: Output<String>? = null, val path: Output<String>? = null) : ConvertibleToJava<BackendConfigClusterArgs>

Allows setting the cluster-local's API mount path and AIA distribution point on a particular performance replication cluster.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as vault from "@pulumi/vault";
const root = new vault.Mount("root", {
path: "pki-root",
type: "pki",
description: "root PKI",
defaultLeaseTtlSeconds: 8640000,
maxLeaseTtlSeconds: 8640000,
});
const example = new vault.pkisecret.BackendConfigCluster("example", {
backend: root.path,
path: "http://127.0.0.1:8200/v1/pki-root",
aiaPath: "http://127.0.0.1:8200/v1/pki-root",
});
import pulumi
import pulumi_vault as vault
root = vault.Mount("root",
path="pki-root",
type="pki",
description="root PKI",
default_lease_ttl_seconds=8640000,
max_lease_ttl_seconds=8640000)
example = vault.pki_secret.BackendConfigCluster("example",
backend=root.path,
path="http://127.0.0.1:8200/v1/pki-root",
aia_path="http://127.0.0.1:8200/v1/pki-root")
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Vault = Pulumi.Vault;
return await Deployment.RunAsync(() =>
{
var root = new Vault.Mount("root", new()
{
Path = "pki-root",
Type = "pki",
Description = "root PKI",
DefaultLeaseTtlSeconds = 8640000,
MaxLeaseTtlSeconds = 8640000,
});
var example = new Vault.PkiSecret.BackendConfigCluster("example", new()
{
Backend = root.Path,
Path = "http://127.0.0.1:8200/v1/pki-root",
AiaPath = "http://127.0.0.1:8200/v1/pki-root",
});
});
package main
import (
"github.com/pulumi/pulumi-vault/sdk/v6/go/vault"
"github.com/pulumi/pulumi-vault/sdk/v6/go/vault/pkisecret"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
root, err := vault.NewMount(ctx, "root", &vault.MountArgs{
Path: pulumi.String("pki-root"),
Type: pulumi.String("pki"),
Description: pulumi.String("root PKI"),
DefaultLeaseTtlSeconds: pulumi.Int(8640000),
MaxLeaseTtlSeconds: pulumi.Int(8640000),
})
if err != nil {
return err
}
_, err = pkisecret.NewBackendConfigCluster(ctx, "example", &pkisecret.BackendConfigClusterArgs{
Backend: root.Path,
Path: pulumi.String("http://127.0.0.1:8200/v1/pki-root"),
AiaPath: pulumi.String("http://127.0.0.1:8200/v1/pki-root"),
})
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.Mount;
import com.pulumi.vault.MountArgs;
import com.pulumi.vault.pkiSecret.BackendConfigCluster;
import com.pulumi.vault.pkiSecret.BackendConfigClusterArgs;
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 root = new Mount("root", MountArgs.builder()
.path("pki-root")
.type("pki")
.description("root PKI")
.defaultLeaseTtlSeconds(8640000)
.maxLeaseTtlSeconds(8640000)
.build());
var example = new BackendConfigCluster("example", BackendConfigClusterArgs.builder()
.backend(root.path())
.path("http://127.0.0.1:8200/v1/pki-root")
.aiaPath("http://127.0.0.1:8200/v1/pki-root")
.build());
}
}
resources:
root:
type: vault:Mount
properties:
path: pki-root
type: pki
description: root PKI
defaultLeaseTtlSeconds: 8.64e+06
maxLeaseTtlSeconds: 8.64e+06
example:
type: vault:pkiSecret:BackendConfigCluster
properties:
backend: ${root.path}
path: http://127.0.0.1:8200/v1/pki-root
aiaPath: http://127.0.0.1:8200/v1/pki-root

Import

The PKI config cluster can be imported using the resource's id. In the case of the example above the id would be pki-root/config/cluster, where the pki-root component is the resource's backend, e.g.

$ pulumi import vault:pkiSecret/backendConfigCluster:BackendConfigCluster example pki-root/config/cluster

Constructors

Link copied to clipboard
constructor(aiaPath: Output<String>? = null, backend: Output<String>? = null, namespace: Output<String>? = null, path: Output<String>? = null)

Properties

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

Specifies the path to this performance replication cluster's AIA distribution point.

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

The path the PKI secret backend is mounted at, with no leading or trailing /s.

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 path: Output<String>? = null

Specifies the path to this performance replication cluster's API mount path.

Functions

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