com.pulumi.aws.timestreamwrite.kotlin.inputs.TableRetentionPropertiesArgs.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.timestreamwrite.kotlin.inputs
import com.pulumi.aws.timestreamwrite.inputs.TableRetentionPropertiesArgs.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.Int
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
*
* @property magneticStoreRetentionPeriodInDays The duration for which data must be stored in the magnetic store. Minimum value of 1. Maximum value of 73000.
* @property memoryStoreRetentionPeriodInHours The duration for which data must be stored in the memory store. Minimum value of 1. Maximum value of 8766.
*/
public data class TableRetentionPropertiesArgs(
public val magneticStoreRetentionPeriodInDays: Output,
public val memoryStoreRetentionPeriodInHours: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.aws.timestreamwrite.inputs.TableRetentionPropertiesArgs =
com.pulumi.aws.timestreamwrite.inputs.TableRetentionPropertiesArgs.builder()
.magneticStoreRetentionPeriodInDays(
magneticStoreRetentionPeriodInDays.applyValue({ args0 ->
args0
}),
)
.memoryStoreRetentionPeriodInHours(
memoryStoreRetentionPeriodInHours.applyValue({ args0 ->
args0
}),
).build()
}
/**
* Builder for [TableRetentionPropertiesArgs].
*/
@PulumiTagMarker
public class TableRetentionPropertiesArgsBuilder internal constructor() {
private var magneticStoreRetentionPeriodInDays: Output? = null
private var memoryStoreRetentionPeriodInHours: Output? = null
/**
* @param value The duration for which data must be stored in the magnetic store. Minimum value of 1. Maximum value of 73000.
*/
@JvmName("orulyhrhmsrhwtda")
public suspend fun magneticStoreRetentionPeriodInDays(`value`: Output) {
this.magneticStoreRetentionPeriodInDays = value
}
/**
* @param value The duration for which data must be stored in the memory store. Minimum value of 1. Maximum value of 8766.
*/
@JvmName("qmqtudtatdcnxpsg")
public suspend fun memoryStoreRetentionPeriodInHours(`value`: Output) {
this.memoryStoreRetentionPeriodInHours = value
}
/**
* @param value The duration for which data must be stored in the magnetic store. Minimum value of 1. Maximum value of 73000.
*/
@JvmName("fpnbgnwsofrsaksm")
public suspend fun magneticStoreRetentionPeriodInDays(`value`: Int) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.magneticStoreRetentionPeriodInDays = mapped
}
/**
* @param value The duration for which data must be stored in the memory store. Minimum value of 1. Maximum value of 8766.
*/
@JvmName("wtskdgcyafprjkuj")
public suspend fun memoryStoreRetentionPeriodInHours(`value`: Int) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.memoryStoreRetentionPeriodInHours = mapped
}
internal fun build(): TableRetentionPropertiesArgs = TableRetentionPropertiesArgs(
magneticStoreRetentionPeriodInDays = magneticStoreRetentionPeriodInDays ?: throw
PulumiNullFieldException("magneticStoreRetentionPeriodInDays"),
memoryStoreRetentionPeriodInHours = memoryStoreRetentionPeriodInHours ?: throw
PulumiNullFieldException("memoryStoreRetentionPeriodInHours"),
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy