All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.vault.pkiSecret.kotlin.BackendConfigClusterArgs.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 6.4.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.vault.pkiSecret.kotlin

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.vault.pkiSecret.BackendConfigClusterArgs.builder
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 * Allows setting the cluster-local's API mount path and AIA distribution point on a particular performance replication cluster.
 * ## Example Usage
 * 
 * ```typescript
 * 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",
 * });
 * ```
 * ```python
 * 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")
 * ```
 * ```csharp
 * 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",
 *     });
 * });
 * ```
 * ```go
 * 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
 * 	})
 * }
 * ```
 * ```java
 * 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());
 *     }
 * }
 * ```
 * ```yaml
 * 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.
 * ```sh
 * $ pulumi import vault:pkiSecret/backendConfigCluster:BackendConfigCluster example pki-root/config/cluster
 * ```
 * @property aiaPath Specifies the path to this performance replication cluster's AIA distribution point.
 * @property backend The path the PKI secret backend is mounted at, with no leading or trailing `/`s.
 * @property namespace 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](https://www.terraform.io/docs/providers/vault/index.html#namespace).
 * *Available only for Vault Enterprise*.
 * @property path Specifies the path to this performance replication cluster's API mount path.
 */
public data class BackendConfigClusterArgs(
    public val aiaPath: Output? = null,
    public val backend: Output? = null,
    public val namespace: Output? = null,
    public val path: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.vault.pkiSecret.BackendConfigClusterArgs =
        com.pulumi.vault.pkiSecret.BackendConfigClusterArgs.builder()
            .aiaPath(aiaPath?.applyValue({ args0 -> args0 }))
            .backend(backend?.applyValue({ args0 -> args0 }))
            .namespace(namespace?.applyValue({ args0 -> args0 }))
            .path(path?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [BackendConfigClusterArgs].
 */
@PulumiTagMarker
public class BackendConfigClusterArgsBuilder internal constructor() {
    private var aiaPath: Output? = null

    private var backend: Output? = null

    private var namespace: Output? = null

    private var path: Output? = null

    /**
     * @param value Specifies the path to this performance replication cluster's AIA distribution point.
     */
    @JvmName("rrnvuyajiwkccilx")
    public suspend fun aiaPath(`value`: Output) {
        this.aiaPath = value
    }

    /**
     * @param value The path the PKI secret backend is mounted at, with no leading or trailing `/`s.
     */
    @JvmName("poxapwcpylebgwqv")
    public suspend fun backend(`value`: Output) {
        this.backend = value
    }

    /**
     * @param value 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](https://www.terraform.io/docs/providers/vault/index.html#namespace).
     * *Available only for Vault Enterprise*.
     */
    @JvmName("ngldrmwvpqhtxfpx")
    public suspend fun namespace(`value`: Output) {
        this.namespace = value
    }

    /**
     * @param value Specifies the path to this performance replication cluster's API mount path.
     */
    @JvmName("tbgtigubgpajvjbb")
    public suspend fun path(`value`: Output) {
        this.path = value
    }

    /**
     * @param value Specifies the path to this performance replication cluster's AIA distribution point.
     */
    @JvmName("ehmnxeqpawsahgrc")
    public suspend fun aiaPath(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.aiaPath = mapped
    }

    /**
     * @param value The path the PKI secret backend is mounted at, with no leading or trailing `/`s.
     */
    @JvmName("pkhimpocskitwppn")
    public suspend fun backend(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.backend = mapped
    }

    /**
     * @param value 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](https://www.terraform.io/docs/providers/vault/index.html#namespace).
     * *Available only for Vault Enterprise*.
     */
    @JvmName("hkijepjeeevyxsdm")
    public suspend fun namespace(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.namespace = mapped
    }

    /**
     * @param value Specifies the path to this performance replication cluster's API mount path.
     */
    @JvmName("utqvemdhbvcojgwj")
    public suspend fun path(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.path = mapped
    }

    internal fun build(): BackendConfigClusterArgs = BackendConfigClusterArgs(
        aiaPath = aiaPath,
        backend = backend,
        namespace = namespace,
        path = path,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy