![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.nomad.kotlin.outputs.GetAclTokenResult.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-nomad-kotlin Show documentation
Show all versions of pulumi-nomad-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.nomad.kotlin.outputs
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
/**
* A collection of values returned by getAclToken.
* @property accessorId `(string)` Non-sensitive identifier for this token.
* @property createTime `(string)` Date and time the token was created.
* @property expirationTime `(string)` - The timestamp after which the token is
* considered expired and eligible for destruction.
* @property expirationTtl `(string)` The expiration TTL for the token.
* @property global `(bool)` Whether the token is replicated to all regions, or if it
* will only be used in the region it was created.
* @property id The provider-assigned unique ID for this managed resource.
* @property name `(string)` Non-sensitive identifier for this token.
* @property policies `(list of strings)` List of policy names associated with this token.
* @property roles `(set: [])` - The list of roles attached to the token. Each entry has
* `name` and `id` attributes.
* @property secretId `(string)` The token value itself.
* @property type `(string)` The type of the token.
*/
public data class GetAclTokenResult(
public val accessorId: String,
public val createTime: String,
public val expirationTime: String,
public val expirationTtl: String,
public val global: Boolean,
public val id: String,
public val name: String,
public val policies: List,
public val roles: List,
public val secretId: String,
public val type: String,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.nomad.outputs.GetAclTokenResult): GetAclTokenResult =
GetAclTokenResult(
accessorId = javaType.accessorId(),
createTime = javaType.createTime(),
expirationTime = javaType.expirationTime(),
expirationTtl = javaType.expirationTtl(),
global = javaType.global(),
id = javaType.id(),
name = javaType.name(),
policies = javaType.policies().map({ args0 -> args0 }),
roles = javaType.roles().map({ args0 ->
args0.let({ args0 ->
com.pulumi.nomad.kotlin.outputs.GetAclTokenRole.Companion.toKotlin(args0)
})
}),
secretId = javaType.secretId(),
type = javaType.type(),
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy