![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.awsnative.dynamodb.kotlin.inputs.GlobalTableTimeToLiveSpecificationArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.dynamodb.kotlin.inputs
import com.pulumi.awsnative.dynamodb.inputs.GlobalTableTimeToLiveSpecificationArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
*
* @property attributeName The name of the attribute used to store the expiration time for items in the table.
* Currently, you cannot directly change the attribute name used to evaluate time to live. In order to do so, you must first disable time to live, and then re-enable it with the new attribute name. It can take up to one hour for changes to time to live to take effect. If you attempt to modify time to live within that time window, your stack operation might be delayed.
* @property enabled Indicates whether TTL is to be enabled (true) or disabled (false) on the table.
*/
public data class GlobalTableTimeToLiveSpecificationArgs(
public val attributeName: Output? = null,
public val enabled: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.dynamodb.inputs.GlobalTableTimeToLiveSpecificationArgs = com.pulumi.awsnative.dynamodb.inputs.GlobalTableTimeToLiveSpecificationArgs.builder()
.attributeName(attributeName?.applyValue({ args0 -> args0 }))
.enabled(enabled.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [GlobalTableTimeToLiveSpecificationArgs].
*/
@PulumiTagMarker
public class GlobalTableTimeToLiveSpecificationArgsBuilder internal constructor() {
private var attributeName: Output? = null
private var enabled: Output? = null
/**
* @param value The name of the attribute used to store the expiration time for items in the table.
* Currently, you cannot directly change the attribute name used to evaluate time to live. In order to do so, you must first disable time to live, and then re-enable it with the new attribute name. It can take up to one hour for changes to time to live to take effect. If you attempt to modify time to live within that time window, your stack operation might be delayed.
*/
@JvmName("nyvbrnetewiqsdfc")
public suspend fun attributeName(`value`: Output) {
this.attributeName = value
}
/**
* @param value Indicates whether TTL is to be enabled (true) or disabled (false) on the table.
*/
@JvmName("ixtujllqovdxuesf")
public suspend fun enabled(`value`: Output) {
this.enabled = value
}
/**
* @param value The name of the attribute used to store the expiration time for items in the table.
* Currently, you cannot directly change the attribute name used to evaluate time to live. In order to do so, you must first disable time to live, and then re-enable it with the new attribute name. It can take up to one hour for changes to time to live to take effect. If you attempt to modify time to live within that time window, your stack operation might be delayed.
*/
@JvmName("fkyruoddstjhjqir")
public suspend fun attributeName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.attributeName = mapped
}
/**
* @param value Indicates whether TTL is to be enabled (true) or disabled (false) on the table.
*/
@JvmName("iccbhmppmpvvoqrf")
public suspend fun enabled(`value`: Boolean) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.enabled = mapped
}
internal fun build(): GlobalTableTimeToLiveSpecificationArgs =
GlobalTableTimeToLiveSpecificationArgs(
attributeName = attributeName,
enabled = enabled ?: throw PulumiNullFieldException("enabled"),
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy