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

com.pulumi.awsnative.dynamodb.kotlin.inputs.TableTimeToLiveSpecificationArgs.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.dynamodb.kotlin.inputs

import com.pulumi.awsnative.dynamodb.inputs.TableTimeToLiveSpecificationArgs.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

/**
 * Represents the settings used to enable or disable Time to Live (TTL) for the specified table.
 * @property attributeName The name of the TTL attribute used to store the expiration time for items in the table.
 *    +  The ``AttributeName`` property is required when enabling the TTL, or when TTL is already enabled.
 *   +  To update this property, you must first disable TTL and then enable TTL with the new attribute name.
 * @property enabled Indicates whether TTL is to be enabled (true) or disabled (false) on the table.
 */
public data class TableTimeToLiveSpecificationArgs(
    public val attributeName: Output? = null,
    public val enabled: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.dynamodb.inputs.TableTimeToLiveSpecificationArgs =
        com.pulumi.awsnative.dynamodb.inputs.TableTimeToLiveSpecificationArgs.builder()
            .attributeName(attributeName?.applyValue({ args0 -> args0 }))
            .enabled(enabled.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [TableTimeToLiveSpecificationArgs].
 */
@PulumiTagMarker
public class TableTimeToLiveSpecificationArgsBuilder internal constructor() {
    private var attributeName: Output? = null

    private var enabled: Output? = null

    /**
     * @param value The name of the TTL attribute used to store the expiration time for items in the table.
     *    +  The ``AttributeName`` property is required when enabling the TTL, or when TTL is already enabled.
     *   +  To update this property, you must first disable TTL and then enable TTL with the new attribute name.
     */
    @JvmName("dixkhpsanghoqflp")
    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("gcscoaivoecuvtje")
    public suspend fun enabled(`value`: Output) {
        this.enabled = value
    }

    /**
     * @param value The name of the TTL attribute used to store the expiration time for items in the table.
     *    +  The ``AttributeName`` property is required when enabling the TTL, or when TTL is already enabled.
     *   +  To update this property, you must first disable TTL and then enable TTL with the new attribute name.
     */
    @JvmName("ixbongphcoutmbtt")
    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("jvjssqehtrejbnjx")
    public suspend fun enabled(`value`: Boolean) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.enabled = mapped
    }

    internal fun build(): TableTimeToLiveSpecificationArgs = TableTimeToLiveSpecificationArgs(
        attributeName = attributeName,
        enabled = enabled ?: throw PulumiNullFieldException("enabled"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy