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

com.pulumi.vault.kv.kotlin.inputs.SecretV2CustomMetadataArgs.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.kv.kotlin.inputs

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.kv.inputs.SecretV2CustomMetadataArgs.builder
import kotlin.Any
import kotlin.Boolean
import kotlin.Int
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.collections.Map
import kotlin.jvm.JvmName

/**
 *
 * @property casRequired If true, all keys will require the cas parameter to be set on all write requests.
 * @property data A mapping whose keys are the top-level data keys returned from
 * Vault and whose values are the corresponding values. This map can only
 * represent string data, so any non-string values returned from Vault are
 * serialized as JSON.
 * @property deleteVersionAfter If set, specifies the length of time before a version is deleted.
 * @property maxVersions The number of versions to keep per key.
 */
public data class SecretV2CustomMetadataArgs(
    public val casRequired: Output? = null,
    public val `data`: Output>? = null,
    public val deleteVersionAfter: Output? = null,
    public val maxVersions: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.vault.kv.inputs.SecretV2CustomMetadataArgs =
        com.pulumi.vault.kv.inputs.SecretV2CustomMetadataArgs.builder()
            .casRequired(casRequired?.applyValue({ args0 -> args0 }))
            .`data`(`data`?.applyValue({ args0 -> args0.map({ args0 -> args0.key.to(args0.value) }).toMap() }))
            .deleteVersionAfter(deleteVersionAfter?.applyValue({ args0 -> args0 }))
            .maxVersions(maxVersions?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [SecretV2CustomMetadataArgs].
 */
@PulumiTagMarker
public class SecretV2CustomMetadataArgsBuilder internal constructor() {
    private var casRequired: Output? = null

    private var `data`: Output>? = null

    private var deleteVersionAfter: Output? = null

    private var maxVersions: Output? = null

    /**
     * @param value If true, all keys will require the cas parameter to be set on all write requests.
     */
    @JvmName("uifsxpjesfnspxqa")
    public suspend fun casRequired(`value`: Output) {
        this.casRequired = value
    }

    /**
     * @param value A mapping whose keys are the top-level data keys returned from
     * Vault and whose values are the corresponding values. This map can only
     * represent string data, so any non-string values returned from Vault are
     * serialized as JSON.
     */
    @JvmName("rrcwojbegaljgntp")
    public suspend fun `data`(`value`: Output>) {
        this.`data` = value
    }

    /**
     * @param value If set, specifies the length of time before a version is deleted.
     */
    @JvmName("ejlwbkcrjnviskeh")
    public suspend fun deleteVersionAfter(`value`: Output) {
        this.deleteVersionAfter = value
    }

    /**
     * @param value The number of versions to keep per key.
     */
    @JvmName("cvlwgyvnmvgyjhup")
    public suspend fun maxVersions(`value`: Output) {
        this.maxVersions = value
    }

    /**
     * @param value If true, all keys will require the cas parameter to be set on all write requests.
     */
    @JvmName("mxigbpncwcyqhotq")
    public suspend fun casRequired(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.casRequired = mapped
    }

    /**
     * @param value A mapping whose keys are the top-level data keys returned from
     * Vault and whose values are the corresponding values. This map can only
     * represent string data, so any non-string values returned from Vault are
     * serialized as JSON.
     */
    @JvmName("hegnjlnfiqmxudse")
    public suspend fun `data`(`value`: Map?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.`data` = mapped
    }

    /**
     * @param values A mapping whose keys are the top-level data keys returned from
     * Vault and whose values are the corresponding values. This map can only
     * represent string data, so any non-string values returned from Vault are
     * serialized as JSON.
     */
    @JvmName("oetuajgkiewjjfen")
    public fun `data`(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.`data` = mapped
    }

    /**
     * @param value If set, specifies the length of time before a version is deleted.
     */
    @JvmName("ijmqykichyhbfpjd")
    public suspend fun deleteVersionAfter(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.deleteVersionAfter = mapped
    }

    /**
     * @param value The number of versions to keep per key.
     */
    @JvmName("tchjfvcpqjdphqrs")
    public suspend fun maxVersions(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.maxVersions = mapped
    }

    internal fun build(): SecretV2CustomMetadataArgs = SecretV2CustomMetadataArgs(
        casRequired = casRequired,
        `data` = `data`,
        deleteVersionAfter = deleteVersionAfter,
        maxVersions = maxVersions,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy