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

com.pulumi.vault.azure.kotlin.outputs.GetAccessCredentialsResult.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.azure.kotlin.outputs

import kotlin.Boolean
import kotlin.Int
import kotlin.String
import kotlin.Suppress

/**
 * A collection of values returned by getAccessCredentials.
 * @property backend
 * @property clientId The client id for credentials to query the Azure APIs.
 * @property clientSecret The client secret for credentials to query the Azure APIs.
 * @property environment
 * @property id The provider-assigned unique ID for this managed resource.
 * @property leaseDuration The duration of the secret lease, in seconds relative
 * to the time the data was requested. Once this time has passed any plan
 * generated with this data may fail to apply.
 * @property leaseId The lease identifier assigned by Vault.
 * @property leaseRenewable
 * @property leaseStartTime
 * @property maxCredValidationSeconds
 * @property namespace
 * @property numSecondsBetweenTests
 * @property numSequentialSuccesses
 * @property role
 * @property subscriptionId
 * @property tenantId
 * @property validateCreds
 */
public data class GetAccessCredentialsResult(
    public val backend: String,
    public val clientId: String,
    public val clientSecret: String,
    public val environment: String? = null,
    public val id: String,
    public val leaseDuration: Int,
    public val leaseId: String,
    public val leaseRenewable: Boolean,
    public val leaseStartTime: String,
    public val maxCredValidationSeconds: Int? = null,
    public val namespace: String? = null,
    public val numSecondsBetweenTests: Int? = null,
    public val numSequentialSuccesses: Int? = null,
    public val role: String,
    public val subscriptionId: String? = null,
    public val tenantId: String? = null,
    public val validateCreds: Boolean? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.vault.azure.outputs.GetAccessCredentialsResult): GetAccessCredentialsResult = GetAccessCredentialsResult(
            backend = javaType.backend(),
            clientId = javaType.clientId(),
            clientSecret = javaType.clientSecret(),
            environment = javaType.environment().map({ args0 -> args0 }).orElse(null),
            id = javaType.id(),
            leaseDuration = javaType.leaseDuration(),
            leaseId = javaType.leaseId(),
            leaseRenewable = javaType.leaseRenewable(),
            leaseStartTime = javaType.leaseStartTime(),
            maxCredValidationSeconds = javaType.maxCredValidationSeconds().map({ args0 -> args0 }).orElse(null),
            namespace = javaType.namespace().map({ args0 -> args0 }).orElse(null),
            numSecondsBetweenTests = javaType.numSecondsBetweenTests().map({ args0 -> args0 }).orElse(null),
            numSequentialSuccesses = javaType.numSequentialSuccesses().map({ args0 -> args0 }).orElse(null),
            role = javaType.role(),
            subscriptionId = javaType.subscriptionId().map({ args0 -> args0 }).orElse(null),
            tenantId = javaType.tenantId().map({ args0 -> args0 }).orElse(null),
            validateCreds = javaType.validateCreds().map({ args0 -> args0 }).orElse(null),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy