
com.pulumi.awsnative.dynamodb.kotlin.inputs.TableAttributeDefinitionArgs.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.dynamodb.kotlin.inputs
import com.pulumi.awsnative.dynamodb.inputs.TableAttributeDefinitionArgs.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
/**
* Represents an attribute for describing the schema for the table and indexes.
* @property attributeName A name for the attribute.
* @property attributeType The data type for the attribute, where:
* + ``S`` - the attribute is of type String
* + ``N`` - the attribute is of type Number
* + ``B`` - the attribute is of type Binary
*/
public data class TableAttributeDefinitionArgs(
public val attributeName: Output,
public val attributeType: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.dynamodb.inputs.TableAttributeDefinitionArgs =
com.pulumi.awsnative.dynamodb.inputs.TableAttributeDefinitionArgs.builder()
.attributeName(attributeName.applyValue({ args0 -> args0 }))
.attributeType(attributeType.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [TableAttributeDefinitionArgs].
*/
@PulumiTagMarker
public class TableAttributeDefinitionArgsBuilder internal constructor() {
private var attributeName: Output? = null
private var attributeType: Output? = null
/**
* @param value A name for the attribute.
*/
@JvmName("nsdsmihnycneyqbt")
public suspend fun attributeName(`value`: Output) {
this.attributeName = value
}
/**
* @param value The data type for the attribute, where:
* + ``S`` - the attribute is of type String
* + ``N`` - the attribute is of type Number
* + ``B`` - the attribute is of type Binary
*/
@JvmName("mwhxjmbujvhspnwa")
public suspend fun attributeType(`value`: Output) {
this.attributeType = value
}
/**
* @param value A name for the attribute.
*/
@JvmName("hagiclpuadmphlqs")
public suspend fun attributeName(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.attributeName = mapped
}
/**
* @param value The data type for the attribute, where:
* + ``S`` - the attribute is of type String
* + ``N`` - the attribute is of type Number
* + ``B`` - the attribute is of type Binary
*/
@JvmName("bvhocgajfrekwdmw")
public suspend fun attributeType(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.attributeType = mapped
}
internal fun build(): TableAttributeDefinitionArgs = TableAttributeDefinitionArgs(
attributeName = attributeName ?: throw PulumiNullFieldException("attributeName"),
attributeType = attributeType ?: throw PulumiNullFieldException("attributeType"),
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy