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

com.pulumi.nomad.kotlin.outputs.GetAclTokensAclToken.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: 2.4.2.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.nomad.kotlin.outputs

import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List

/**
 *
 * @property accessorId `(TypeString)` Non-sensitive identifier for the token.
 * @property createTime `(string)` Date and time the token was created at.
 * @property expirationTime `(string)` - The timestamp after which the token is
 * considered expired and eligible for destruction.
 * @property global `(bool)` Whether the token is replicated to all regions.
 * @property name `(TypeString)` The name of the token.
 * @property policies `(list of strings)` The list of policies attached to the token.
 * @property roles `(set: [])` - The list of roles attached to the token. Each entry has
 * `name` and `id` attributes.
 * @property type `(TypeString)` The type of the token.
 */
public data class GetAclTokensAclToken(
    public val accessorId: String,
    public val createTime: String,
    public val expirationTime: String,
    public val global: Boolean,
    public val name: String,
    public val policies: List,
    public val roles: List,
    public val type: String,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.nomad.outputs.GetAclTokensAclToken): GetAclTokensAclToken = GetAclTokensAclToken(
            accessorId = javaType.accessorId(),
            createTime = javaType.createTime(),
            expirationTime = javaType.expirationTime(),
            global = javaType.global(),
            name = javaType.name(),
            policies = javaType.policies().map({ args0 -> args0 }),
            roles = javaType.roles().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.nomad.kotlin.outputs.GetAclTokensAclTokenRole.Companion.toKotlin(args0)
                })
            }),
            type = javaType.type(),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy