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

com.pulumi.vault.aws.kotlin.AuthBackendCertArgs.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.6.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.vault.aws.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.aws.AuthBackendCertArgs.builder
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 * ## Example Usage
 * ## Import
 * AWS auth backend certificates can be imported using `auth/`, the `backend` path, `/config/certificate/`, and the `cert_name` e.g.
 * ```sh
 * $ pulumi import vault:aws/authBackendCert:AuthBackendCert example auth/aws/config/certificate/my-cert
 * ```
 * @property awsPublicCert The  Base64 encoded AWS Public key required to
 * verify PKCS7 signature of the EC2 instance metadata. You can find this key in
 * the [AWS
 * documentation](http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-identity-documents.html).
 * @property backend The path the AWS auth backend being configured was
 * mounted at.  Defaults to `aws`.
 * @property certName The name of the certificate.
 * @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 type Either "pkcs7" or "identity", indicating the type of
 * document which can be verified using the given certificate. Defaults to
 * "pkcs7".
 */
public data class AuthBackendCertArgs(
    public val awsPublicCert: Output? = null,
    public val backend: Output? = null,
    public val certName: Output? = null,
    public val namespace: Output? = null,
    public val type: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.vault.aws.AuthBackendCertArgs =
        com.pulumi.vault.aws.AuthBackendCertArgs.builder()
            .awsPublicCert(awsPublicCert?.applyValue({ args0 -> args0 }))
            .backend(backend?.applyValue({ args0 -> args0 }))
            .certName(certName?.applyValue({ args0 -> args0 }))
            .namespace(namespace?.applyValue({ args0 -> args0 }))
            .type(type?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [AuthBackendCertArgs].
 */
@PulumiTagMarker
public class AuthBackendCertArgsBuilder internal constructor() {
    private var awsPublicCert: Output? = null

    private var backend: Output? = null

    private var certName: Output? = null

    private var namespace: Output? = null

    private var type: Output? = null

    /**
     * @param value The  Base64 encoded AWS Public key required to
     * verify PKCS7 signature of the EC2 instance metadata. You can find this key in
     * the [AWS
   * documentation](http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-identity-documents.html).
     */
    @JvmName("fxgyhvvfhyavoohn")
    public suspend fun awsPublicCert(`value`: Output) {
        this.awsPublicCert = value
    }

    /**
     * @param value The path the AWS auth backend being configured was
     * mounted at.  Defaults to `aws`.
     */
    @JvmName("fitjqyorqoyqkdxx")
    public suspend fun backend(`value`: Output) {
        this.backend = value
    }

    /**
     * @param value The name of the certificate.
     */
    @JvmName("oulhacbhhxhhmibb")
    public suspend fun certName(`value`: Output) {
        this.certName = 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("yktibqabukomirud")
    public suspend fun namespace(`value`: Output) {
        this.namespace = value
    }

    /**
     * @param value Either "pkcs7" or "identity", indicating the type of
     * document which can be verified using the given certificate. Defaults to
     * "pkcs7".
     */
    @JvmName("vmtbikauplyourfg")
    public suspend fun type(`value`: Output) {
        this.type = value
    }

    /**
     * @param value The  Base64 encoded AWS Public key required to
     * verify PKCS7 signature of the EC2 instance metadata. You can find this key in
     * the [AWS
   * documentation](http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-identity-documents.html).
     */
    @JvmName("uwkmwsjqhypyqwoh")
    public suspend fun awsPublicCert(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.awsPublicCert = mapped
    }

    /**
     * @param value The path the AWS auth backend being configured was
     * mounted at.  Defaults to `aws`.
     */
    @JvmName("ynnudkcfwvvyfhse")
    public suspend fun backend(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.backend = mapped
    }

    /**
     * @param value The name of the certificate.
     */
    @JvmName("afbikuhaqincdcib")
    public suspend fun certName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.certName = 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("hkvltbfnohgqdwjg")
    public suspend fun namespace(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.namespace = mapped
    }

    /**
     * @param value Either "pkcs7" or "identity", indicating the type of
     * document which can be verified using the given certificate. Defaults to
     * "pkcs7".
     */
    @JvmName("uoeskmjukinqtxle")
    public suspend fun type(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.type = mapped
    }

    internal fun build(): AuthBackendCertArgs = AuthBackendCertArgs(
        awsPublicCert = awsPublicCert,
        backend = backend,
        certName = certName,
        namespace = namespace,
        type = type,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy