com.pulumi.vault.kv.kotlin.outputs.GetSecretResult.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-vault-kotlin Show documentation
Show all versions of pulumi-vault-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@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
/**
* A collection of values returned by getSecret.
* @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 dataJson JSON-encoded string that that is
* read as the secret data at the given path.
* @property id The provider-assigned unique ID for this managed resource.
* @property leaseDuration The duration of the secret lease, in seconds. Once
* this time has passed any plan generated with this data may fail to apply.
* @property leaseId The lease identifier assigned by Vault, if any.
* @property leaseRenewable True if the duration of this lease can be extended
* through renewal.
* @property namespace
* @property path
*/
public data class GetSecretResult(
public val `data`: Map,
public val dataJson: String,
public val id: String,
public val leaseDuration: Int,
public val leaseId: String,
public val leaseRenewable: Boolean,
public val namespace: String? = null,
public val path: String,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.vault.kv.outputs.GetSecretResult): GetSecretResult =
GetSecretResult(
`data` = javaType.`data`().map({ args0 -> args0.key.to(args0.value) }).toMap(),
dataJson = javaType.dataJson(),
id = javaType.id(),
leaseDuration = javaType.leaseDuration(),
leaseId = javaType.leaseId(),
leaseRenewable = javaType.leaseRenewable(),
namespace = javaType.namespace().map({ args0 -> args0 }).orElse(null),
path = javaType.path(),
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy