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

com.pulumi.awsnative.timestream.kotlin.TableArgs.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 1.11.0.0
Show newest version
@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>) {
        this.tags = Output.all(values)
    }

    /**
     * @param value The name for the database which the table to be created belongs to.
     */
    @JvmName("wxomcyeviwcstjuc")
    public suspend fun databaseName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.databaseName = mapped
    }

    /**
     * @param value The properties that determine whether magnetic store writes are enabled.
     */
    @JvmName("olwcdvwcwuuhtdeb")
    public suspend fun magneticStoreWriteProperties(`value`: MagneticStoreWritePropertiesPropertiesArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.magneticStoreWriteProperties = mapped
    }

    /**
     * @param argument The properties that determine whether magnetic store writes are enabled.
     */
    @JvmName("cjhokpxhxdykgxos")
    public suspend fun magneticStoreWriteProperties(argument: suspend MagneticStoreWritePropertiesPropertiesArgsBuilder.() -> Unit) {
        val toBeMapped = MagneticStoreWritePropertiesPropertiesArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.magneticStoreWriteProperties = mapped
    }

    /**
     * @param value The retention duration of the memory store and the magnetic store.
     */
    @JvmName("kqitvnwyexlqypjn")
    public suspend fun retentionProperties(`value`: RetentionPropertiesPropertiesArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.retentionProperties = mapped
    }

    /**
     * @param argument The retention duration of the memory store and the magnetic store.
     */
    @JvmName("ypjeugosfdmskchq")
    public suspend fun retentionProperties(argument: suspend RetentionPropertiesPropertiesArgsBuilder.() -> Unit) {
        val toBeMapped = RetentionPropertiesPropertiesArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.retentionProperties = mapped
    }

    /**
     * @param value A Schema specifies the expected data model of the table.
     */
    @JvmName("gqsvegxpujjhhiyk")
    public suspend fun schema(`value`: SchemaPropertiesArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.schema = mapped
    }

    /**
     * @param argument A Schema specifies the expected data model of the table.
     */
    @JvmName("wxtqkpjhmeyrhahm")
    public suspend fun schema(argument: suspend SchemaPropertiesArgsBuilder.() -> Unit) {
        val toBeMapped = SchemaPropertiesArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.schema = mapped
    }

    /**
     * @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("atsecuehvwwpiyff")
    public suspend fun tableName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tableName = mapped
    }

    /**
     * @param value An array of key-value pairs to apply to this resource.
     */
    @JvmName("uydnlvsicedasnrs")
    public suspend fun tags(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param argument An array of key-value pairs to apply to this resource.
     */
    @JvmName("mgofvktemfdyvvni")
    public suspend fun tags(argument: List Unit>) {
        val toBeMapped = argument.toList().map { TagArgsBuilder().applySuspend { it() }.build() }
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param argument An array of key-value pairs to apply to this resource.
     */
    @JvmName("wjntignlnrmayrxl")
    public suspend fun tags(vararg argument: suspend TagArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map { TagArgsBuilder().applySuspend { it() }.build() }
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param argument An array of key-value pairs to apply to this resource.
     */
    @JvmName("knpkmdqshngrbmnw")
    public suspend fun tags(argument: suspend TagArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(TagArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param values An array of key-value pairs to apply to this resource.
     */
    @JvmName("kdphrpjimiiucowr")
    public suspend fun tags(vararg values: TagArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    internal fun build(): TableArgs = TableArgs(
        databaseName = databaseName,
        magneticStoreWriteProperties = magneticStoreWriteProperties,
        retentionProperties = retentionProperties,
        schema = schema,
        tableName = tableName,
        tags = tags,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy