com.pulumi.aws.cognito.kotlin.inputs.UserPoolClientTokenValidityUnitsArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-aws-kotlin Show documentation
Show all versions of pulumi-aws-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.aws.cognito.kotlin.inputs
import com.pulumi.aws.cognito.inputs.UserPoolClientTokenValidityUnitsArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
*
* @property accessToken Time unit in for the value in `access_token_validity`, defaults to `hours`.
* @property idToken Time unit in for the value in `id_token_validity`, defaults to `hours`.
* @property refreshToken Time unit in for the value in `refresh_token_validity`, defaults to `days`.
*/
public data class UserPoolClientTokenValidityUnitsArgs(
public val accessToken: Output? = null,
public val idToken: Output? = null,
public val refreshToken: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.aws.cognito.inputs.UserPoolClientTokenValidityUnitsArgs =
com.pulumi.aws.cognito.inputs.UserPoolClientTokenValidityUnitsArgs.builder()
.accessToken(accessToken?.applyValue({ args0 -> args0 }))
.idToken(idToken?.applyValue({ args0 -> args0 }))
.refreshToken(refreshToken?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [UserPoolClientTokenValidityUnitsArgs].
*/
@PulumiTagMarker
public class UserPoolClientTokenValidityUnitsArgsBuilder internal constructor() {
private var accessToken: Output? = null
private var idToken: Output? = null
private var refreshToken: Output? = null
/**
* @param value Time unit in for the value in `access_token_validity`, defaults to `hours`.
*/
@JvmName("fxrcqjiffodlasre")
public suspend fun accessToken(`value`: Output) {
this.accessToken = value
}
/**
* @param value Time unit in for the value in `id_token_validity`, defaults to `hours`.
*/
@JvmName("mopcoxtgttwufjot")
public suspend fun idToken(`value`: Output) {
this.idToken = value
}
/**
* @param value Time unit in for the value in `refresh_token_validity`, defaults to `days`.
*/
@JvmName("chqfxtfkywuirxrh")
public suspend fun refreshToken(`value`: Output) {
this.refreshToken = value
}
/**
* @param value Time unit in for the value in `access_token_validity`, defaults to `hours`.
*/
@JvmName("jiprnvnysepwgule")
public suspend fun accessToken(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.accessToken = mapped
}
/**
* @param value Time unit in for the value in `id_token_validity`, defaults to `hours`.
*/
@JvmName("wogxivtfmqhdtwji")
public suspend fun idToken(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.idToken = mapped
}
/**
* @param value Time unit in for the value in `refresh_token_validity`, defaults to `days`.
*/
@JvmName("umrdhfsoqdpytgnl")
public suspend fun refreshToken(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.refreshToken = mapped
}
internal fun build(): UserPoolClientTokenValidityUnitsArgs = UserPoolClientTokenValidityUnitsArgs(
accessToken = accessToken,
idToken = idToken,
refreshToken = refreshToken,
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy