com.pulumi.vault.kubernetes.kotlin.outputs.GetServiceAccountTokenResult.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.kubernetes.kotlin.outputs
import kotlin.Boolean
import kotlin.Int
import kotlin.String
import kotlin.Suppress
/**
* A collection of values returned by getServiceAccountToken.
* @property backend
* @property clusterRoleBinding
* @property id The provider-assigned unique ID for this managed resource.
* @property kubernetesNamespace
* @property leaseDuration The duration of the lease in seconds.
* @property leaseId The lease identifier assigned by Vault.
* @property leaseRenewable True if the duration of this lease can be extended through renewal.
* @property namespace
* @property role
* @property serviceAccountName The name of the service account associated with the token.
* @property serviceAccountNamespace The Kubernetes namespace that the service account resides in.
* @property serviceAccountToken The Kubernetes service account token.
* @property ttl
*/
public data class GetServiceAccountTokenResult(
public val backend: String,
public val clusterRoleBinding: Boolean? = null,
public val id: String,
public val kubernetesNamespace: String,
public val leaseDuration: Int,
public val leaseId: String,
public val leaseRenewable: Boolean,
public val namespace: String? = null,
public val role: String,
public val serviceAccountName: String,
public val serviceAccountNamespace: String,
public val serviceAccountToken: String,
public val ttl: String? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.vault.kubernetes.outputs.GetServiceAccountTokenResult): GetServiceAccountTokenResult = GetServiceAccountTokenResult(
backend = javaType.backend(),
clusterRoleBinding = javaType.clusterRoleBinding().map({ args0 -> args0 }).orElse(null),
id = javaType.id(),
kubernetesNamespace = javaType.kubernetesNamespace(),
leaseDuration = javaType.leaseDuration(),
leaseId = javaType.leaseId(),
leaseRenewable = javaType.leaseRenewable(),
namespace = javaType.namespace().map({ args0 -> args0 }).orElse(null),
role = javaType.role(),
serviceAccountName = javaType.serviceAccountName(),
serviceAccountNamespace = javaType.serviceAccountNamespace(),
serviceAccountToken = javaType.serviceAccountToken(),
ttl = javaType.ttl().map({ args0 -> args0 }).orElse(null),
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy