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

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

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.dynamodb.kotlin.inputs

import com.pulumi.awsnative.dynamodb.inputs.GlobalTableAttributeDefinitionArgs.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 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 GlobalTableAttributeDefinitionArgs(
    public val attributeName: Output,
    public val attributeType: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.dynamodb.inputs.GlobalTableAttributeDefinitionArgs =
        com.pulumi.awsnative.dynamodb.inputs.GlobalTableAttributeDefinitionArgs.builder()
            .attributeName(attributeName.applyValue({ args0 -> args0 }))
            .attributeType(attributeType.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [GlobalTableAttributeDefinitionArgs].
 */
@PulumiTagMarker
public class GlobalTableAttributeDefinitionArgsBuilder internal constructor() {
    private var attributeName: Output? = null

    private var attributeType: Output? = null

    /**
     * @param value A name for the attribute.
     */
    @JvmName("fkntmknxpblcachb")
    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("tbboppvwfknlnjwv")
    public suspend fun attributeType(`value`: Output) {
        this.attributeType = value
    }

    /**
     * @param value A name for the attribute.
     */
    @JvmName("tgrmswjtoabtrmke")
    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("jwedgeplovvrxila")
    public suspend fun attributeType(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.attributeType = mapped
    }

    internal fun build(): GlobalTableAttributeDefinitionArgs = GlobalTableAttributeDefinitionArgs(
        attributeName = attributeName ?: throw PulumiNullFieldException("attributeName"),
        attributeType = attributeType ?: throw PulumiNullFieldException("attributeType"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy