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

com.pulumi.awsnative.timestream.kotlin.inputs.TablePartitionKeyArgs.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.24.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.timestream.kotlin.inputs

import com.pulumi.awsnative.timestream.inputs.TablePartitionKeyArgs.builder
import com.pulumi.awsnative.timestream.kotlin.enums.TablePartitionKeyEnforcementLevel
import com.pulumi.awsnative.timestream.kotlin.enums.TablePartitionKeyType
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.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 * An attribute used in partitioning data in a table. There are two types of partition keys: dimension keys and measure keys. A dimension key partitions data on a dimension name, while a measure key partitions data on the measure name.
 * @property enforcementInRecord
 * @property name
 * @property type
 */
public data class TablePartitionKeyArgs(
    public val enforcementInRecord: Output? = null,
    public val name: Output? = null,
    public val type: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.timestream.inputs.TablePartitionKeyArgs =
        com.pulumi.awsnative.timestream.inputs.TablePartitionKeyArgs.builder()
            .enforcementInRecord(
                enforcementInRecord?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .name(name?.applyValue({ args0 -> args0 }))
            .type(type.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}

/**
 * Builder for [TablePartitionKeyArgs].
 */
@PulumiTagMarker
public class TablePartitionKeyArgsBuilder internal constructor() {
    private var enforcementInRecord: Output? = null

    private var name: Output? = null

    private var type: Output? = null

    /**
     * @param value
     */
    @JvmName("ebqsvfuxyyqistrr")
    public suspend fun enforcementInRecord(`value`: Output) {
        this.enforcementInRecord = value
    }

    /**
     * @param value
     */
    @JvmName("rviiseespltomwxc")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value
     */
    @JvmName("sfrmwbrecgxdycts")
    public suspend fun type(`value`: Output) {
        this.type = value
    }

    /**
     * @param value
     */
    @JvmName("addhyvhkelogslpb")
    public suspend fun enforcementInRecord(`value`: TablePartitionKeyEnforcementLevel?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.enforcementInRecord = mapped
    }

    /**
     * @param value
     */
    @JvmName("mvjvkedmureiqxfm")
    public suspend fun name(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @param value
     */
    @JvmName("ihmauuafqqhxitbn")
    public suspend fun type(`value`: TablePartitionKeyType) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.type = mapped
    }

    internal fun build(): TablePartitionKeyArgs = TablePartitionKeyArgs(
        enforcementInRecord = enforcementInRecord,
        name = name,
        type = type ?: throw PulumiNullFieldException("type"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy