
com.pulumi.vault.kv.kotlin.outputs.SecretV2CustomMetadata.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.vault.kv.kotlin.outputs
import kotlin.Any
import kotlin.Boolean
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.collections.Map
/**
*
* @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 SecretV2CustomMetadata(
public val casRequired: Boolean? = null,
public val `data`: Map? = null,
public val deleteVersionAfter: Int? = null,
public val maxVersions: Int? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.vault.kv.outputs.SecretV2CustomMetadata): SecretV2CustomMetadata = SecretV2CustomMetadata(
casRequired = javaType.casRequired().map({ args0 -> args0 }).orElse(null),
`data` = javaType.`data`().map({ args0 -> args0.key.to(args0.value) }).toMap(),
deleteVersionAfter = javaType.deleteVersionAfter().map({ args0 -> args0 }).orElse(null),
maxVersions = javaType.maxVersions().map({ args0 -> args0 }).orElse(null),
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy