![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.cloudflare.kotlin.AccessServiceTokenArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-cloudflare-kotlin Show documentation
Show all versions of pulumi-cloudflare-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.cloudflare.kotlin
import com.pulumi.cloudflare.AccessServiceTokenArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
* Access Service Tokens are used for service-to-service communication
* when an application is behind Cloudflare Access.
* ## Import
* If you are importing an Access Service Token you will not have the
* client_secret available in the state for use. The client_secret is only
* available once, at creation. In most cases, it is better to just create a new
* resource should you need to reference it in other resources.
* ```sh
* $ pulumi import cloudflare:index/accessServiceToken:AccessServiceToken example /
* ```
* @property accountId The account identifier to target for the resource. Conflicts with `zone_id`.
* @property duration Length of time the service token is valid for. Available values: `8760h`, `17520h`, `43800h`, `87600h`, `forever`.
* @property minDaysForRenewal
* @property name Friendly name of the token's intent.
* @property zoneId The zone identifier to target for the resource. Conflicts with `account_id`.
*/
public data class AccessServiceTokenArgs(
public val accountId: Output? = null,
public val duration: Output? = null,
public val minDaysForRenewal: Output? = null,
public val name: Output? = null,
public val zoneId: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.cloudflare.AccessServiceTokenArgs =
com.pulumi.cloudflare.AccessServiceTokenArgs.builder()
.accountId(accountId?.applyValue({ args0 -> args0 }))
.duration(duration?.applyValue({ args0 -> args0 }))
.minDaysForRenewal(minDaysForRenewal?.applyValue({ args0 -> args0 }))
.name(name?.applyValue({ args0 -> args0 }))
.zoneId(zoneId?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [AccessServiceTokenArgs].
*/
@PulumiTagMarker
public class AccessServiceTokenArgsBuilder internal constructor() {
private var accountId: Output? = null
private var duration: Output? = null
private var minDaysForRenewal: Output? = null
private var name: Output? = null
private var zoneId: Output? = null
/**
* @param value The account identifier to target for the resource. Conflicts with `zone_id`.
*/
@JvmName("hmqhswjuewakvxxy")
public suspend fun accountId(`value`: Output) {
this.accountId = value
}
/**
* @param value Length of time the service token is valid for. Available values: `8760h`, `17520h`, `43800h`, `87600h`, `forever`.
*/
@JvmName("qhfspyemebbnktsh")
public suspend fun duration(`value`: Output) {
this.duration = value
}
/**
* @param value
*/
@JvmName("apdgcwbdiqjcufqi")
public suspend fun minDaysForRenewal(`value`: Output) {
this.minDaysForRenewal = value
}
/**
* @param value Friendly name of the token's intent.
*/
@JvmName("sjnssmldhxyjepil")
public suspend fun name(`value`: Output) {
this.name = value
}
/**
* @param value The zone identifier to target for the resource. Conflicts with `account_id`.
*/
@JvmName("dmalvbisuoivhajg")
public suspend fun zoneId(`value`: Output) {
this.zoneId = value
}
/**
* @param value The account identifier to target for the resource. Conflicts with `zone_id`.
*/
@JvmName("yyiujfkdfuchprax")
public suspend fun accountId(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.accountId = mapped
}
/**
* @param value Length of time the service token is valid for. Available values: `8760h`, `17520h`, `43800h`, `87600h`, `forever`.
*/
@JvmName("jwrdudpjibtovfwr")
public suspend fun duration(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.duration = mapped
}
/**
* @param value
*/
@JvmName("kyrxdggtpoyvrkuq")
public suspend fun minDaysForRenewal(`value`: Int?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.minDaysForRenewal = mapped
}
/**
* @param value Friendly name of the token's intent.
*/
@JvmName("eflhxrrkumomybby")
public suspend fun name(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.name = mapped
}
/**
* @param value The zone identifier to target for the resource. Conflicts with `account_id`.
*/
@JvmName("ilkmgavfecpvjvgh")
public suspend fun zoneId(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.zoneId = mapped
}
internal fun build(): AccessServiceTokenArgs = AccessServiceTokenArgs(
accountId = accountId,
duration = duration,
minDaysForRenewal = minDaysForRenewal,
name = name,
zoneId = zoneId,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy