com.pulumi.aws.timestreamwrite.kotlin.inputs.TableSchemaCompositePartitionKeyArgs.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.TableSchemaCompositePartitionKeyArgs.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.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
*
* @property enforcementInRecord The level of enforcement for the specification of a dimension key in ingested records. Valid values: `REQUIRED`, `OPTIONAL`.
* @property name The name of the attribute used for a dimension key.
* @property type The type of the partition key. Valid values: `DIMENSION`, `MEASURE`.
*/
public data class TableSchemaCompositePartitionKeyArgs(
public val enforcementInRecord: Output? = null,
public val name: Output? = null,
public val type: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.aws.timestreamwrite.inputs.TableSchemaCompositePartitionKeyArgs = com.pulumi.aws.timestreamwrite.inputs.TableSchemaCompositePartitionKeyArgs.builder()
.enforcementInRecord(enforcementInRecord?.applyValue({ args0 -> args0 }))
.name(name?.applyValue({ args0 -> args0 }))
.type(type.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [TableSchemaCompositePartitionKeyArgs].
*/
@PulumiTagMarker
public class TableSchemaCompositePartitionKeyArgsBuilder internal constructor() {
private var enforcementInRecord: Output? = null
private var name: Output? = null
private var type: Output? = null
/**
* @param value The level of enforcement for the specification of a dimension key in ingested records. Valid values: `REQUIRED`, `OPTIONAL`.
*/
@JvmName("lyvvhesyrsxnyoib")
public suspend fun enforcementInRecord(`value`: Output) {
this.enforcementInRecord = value
}
/**
* @param value The name of the attribute used for a dimension key.
*/
@JvmName("xdekriuotiskmuyf")
public suspend fun name(`value`: Output) {
this.name = value
}
/**
* @param value The type of the partition key. Valid values: `DIMENSION`, `MEASURE`.
*/
@JvmName("oquogwepdsurktnt")
public suspend fun type(`value`: Output) {
this.type = value
}
/**
* @param value The level of enforcement for the specification of a dimension key in ingested records. Valid values: `REQUIRED`, `OPTIONAL`.
*/
@JvmName("fusqjhkcyfgtikra")
public suspend fun enforcementInRecord(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.enforcementInRecord = mapped
}
/**
* @param value The name of the attribute used for a dimension key.
*/
@JvmName("ywjmumucpmdhlosq")
public suspend fun name(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.name = mapped
}
/**
* @param value The type of the partition key. Valid values: `DIMENSION`, `MEASURE`.
*/
@JvmName("clxydkopgusexkvh")
public suspend fun type(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.type = mapped
}
internal fun build(): TableSchemaCompositePartitionKeyArgs = TableSchemaCompositePartitionKeyArgs(
enforcementInRecord = enforcementInRecord,
name = name,
type = type ?: throw PulumiNullFieldException("type"),
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy