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

com.pulumi.awsnative.dynamodb.kotlin.outputs.TableTimeToLiveSpecification.kt Maven / Gradle / Ivy

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

package com.pulumi.awsnative.dynamodb.kotlin.outputs

import kotlin.Boolean
import kotlin.String
import kotlin.Suppress

/**
 * 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 TableTimeToLiveSpecification(
    public val attributeName: String? = null,
    public val enabled: Boolean,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.awsnative.dynamodb.outputs.TableTimeToLiveSpecification): TableTimeToLiveSpecification = TableTimeToLiveSpecification(
            attributeName = javaType.attributeName().map({ args0 -> args0 }).orElse(null),
            enabled = javaType.enabled(),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy