com.pulumi.awsnative.timestream.kotlin.TableArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-aws-native-kotlin Show documentation
Show all versions of pulumi-aws-native-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.awsnative.timestream.kotlin
import com.pulumi.awsnative.kotlin.inputs.TagArgs
import com.pulumi.awsnative.kotlin.inputs.TagArgsBuilder
import com.pulumi.awsnative.timestream.TableArgs.builder
import com.pulumi.awsnative.timestream.kotlin.inputs.MagneticStoreWritePropertiesPropertiesArgs
import com.pulumi.awsnative.timestream.kotlin.inputs.MagneticStoreWritePropertiesPropertiesArgsBuilder
import com.pulumi.awsnative.timestream.kotlin.inputs.RetentionPropertiesPropertiesArgs
import com.pulumi.awsnative.timestream.kotlin.inputs.RetentionPropertiesPropertiesArgsBuilder
import com.pulumi.awsnative.timestream.kotlin.inputs.SchemaPropertiesArgs
import com.pulumi.awsnative.timestream.kotlin.inputs.SchemaPropertiesArgsBuilder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName
/**
* The AWS::Timestream::Table resource creates a Timestream Table.
* @property databaseName The name for the database which the table to be created belongs to.
* @property magneticStoreWriteProperties The properties that determine whether magnetic store writes are enabled.
* @property retentionProperties The retention duration of the memory store and the magnetic store.
* @property schema A Schema specifies the expected data model of the table.
* @property tableName The name for the table. If you don't specify a name, AWS CloudFormation generates a unique physical ID and uses that ID for the table name.
* @property tags An array of key-value pairs to apply to this resource.
*/
public data class TableArgs(
public val databaseName: Output? = null,
public val magneticStoreWriteProperties: Output? =
null,
public val retentionProperties: Output? = null,
public val schema: Output? = null,
public val tableName: Output? = null,
public val tags: Output>? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.timestream.TableArgs =
com.pulumi.awsnative.timestream.TableArgs.builder()
.databaseName(databaseName?.applyValue({ args0 -> args0 }))
.magneticStoreWriteProperties(
magneticStoreWriteProperties?.applyValue({ args0 ->
args0.let({ args0 -> args0.toJava() })
}),
)
.retentionProperties(
retentionProperties?.applyValue({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
}),
)
.schema(schema?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.tableName(tableName?.applyValue({ args0 -> args0 }))
.tags(
tags?.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
})
}),
).build()
}
/**
* Builder for [TableArgs].
*/
@PulumiTagMarker
public class TableArgsBuilder internal constructor() {
private var databaseName: Output? = null
private var magneticStoreWriteProperties: Output? =
null
private var retentionProperties: Output? = null
private var schema: Output? = null
private var tableName: Output? = null
private var tags: Output>? = null
/**
* @param value The name for the database which the table to be created belongs to.
*/
@JvmName("xtdqhwqvjpwllrsj")
public suspend fun databaseName(`value`: Output) {
this.databaseName = value
}
/**
* @param value The properties that determine whether magnetic store writes are enabled.
*/
@JvmName("hnigkruganithffa")
public suspend fun magneticStoreWriteProperties(`value`: Output) {
this.magneticStoreWriteProperties = value
}
/**
* @param value The retention duration of the memory store and the magnetic store.
*/
@JvmName("deijyrxnxdnqdeky")
public suspend fun retentionProperties(`value`: Output) {
this.retentionProperties = value
}
/**
* @param value A Schema specifies the expected data model of the table.
*/
@JvmName("fulybqcregooikkp")
public suspend fun schema(`value`: Output) {
this.schema = value
}
/**
* @param value The name for the table. If you don't specify a name, AWS CloudFormation generates a unique physical ID and uses that ID for the table name.
*/
@JvmName("uonyapgnkpldexsq")
public suspend fun tableName(`value`: Output) {
this.tableName = value
}
/**
* @param value An array of key-value pairs to apply to this resource.
*/
@JvmName("wiqlryitmtxgnibm")
public suspend fun tags(`value`: Output>) {
this.tags = value
}
@JvmName("gifvdhveseyqtipf")
public suspend fun tags(vararg values: Output) {
this.tags = Output.all(values.asList())
}
/**
* @param values An array of key-value pairs to apply to this resource.
*/
@JvmName("twnhmoiiygxjiojf")
public suspend fun tags(values: List