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

com.pulumi.awsnative.dynamodb.kotlin.inputs.TableAttributeDefinitionArgs.kt Maven / Gradle / Ivy

@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("nwukrikxvssdloiw")
    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("vmsdfwmwxilontro")
    public suspend fun attributeType(`value`: Output) {
        this.attributeType = value
    }

    /**
     * @param value A name for the attribute.
     */
    @JvmName("lfhawgqwojkpysgf")
    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("sxloyhiqljegrcts")
    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