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

com.pulumi.azure.keyvault.kotlin.outputs.GetSecretResult.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.14.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azure.keyvault.kotlin.outputs

import kotlin.String
import kotlin.Suppress
import kotlin.collections.Map

/**
 * A collection of values returned by getSecret.
 * @property contentType The content type for the Key Vault Secret.
 * @property expirationDate The date and time at which the Key Vault Secret expires and is no longer valid.
 * @property id The provider-assigned unique ID for this managed resource.
 * @property keyVaultId
 * @property name
 * @property notBeforeDate The earliest date at which the Key Vault Secret can be used.
 * @property resourceId The (Versioned) ID for this Key Vault Secret. This property points to a specific version of a Key Vault Secret, as such using this won't auto-rotate values if used in other Azure Services.
 * @property resourceVersionlessId The Versionless ID of the Key Vault Secret. This property allows other Azure Services (that support it) to auto-rotate their value when the Key Vault Secret is updated.
 * @property tags Any tags assigned to this resource.
 * @property value The value of the Key Vault Secret.
 * @property version
 * @property versionlessId The Versionless ID of the Key Vault Secret. This can be used to always get latest secret value, and enable fetching automatically rotating secrets.
 */
public data class GetSecretResult(
    public val contentType: String,
    public val expirationDate: String,
    public val id: String,
    public val keyVaultId: String,
    public val name: String,
    public val notBeforeDate: String,
    public val resourceId: String,
    public val resourceVersionlessId: String,
    public val tags: Map,
    public val `value`: String,
    public val version: String? = null,
    public val versionlessId: String,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.azure.keyvault.outputs.GetSecretResult):
            GetSecretResult = GetSecretResult(
            contentType = javaType.contentType(),
            expirationDate = javaType.expirationDate(),
            id = javaType.id(),
            keyVaultId = javaType.keyVaultId(),
            name = javaType.name(),
            notBeforeDate = javaType.notBeforeDate(),
            resourceId = javaType.resourceId(),
            resourceVersionlessId = javaType.resourceVersionlessId(),
            tags = javaType.tags().map({ args0 -> args0.key.to(args0.value) }).toMap(),
            `value` = javaType.`value`(),
            version = javaType.version().map({ args0 -> args0 }).orElse(null),
            versionlessId = javaType.versionlessId(),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy