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

com.pulumi.awsnative.dynamodb.kotlin.TableArgs.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: 0.122.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.dynamodb.kotlin

import com.pulumi.awsnative.dynamodb.TableArgs.builder
import com.pulumi.awsnative.dynamodb.kotlin.inputs.TableAttributeDefinitionArgs
import com.pulumi.awsnative.dynamodb.kotlin.inputs.TableAttributeDefinitionArgsBuilder
import com.pulumi.awsnative.dynamodb.kotlin.inputs.TableContributorInsightsSpecificationArgs
import com.pulumi.awsnative.dynamodb.kotlin.inputs.TableContributorInsightsSpecificationArgsBuilder
import com.pulumi.awsnative.dynamodb.kotlin.inputs.TableGlobalSecondaryIndexArgs
import com.pulumi.awsnative.dynamodb.kotlin.inputs.TableGlobalSecondaryIndexArgsBuilder
import com.pulumi.awsnative.dynamodb.kotlin.inputs.TableImportSourceSpecificationArgs
import com.pulumi.awsnative.dynamodb.kotlin.inputs.TableImportSourceSpecificationArgsBuilder
import com.pulumi.awsnative.dynamodb.kotlin.inputs.TableKeySchemaArgs
import com.pulumi.awsnative.dynamodb.kotlin.inputs.TableKinesisStreamSpecificationArgs
import com.pulumi.awsnative.dynamodb.kotlin.inputs.TableKinesisStreamSpecificationArgsBuilder
import com.pulumi.awsnative.dynamodb.kotlin.inputs.TableLocalSecondaryIndexArgs
import com.pulumi.awsnative.dynamodb.kotlin.inputs.TableLocalSecondaryIndexArgsBuilder
import com.pulumi.awsnative.dynamodb.kotlin.inputs.TableOnDemandThroughputArgs
import com.pulumi.awsnative.dynamodb.kotlin.inputs.TableOnDemandThroughputArgsBuilder
import com.pulumi.awsnative.dynamodb.kotlin.inputs.TablePointInTimeRecoverySpecificationArgs
import com.pulumi.awsnative.dynamodb.kotlin.inputs.TablePointInTimeRecoverySpecificationArgsBuilder
import com.pulumi.awsnative.dynamodb.kotlin.inputs.TableProvisionedThroughputArgs
import com.pulumi.awsnative.dynamodb.kotlin.inputs.TableProvisionedThroughputArgsBuilder
import com.pulumi.awsnative.dynamodb.kotlin.inputs.TableResourcePolicyArgs
import com.pulumi.awsnative.dynamodb.kotlin.inputs.TableResourcePolicyArgsBuilder
import com.pulumi.awsnative.dynamodb.kotlin.inputs.TableSseSpecificationArgs
import com.pulumi.awsnative.dynamodb.kotlin.inputs.TableSseSpecificationArgsBuilder
import com.pulumi.awsnative.dynamodb.kotlin.inputs.TableStreamSpecificationArgs
import com.pulumi.awsnative.dynamodb.kotlin.inputs.TableStreamSpecificationArgsBuilder
import com.pulumi.awsnative.dynamodb.kotlin.inputs.TableTimeToLiveSpecificationArgs
import com.pulumi.awsnative.dynamodb.kotlin.inputs.TableTimeToLiveSpecificationArgsBuilder
import com.pulumi.awsnative.kotlin.inputs.TagArgs
import com.pulumi.awsnative.kotlin.inputs.TagArgsBuilder
import com.pulumi.core.Either
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Any
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * The ``AWS::DynamoDB::Table`` resource creates a DDB table. For more information, see [CreateTable](https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_CreateTable.html) in the *API Reference*.
 *  You should be aware of the following behaviors when working with DDB tables:
 *   +   CFNlong typically creates DDB tables in parallel. However, if your template includes multiple DDB tables with indexes, you must declare dependencies so that the tables are created sequentially. DDBlong limits the number of tables with secondary indexes that are in the creating state. If you create multiple tables with indexes at the same time, DDB returns an error and the stack operation fails. For an example, see [DynamoDB Table with a DependsOn Attribute](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dynamodb-table.html#aws-resource-dynamodb-table--examples--DynamoDB_Table_with_a_DependsOn_Attribute).
 *    Our guidance is to use the latest schema documented here for your CFNlong templates. This schema supports the provisioning of all table settings below. When using this schema in your CFNlong templates, please ensure that your Identity and Access Management (IAM) policies are updated with appropriate permissions to allow for the authorization of these setting changes.
 * ## Example Usage
 * ### Example
 * No Java example available.
 * ### Example
 * No Java example available.
 * @property attributeDefinitions A list of attributes that describe the key schema for the table and indexes.
 *  This property is required to create a DDB table.
 *  Update requires: [Some interruptions](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-some-interrupt). Replacement if you edit an existing AttributeDefinition.
 * @property billingMode Specify how you are charged for read and write throughput and how you manage capacity.
 *  Valid values include:
 *   +   ``PROVISIONED`` - We recommend using ``PROVISIONED`` for predictable workloads. ``PROVISIONED`` sets the billing mode to [Provisioned Mode](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/HowItWorks.ReadWriteCapacityMode.html#HowItWorks.ProvisionedThroughput.Manual).
 *   +   ``PAY_PER_REQUEST`` - We recommend using ``PAY_PER_REQUEST`` for unpredictable workloads. ``PAY_PER_REQUEST`` sets the billing mode to [On-Demand Mode](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/HowItWorks.ReadWriteCapacityMode.html#HowItWorks.OnDemand).
 *  If not specified, the default is ``PROVISIONED``.
 * @property contributorInsightsSpecification The settings used to enable or disable CloudWatch Contributor Insights for the specified table.
 * @property deletionProtectionEnabled Determines if a table is protected from deletion. When enabled, the table cannot be deleted by any user or process. This setting is disabled by default. For more information, see [Using deletion protection](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/WorkingWithTables.Basics.html#WorkingWithTables.Basics.DeletionProtection) in the *Developer Guide*.
 * @property globalSecondaryIndexes Global secondary indexes to be created on the table. You can create up to 20 global secondary indexes.
 *   If you update a table to include a new global secondary index, CFNlong initiates the index creation and then proceeds with the stack update. CFNlong doesn't wait for the index to complete creation because the backfilling phase can take a long time, depending on the size of the table. You can't use the index or update the table until the index's status is ``ACTIVE``. You can track its status by using the DynamoDB [DescribeTable](https://docs.aws.amazon.com/cli/latest/reference/dynamodb/describe-table.html) command.
 *  If you add or delete an index during an update, we recommend that you don't update any other resources. If your stack fails to update and is rolled back while adding a new index, you must manually delete the index.
 *  Updates are not supported. The following are exceptions:
 *   +  If you update either the contributor insights specification or the provisioned throughput values of global secondary indexes, you can update the table without interruption.
 *   +  You can delete or add one global secondary index without interruption. If you do both in the same update (for example, by changing the index's logical ID), the update fails.
 * @property importSourceSpecification Specifies the properties of data being imported from the S3 bucket source to the table.
 *   If you specify the ``ImportSourceSpecification`` property, and also specify either the ``StreamSpecification``, the ``TableClass`` property, or the ``DeletionProtectionEnabled`` property, the IAM entity creating/updating stack must have ``UpdateTable`` permission.
 * @property keySchema Specifies the attributes that make up the primary key for the table. The attributes in the ``KeySchema`` property must also be defined in the ``AttributeDefinitions`` property.
 * @property kinesisStreamSpecification The Kinesis Data Streams configuration for the specified table.
 * @property localSecondaryIndexes Local secondary indexes to be created on the table. You can create up to 5 local secondary indexes. Each index is scoped to a given hash key value. The size of each hash key can be up to 10 gigabytes.
 * @property onDemandThroughput Sets the maximum number of read and write units for the specified on-demand table. If you use this property, you must specify ``MaxReadRequestUnits``, ``MaxWriteRequestUnits``, or both.
 * @property pointInTimeRecoverySpecification The settings used to enable point in time recovery.
 * @property provisionedThroughput Throughput for the specified table, which consists of values for ``ReadCapacityUnits`` and ``WriteCapacityUnits``. For more information about the contents of a provisioned throughput structure, see [Amazon DynamoDB Table ProvisionedThroughput](https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_ProvisionedThroughput.html).
 *  If you set ``BillingMode`` as ``PROVISIONED``, you must specify this property. If you set ``BillingMode`` as ``PAY_PER_REQUEST``, you cannot specify this property.
 * @property resourcePolicy A resource-based policy document that contains permissions to add to the specified table. In a CFNshort template, you can provide the policy in JSON or YAML format because CFNshort converts YAML to JSON before submitting it to DDB. For more information about resource-based policies, see [Using resource-based policies for](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/access-control-resource-based.html) and [Resource-based policy examples](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/rbac-examples.html).
 *  When you attach a resource-based policy while creating a table, the policy creation is *strongly consistent*. For information about the considerations that you should keep in mind while attaching a resource-based policy, see [Resource-based policy considerations](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/rbac-considerations.html).
 * @property sseSpecification Specifies the settings to enable server-side encryption.
 * @property streamSpecification The settings for the DDB table stream, which capture changes to items stored in the table.
 * @property tableClass The table class of the new table. Valid values are ``STANDARD`` and ``STANDARD_INFREQUENT_ACCESS``.
 * @property tableName A name for the table. If you don't specify a name, CFNlong generates a unique physical ID and uses that ID for the table name. For more information, see [Name Type](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-name.html).
 *   If you specify a name, you cannot perform updates that require replacement of this resource. You can perform updates that require no or some interruption. If you must replace the resource, specify a new name.
 * @property tags An array of key-value pairs to apply to this resource.
 *  For more information, see [Tag](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-resource-tags.html).
 * @property timeToLiveSpecification Specifies the Time to Live (TTL) settings for the table.
 *   For detailed information about the limits in DynamoDB, see [Limits in Amazon DynamoDB](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Limits.html) in the Amazon DynamoDB Developer Guide.
 */
public data class TableArgs(
    public val attributeDefinitions: Output>? = null,
    public val billingMode: Output? = null,
    public val contributorInsightsSpecification: Output? =
        null,
    public val deletionProtectionEnabled: Output? = null,
    public val globalSecondaryIndexes: Output>? = null,
    public val importSourceSpecification: Output? = null,
    public val keySchema: Output, Any>>? = null,
    public val kinesisStreamSpecification: Output? = null,
    public val localSecondaryIndexes: Output>? = null,
    public val onDemandThroughput: Output? = null,
    public val pointInTimeRecoverySpecification: Output? =
        null,
    public val provisionedThroughput: Output? = null,
    public val resourcePolicy: Output? = null,
    public val sseSpecification: Output? = null,
    public val streamSpecification: Output? = null,
    public val tableClass: Output? = null,
    public val tableName: Output? = null,
    public val tags: Output>? = null,
    public val timeToLiveSpecification: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.dynamodb.TableArgs =
        com.pulumi.awsnative.dynamodb.TableArgs.builder()
            .attributeDefinitions(
                attributeDefinitions?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 -> args0.toJava() })
                    })
                }),
            )
            .billingMode(billingMode?.applyValue({ args0 -> args0 }))
            .contributorInsightsSpecification(
                contributorInsightsSpecification?.applyValue({ args0 ->
                    args0.let({ args0 -> args0.toJava() })
                }),
            )
            .deletionProtectionEnabled(deletionProtectionEnabled?.applyValue({ args0 -> args0 }))
            .globalSecondaryIndexes(
                globalSecondaryIndexes?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 -> args0.toJava() })
                    })
                }),
            )
            .importSourceSpecification(
                importSourceSpecification?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .keySchema(
                keySchema?.applyValue({ args0 ->
                    args0.transform({ args0 ->
                        args0.map({ args0 ->
                            args0.let({ args0 -> args0.toJava() })
                        })
                    }, { args0 -> args0 })
                }),
            )
            .kinesisStreamSpecification(
                kinesisStreamSpecification?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .localSecondaryIndexes(
                localSecondaryIndexes?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 -> args0.toJava() })
                    })
                }),
            )
            .onDemandThroughput(
                onDemandThroughput?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .pointInTimeRecoverySpecification(
                pointInTimeRecoverySpecification?.applyValue({ args0 ->
                    args0.let({ args0 -> args0.toJava() })
                }),
            )
            .provisionedThroughput(
                provisionedThroughput?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .resourcePolicy(resourcePolicy?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .sseSpecification(sseSpecification?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .streamSpecification(
                streamSpecification?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .tableClass(tableClass?.applyValue({ args0 -> args0 }))
            .tableName(tableName?.applyValue({ args0 -> args0 }))
            .tags(tags?.applyValue({ args0 -> args0.map({ args0 -> args0.let({ args0 -> args0.toJava() }) }) }))
            .timeToLiveSpecification(
                timeToLiveSpecification?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            ).build()
}

/**
 * Builder for [TableArgs].
 */
@PulumiTagMarker
public class TableArgsBuilder internal constructor() {
    private var attributeDefinitions: Output>? = null

    private var billingMode: Output? = null

    private var contributorInsightsSpecification: Output? =
        null

    private var deletionProtectionEnabled: Output? = null

    private var globalSecondaryIndexes: Output>? = null

    private var importSourceSpecification: Output? = null

    private var keySchema: Output, Any>>? = null

    private var kinesisStreamSpecification: Output? = null

    private var localSecondaryIndexes: Output>? = null

    private var onDemandThroughput: Output? = null

    private var pointInTimeRecoverySpecification: Output? =
        null

    private var provisionedThroughput: Output? = null

    private var resourcePolicy: Output? = null

    private var sseSpecification: Output? = null

    private var streamSpecification: Output? = null

    private var tableClass: Output? = null

    private var tableName: Output? = null

    private var tags: Output>? = null

    private var timeToLiveSpecification: Output? = null

    /**
     * @param value A list of attributes that describe the key schema for the table and indexes.
     *  This property is required to create a DDB table.
     *  Update requires: [Some interruptions](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-some-interrupt). Replacement if you edit an existing AttributeDefinition.
     */
    @JvmName("bsepxuptpspxgjde")
    public suspend fun attributeDefinitions(`value`: Output>) {
        this.attributeDefinitions = value
    }

    @JvmName("ucsdoevpnyvkktbc")
    public suspend fun attributeDefinitions(vararg values: Output) {
        this.attributeDefinitions = Output.all(values.asList())
    }

    /**
     * @param values A list of attributes that describe the key schema for the table and indexes.
     *  This property is required to create a DDB table.
     *  Update requires: [Some interruptions](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-some-interrupt). Replacement if you edit an existing AttributeDefinition.
     */
    @JvmName("wfwjqwrayhoeujby")
    public suspend fun attributeDefinitions(values: List>) {
        this.attributeDefinitions = Output.all(values)
    }

    /**
     * @param value Specify how you are charged for read and write throughput and how you manage capacity.
     *  Valid values include:
     *   +   ``PROVISIONED`` - We recommend using ``PROVISIONED`` for predictable workloads. ``PROVISIONED`` sets the billing mode to [Provisioned Mode](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/HowItWorks.ReadWriteCapacityMode.html#HowItWorks.ProvisionedThroughput.Manual).
     *   +   ``PAY_PER_REQUEST`` - We recommend using ``PAY_PER_REQUEST`` for unpredictable workloads. ``PAY_PER_REQUEST`` sets the billing mode to [On-Demand Mode](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/HowItWorks.ReadWriteCapacityMode.html#HowItWorks.OnDemand).
     *  If not specified, the default is ``PROVISIONED``.
     */
    @JvmName("bcvbohkigqxirkmi")
    public suspend fun billingMode(`value`: Output) {
        this.billingMode = value
    }

    /**
     * @param value The settings used to enable or disable CloudWatch Contributor Insights for the specified table.
     */
    @JvmName("chqvnhrvuqwqvyrw")
    public suspend fun contributorInsightsSpecification(`value`: Output) {
        this.contributorInsightsSpecification = value
    }

    /**
     * @param value Determines if a table is protected from deletion. When enabled, the table cannot be deleted by any user or process. This setting is disabled by default. For more information, see [Using deletion protection](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/WorkingWithTables.Basics.html#WorkingWithTables.Basics.DeletionProtection) in the *Developer Guide*.
     */
    @JvmName("rvsclemwwwvbomem")
    public suspend fun deletionProtectionEnabled(`value`: Output) {
        this.deletionProtectionEnabled = value
    }

    /**
     * @param value Global secondary indexes to be created on the table. You can create up to 20 global secondary indexes.
     *   If you update a table to include a new global secondary index, CFNlong initiates the index creation and then proceeds with the stack update. CFNlong doesn't wait for the index to complete creation because the backfilling phase can take a long time, depending on the size of the table. You can't use the index or update the table until the index's status is ``ACTIVE``. You can track its status by using the DynamoDB [DescribeTable](https://docs.aws.amazon.com/cli/latest/reference/dynamodb/describe-table.html) command.
     *  If you add or delete an index during an update, we recommend that you don't update any other resources. If your stack fails to update and is rolled back while adding a new index, you must manually delete the index.
     *  Updates are not supported. The following are exceptions:
     *   +  If you update either the contributor insights specification or the provisioned throughput values of global secondary indexes, you can update the table without interruption.
     *   +  You can delete or add one global secondary index without interruption. If you do both in the same update (for example, by changing the index's logical ID), the update fails.
     */
    @JvmName("ighipnqdwcapvcra")
    public suspend fun globalSecondaryIndexes(`value`: Output>) {
        this.globalSecondaryIndexes = value
    }

    @JvmName("pmhfwxqfsvcwkfdj")
    public suspend fun globalSecondaryIndexes(vararg values: Output) {
        this.globalSecondaryIndexes = Output.all(values.asList())
    }

    /**
     * @param values Global secondary indexes to be created on the table. You can create up to 20 global secondary indexes.
     *   If you update a table to include a new global secondary index, CFNlong initiates the index creation and then proceeds with the stack update. CFNlong doesn't wait for the index to complete creation because the backfilling phase can take a long time, depending on the size of the table. You can't use the index or update the table until the index's status is ``ACTIVE``. You can track its status by using the DynamoDB [DescribeTable](https://docs.aws.amazon.com/cli/latest/reference/dynamodb/describe-table.html) command.
     *  If you add or delete an index during an update, we recommend that you don't update any other resources. If your stack fails to update and is rolled back while adding a new index, you must manually delete the index.
     *  Updates are not supported. The following are exceptions:
     *   +  If you update either the contributor insights specification or the provisioned throughput values of global secondary indexes, you can update the table without interruption.
     *   +  You can delete or add one global secondary index without interruption. If you do both in the same update (for example, by changing the index's logical ID), the update fails.
     */
    @JvmName("feaxoarsonimbthc")
    public suspend fun globalSecondaryIndexes(values: List>) {
        this.globalSecondaryIndexes = Output.all(values)
    }

    /**
     * @param value Specifies the properties of data being imported from the S3 bucket source to the table.
     *   If you specify the ``ImportSourceSpecification`` property, and also specify either the ``StreamSpecification``, the ``TableClass`` property, or the ``DeletionProtectionEnabled`` property, the IAM entity creating/updating stack must have ``UpdateTable`` permission.
     */
    @JvmName("xsdbcyomawokovrs")
    public suspend fun importSourceSpecification(`value`: Output) {
        this.importSourceSpecification = value
    }

    /**
     * @param value Specifies the attributes that make up the primary key for the table. The attributes in the ``KeySchema`` property must also be defined in the ``AttributeDefinitions`` property.
     */
    @JvmName("qpjyeneatwcrwfrf")
    public suspend fun keySchema(`value`: Output, Any>>) {
        this.keySchema = value
    }

    /**
     * @param value The Kinesis Data Streams configuration for the specified table.
     */
    @JvmName("qsshxygxaepjyyto")
    public suspend fun kinesisStreamSpecification(`value`: Output) {
        this.kinesisStreamSpecification = value
    }

    /**
     * @param value Local secondary indexes to be created on the table. You can create up to 5 local secondary indexes. Each index is scoped to a given hash key value. The size of each hash key can be up to 10 gigabytes.
     */
    @JvmName("xhkuqxrilrtxpwgy")
    public suspend fun localSecondaryIndexes(`value`: Output>) {
        this.localSecondaryIndexes = value
    }

    @JvmName("bmtyrqjbwmdbwrgj")
    public suspend fun localSecondaryIndexes(vararg values: Output) {
        this.localSecondaryIndexes = Output.all(values.asList())
    }

    /**
     * @param values Local secondary indexes to be created on the table. You can create up to 5 local secondary indexes. Each index is scoped to a given hash key value. The size of each hash key can be up to 10 gigabytes.
     */
    @JvmName("nhtudwuakkedsxjy")
    public suspend fun localSecondaryIndexes(values: List>) {
        this.localSecondaryIndexes = Output.all(values)
    }

    /**
     * @param value Sets the maximum number of read and write units for the specified on-demand table. If you use this property, you must specify ``MaxReadRequestUnits``, ``MaxWriteRequestUnits``, or both.
     */
    @JvmName("cfjysxvnbikjflgf")
    public suspend fun onDemandThroughput(`value`: Output) {
        this.onDemandThroughput = value
    }

    /**
     * @param value The settings used to enable point in time recovery.
     */
    @JvmName("phphnhsyqeonggex")
    public suspend fun pointInTimeRecoverySpecification(`value`: Output) {
        this.pointInTimeRecoverySpecification = value
    }

    /**
     * @param value Throughput for the specified table, which consists of values for ``ReadCapacityUnits`` and ``WriteCapacityUnits``. For more information about the contents of a provisioned throughput structure, see [Amazon DynamoDB Table ProvisionedThroughput](https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_ProvisionedThroughput.html).
     *  If you set ``BillingMode`` as ``PROVISIONED``, you must specify this property. If you set ``BillingMode`` as ``PAY_PER_REQUEST``, you cannot specify this property.
     */
    @JvmName("xfqqursyilqtsqhg")
    public suspend fun provisionedThroughput(`value`: Output) {
        this.provisionedThroughput = value
    }

    /**
     * @param value A resource-based policy document that contains permissions to add to the specified table. In a CFNshort template, you can provide the policy in JSON or YAML format because CFNshort converts YAML to JSON before submitting it to DDB. For more information about resource-based policies, see [Using resource-based policies for](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/access-control-resource-based.html) and [Resource-based policy examples](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/rbac-examples.html).
     *  When you attach a resource-based policy while creating a table, the policy creation is *strongly consistent*. For information about the considerations that you should keep in mind while attaching a resource-based policy, see [Resource-based policy considerations](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/rbac-considerations.html).
     */
    @JvmName("omaihiegrikowuod")
    public suspend fun resourcePolicy(`value`: Output) {
        this.resourcePolicy = value
    }

    /**
     * @param value Specifies the settings to enable server-side encryption.
     */
    @JvmName("awjgtyokhghluail")
    public suspend fun sseSpecification(`value`: Output) {
        this.sseSpecification = value
    }

    /**
     * @param value The settings for the DDB table stream, which capture changes to items stored in the table.
     */
    @JvmName("wjrdtcdtarqirbpo")
    public suspend fun streamSpecification(`value`: Output) {
        this.streamSpecification = value
    }

    /**
     * @param value The table class of the new table. Valid values are ``STANDARD`` and ``STANDARD_INFREQUENT_ACCESS``.
     */
    @JvmName("alehkkvyihjakcjo")
    public suspend fun tableClass(`value`: Output) {
        this.tableClass = value
    }

    /**
     * @param value A name for the table. If you don't specify a name, CFNlong generates a unique physical ID and uses that ID for the table name. For more information, see [Name Type](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-name.html).
     *   If you specify a name, you cannot perform updates that require replacement of this resource. You can perform updates that require no or some interruption. If you must replace the resource, specify a new name.
     */
    @JvmName("fukhipxfliifaxew")
    public suspend fun tableName(`value`: Output) {
        this.tableName = value
    }

    /**
     * @param value An array of key-value pairs to apply to this resource.
     *  For more information, see [Tag](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-resource-tags.html).
     */
    @JvmName("kohutywlorircvdh")
    public suspend fun tags(`value`: Output>) {
        this.tags = value
    }

    @JvmName("fbsoeymansxguqfy")
    public suspend fun tags(vararg values: Output) {
        this.tags = Output.all(values.asList())
    }

    /**
     * @param values An array of key-value pairs to apply to this resource.
     *  For more information, see [Tag](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-resource-tags.html).
     */
    @JvmName("uvkwgjbbwnvchhbj")
    public suspend fun tags(values: List>) {
        this.tags = Output.all(values)
    }

    /**
     * @param value Specifies the Time to Live (TTL) settings for the table.
     *   For detailed information about the limits in DynamoDB, see [Limits in Amazon DynamoDB](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Limits.html) in the Amazon DynamoDB Developer Guide.
     */
    @JvmName("hoxxbrkrroiyewny")
    public suspend fun timeToLiveSpecification(`value`: Output) {
        this.timeToLiveSpecification = value
    }

    /**
     * @param value A list of attributes that describe the key schema for the table and indexes.
     *  This property is required to create a DDB table.
     *  Update requires: [Some interruptions](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-some-interrupt). Replacement if you edit an existing AttributeDefinition.
     */
    @JvmName("mxievyowindxdkce")
    public suspend fun attributeDefinitions(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.attributeDefinitions = mapped
    }

    /**
     * @param argument A list of attributes that describe the key schema for the table and indexes.
     *  This property is required to create a DDB table.
     *  Update requires: [Some interruptions](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-some-interrupt). Replacement if you edit an existing AttributeDefinition.
     */
    @JvmName("onigweilvhdvytiu")
    public suspend fun attributeDefinitions(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            TableAttributeDefinitionArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.attributeDefinitions = mapped
    }

    /**
     * @param argument A list of attributes that describe the key schema for the table and indexes.
     *  This property is required to create a DDB table.
     *  Update requires: [Some interruptions](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-some-interrupt). Replacement if you edit an existing AttributeDefinition.
     */
    @JvmName("feprmjieuassdhsy")
    public suspend fun attributeDefinitions(vararg argument: suspend TableAttributeDefinitionArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            TableAttributeDefinitionArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.attributeDefinitions = mapped
    }

    /**
     * @param argument A list of attributes that describe the key schema for the table and indexes.
     *  This property is required to create a DDB table.
     *  Update requires: [Some interruptions](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-some-interrupt). Replacement if you edit an existing AttributeDefinition.
     */
    @JvmName("fwpfrialjpossxvw")
    public suspend fun attributeDefinitions(argument: suspend TableAttributeDefinitionArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            TableAttributeDefinitionArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.attributeDefinitions = mapped
    }

    /**
     * @param values A list of attributes that describe the key schema for the table and indexes.
     *  This property is required to create a DDB table.
     *  Update requires: [Some interruptions](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-some-interrupt). Replacement if you edit an existing AttributeDefinition.
     */
    @JvmName("trlqywwtshenssuh")
    public suspend fun attributeDefinitions(vararg values: TableAttributeDefinitionArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.attributeDefinitions = mapped
    }

    /**
     * @param value Specify how you are charged for read and write throughput and how you manage capacity.
     *  Valid values include:
     *   +   ``PROVISIONED`` - We recommend using ``PROVISIONED`` for predictable workloads. ``PROVISIONED`` sets the billing mode to [Provisioned Mode](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/HowItWorks.ReadWriteCapacityMode.html#HowItWorks.ProvisionedThroughput.Manual).
     *   +   ``PAY_PER_REQUEST`` - We recommend using ``PAY_PER_REQUEST`` for unpredictable workloads. ``PAY_PER_REQUEST`` sets the billing mode to [On-Demand Mode](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/HowItWorks.ReadWriteCapacityMode.html#HowItWorks.OnDemand).
     *  If not specified, the default is ``PROVISIONED``.
     */
    @JvmName("jsnjufxxvdomnsje")
    public suspend fun billingMode(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.billingMode = mapped
    }

    /**
     * @param value The settings used to enable or disable CloudWatch Contributor Insights for the specified table.
     */
    @JvmName("hoidrdjpkotbxyak")
    public suspend fun contributorInsightsSpecification(`value`: TableContributorInsightsSpecificationArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.contributorInsightsSpecification = mapped
    }

    /**
     * @param argument The settings used to enable or disable CloudWatch Contributor Insights for the specified table.
     */
    @JvmName("iirgxitifyklrnws")
    public suspend fun contributorInsightsSpecification(argument: suspend TableContributorInsightsSpecificationArgsBuilder.() -> Unit) {
        val toBeMapped = TableContributorInsightsSpecificationArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.contributorInsightsSpecification = mapped
    }

    /**
     * @param value Determines if a table is protected from deletion. When enabled, the table cannot be deleted by any user or process. This setting is disabled by default. For more information, see [Using deletion protection](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/WorkingWithTables.Basics.html#WorkingWithTables.Basics.DeletionProtection) in the *Developer Guide*.
     */
    @JvmName("xlpyavxvnavgqbfh")
    public suspend fun deletionProtectionEnabled(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.deletionProtectionEnabled = mapped
    }

    /**
     * @param value Global secondary indexes to be created on the table. You can create up to 20 global secondary indexes.
     *   If you update a table to include a new global secondary index, CFNlong initiates the index creation and then proceeds with the stack update. CFNlong doesn't wait for the index to complete creation because the backfilling phase can take a long time, depending on the size of the table. You can't use the index or update the table until the index's status is ``ACTIVE``. You can track its status by using the DynamoDB [DescribeTable](https://docs.aws.amazon.com/cli/latest/reference/dynamodb/describe-table.html) command.
     *  If you add or delete an index during an update, we recommend that you don't update any other resources. If your stack fails to update and is rolled back while adding a new index, you must manually delete the index.
     *  Updates are not supported. The following are exceptions:
     *   +  If you update either the contributor insights specification or the provisioned throughput values of global secondary indexes, you can update the table without interruption.
     *   +  You can delete or add one global secondary index without interruption. If you do both in the same update (for example, by changing the index's logical ID), the update fails.
     */
    @JvmName("rrvlehnofslykfuq")
    public suspend fun globalSecondaryIndexes(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.globalSecondaryIndexes = mapped
    }

    /**
     * @param argument Global secondary indexes to be created on the table. You can create up to 20 global secondary indexes.
     *   If you update a table to include a new global secondary index, CFNlong initiates the index creation and then proceeds with the stack update. CFNlong doesn't wait for the index to complete creation because the backfilling phase can take a long time, depending on the size of the table. You can't use the index or update the table until the index's status is ``ACTIVE``. You can track its status by using the DynamoDB [DescribeTable](https://docs.aws.amazon.com/cli/latest/reference/dynamodb/describe-table.html) command.
     *  If you add or delete an index during an update, we recommend that you don't update any other resources. If your stack fails to update and is rolled back while adding a new index, you must manually delete the index.
     *  Updates are not supported. The following are exceptions:
     *   +  If you update either the contributor insights specification or the provisioned throughput values of global secondary indexes, you can update the table without interruption.
     *   +  You can delete or add one global secondary index without interruption. If you do both in the same update (for example, by changing the index's logical ID), the update fails.
     */
    @JvmName("ohkttwdkbcbfnucn")
    public suspend fun globalSecondaryIndexes(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            TableGlobalSecondaryIndexArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.globalSecondaryIndexes = mapped
    }

    /**
     * @param argument Global secondary indexes to be created on the table. You can create up to 20 global secondary indexes.
     *   If you update a table to include a new global secondary index, CFNlong initiates the index creation and then proceeds with the stack update. CFNlong doesn't wait for the index to complete creation because the backfilling phase can take a long time, depending on the size of the table. You can't use the index or update the table until the index's status is ``ACTIVE``. You can track its status by using the DynamoDB [DescribeTable](https://docs.aws.amazon.com/cli/latest/reference/dynamodb/describe-table.html) command.
     *  If you add or delete an index during an update, we recommend that you don't update any other resources. If your stack fails to update and is rolled back while adding a new index, you must manually delete the index.
     *  Updates are not supported. The following are exceptions:
     *   +  If you update either the contributor insights specification or the provisioned throughput values of global secondary indexes, you can update the table without interruption.
     *   +  You can delete or add one global secondary index without interruption. If you do both in the same update (for example, by changing the index's logical ID), the update fails.
     */
    @JvmName("bwmribbmccenibnp")
    public suspend fun globalSecondaryIndexes(vararg argument: suspend TableGlobalSecondaryIndexArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            TableGlobalSecondaryIndexArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.globalSecondaryIndexes = mapped
    }

    /**
     * @param argument Global secondary indexes to be created on the table. You can create up to 20 global secondary indexes.
     *   If you update a table to include a new global secondary index, CFNlong initiates the index creation and then proceeds with the stack update. CFNlong doesn't wait for the index to complete creation because the backfilling phase can take a long time, depending on the size of the table. You can't use the index or update the table until the index's status is ``ACTIVE``. You can track its status by using the DynamoDB [DescribeTable](https://docs.aws.amazon.com/cli/latest/reference/dynamodb/describe-table.html) command.
     *  If you add or delete an index during an update, we recommend that you don't update any other resources. If your stack fails to update and is rolled back while adding a new index, you must manually delete the index.
     *  Updates are not supported. The following are exceptions:
     *   +  If you update either the contributor insights specification or the provisioned throughput values of global secondary indexes, you can update the table without interruption.
     *   +  You can delete or add one global secondary index without interruption. If you do both in the same update (for example, by changing the index's logical ID), the update fails.
     */
    @JvmName("koltixrouuprswdc")
    public suspend fun globalSecondaryIndexes(argument: suspend TableGlobalSecondaryIndexArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            TableGlobalSecondaryIndexArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.globalSecondaryIndexes = mapped
    }

    /**
     * @param values Global secondary indexes to be created on the table. You can create up to 20 global secondary indexes.
     *   If you update a table to include a new global secondary index, CFNlong initiates the index creation and then proceeds with the stack update. CFNlong doesn't wait for the index to complete creation because the backfilling phase can take a long time, depending on the size of the table. You can't use the index or update the table until the index's status is ``ACTIVE``. You can track its status by using the DynamoDB [DescribeTable](https://docs.aws.amazon.com/cli/latest/reference/dynamodb/describe-table.html) command.
     *  If you add or delete an index during an update, we recommend that you don't update any other resources. If your stack fails to update and is rolled back while adding a new index, you must manually delete the index.
     *  Updates are not supported. The following are exceptions:
     *   +  If you update either the contributor insights specification or the provisioned throughput values of global secondary indexes, you can update the table without interruption.
     *   +  You can delete or add one global secondary index without interruption. If you do both in the same update (for example, by changing the index's logical ID), the update fails.
     */
    @JvmName("mslcyjsweijghtvm")
    public suspend fun globalSecondaryIndexes(vararg values: TableGlobalSecondaryIndexArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.globalSecondaryIndexes = mapped
    }

    /**
     * @param value Specifies the properties of data being imported from the S3 bucket source to the table.
     *   If you specify the ``ImportSourceSpecification`` property, and also specify either the ``StreamSpecification``, the ``TableClass`` property, or the ``DeletionProtectionEnabled`` property, the IAM entity creating/updating stack must have ``UpdateTable`` permission.
     */
    @JvmName("vfmnrvquxafkkbfm")
    public suspend fun importSourceSpecification(`value`: TableImportSourceSpecificationArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.importSourceSpecification = mapped
    }

    /**
     * @param argument Specifies the properties of data being imported from the S3 bucket source to the table.
     *   If you specify the ``ImportSourceSpecification`` property, and also specify either the ``StreamSpecification``, the ``TableClass`` property, or the ``DeletionProtectionEnabled`` property, the IAM entity creating/updating stack must have ``UpdateTable`` permission.
     */
    @JvmName("posuwburxdpyndax")
    public suspend fun importSourceSpecification(argument: suspend TableImportSourceSpecificationArgsBuilder.() -> Unit) {
        val toBeMapped = TableImportSourceSpecificationArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.importSourceSpecification = mapped
    }

    /**
     * @param value Specifies the attributes that make up the primary key for the table. The attributes in the ``KeySchema`` property must also be defined in the ``AttributeDefinitions`` property.
     */
    @JvmName("psfqpyqoisxhatci")
    public suspend fun keySchema(`value`: Either, Any>?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.keySchema = mapped
    }

    /**
     * @param value Specifies the attributes that make up the primary key for the table. The attributes in the ``KeySchema`` property must also be defined in the ``AttributeDefinitions`` property.
     */
    @JvmName("tkddmmfnpeqplghx")
    public fun keySchema(`value`: List) {
        val toBeMapped = Either.ofLeft, Any>(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.keySchema = mapped
    }

    /**
     * @param value Specifies the attributes that make up the primary key for the table. The attributes in the ``KeySchema`` property must also be defined in the ``AttributeDefinitions`` property.
     */
    @JvmName("uopbwvvyptrlfhmi")
    public fun keySchema(`value`: Any) {
        val toBeMapped = Either.ofRight, Any>(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.keySchema = mapped
    }

    /**
     * @param value The Kinesis Data Streams configuration for the specified table.
     */
    @JvmName("hjpktoydsmudsgql")
    public suspend fun kinesisStreamSpecification(`value`: TableKinesisStreamSpecificationArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.kinesisStreamSpecification = mapped
    }

    /**
     * @param argument The Kinesis Data Streams configuration for the specified table.
     */
    @JvmName("rhdrfjpujvqjxcqt")
    public suspend fun kinesisStreamSpecification(argument: suspend TableKinesisStreamSpecificationArgsBuilder.() -> Unit) {
        val toBeMapped = TableKinesisStreamSpecificationArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.kinesisStreamSpecification = mapped
    }

    /**
     * @param value Local secondary indexes to be created on the table. You can create up to 5 local secondary indexes. Each index is scoped to a given hash key value. The size of each hash key can be up to 10 gigabytes.
     */
    @JvmName("lgbjgbvosrtvlvcv")
    public suspend fun localSecondaryIndexes(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.localSecondaryIndexes = mapped
    }

    /**
     * @param argument Local secondary indexes to be created on the table. You can create up to 5 local secondary indexes. Each index is scoped to a given hash key value. The size of each hash key can be up to 10 gigabytes.
     */
    @JvmName("sjidyswwsxdsjkke")
    public suspend fun localSecondaryIndexes(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            TableLocalSecondaryIndexArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.localSecondaryIndexes = mapped
    }

    /**
     * @param argument Local secondary indexes to be created on the table. You can create up to 5 local secondary indexes. Each index is scoped to a given hash key value. The size of each hash key can be up to 10 gigabytes.
     */
    @JvmName("kwlfonxabthltbuo")
    public suspend fun localSecondaryIndexes(vararg argument: suspend TableLocalSecondaryIndexArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            TableLocalSecondaryIndexArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.localSecondaryIndexes = mapped
    }

    /**
     * @param argument Local secondary indexes to be created on the table. You can create up to 5 local secondary indexes. Each index is scoped to a given hash key value. The size of each hash key can be up to 10 gigabytes.
     */
    @JvmName("xfysqgcgwgonqtfj")
    public suspend fun localSecondaryIndexes(argument: suspend TableLocalSecondaryIndexArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            TableLocalSecondaryIndexArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.localSecondaryIndexes = mapped
    }

    /**
     * @param values Local secondary indexes to be created on the table. You can create up to 5 local secondary indexes. Each index is scoped to a given hash key value. The size of each hash key can be up to 10 gigabytes.
     */
    @JvmName("qktikmbxfibdmjej")
    public suspend fun localSecondaryIndexes(vararg values: TableLocalSecondaryIndexArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.localSecondaryIndexes = mapped
    }

    /**
     * @param value Sets the maximum number of read and write units for the specified on-demand table. If you use this property, you must specify ``MaxReadRequestUnits``, ``MaxWriteRequestUnits``, or both.
     */
    @JvmName("tmnvcneyiifpbgrx")
    public suspend fun onDemandThroughput(`value`: TableOnDemandThroughputArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.onDemandThroughput = mapped
    }

    /**
     * @param argument Sets the maximum number of read and write units for the specified on-demand table. If you use this property, you must specify ``MaxReadRequestUnits``, ``MaxWriteRequestUnits``, or both.
     */
    @JvmName("mqvlkaohyaucodjf")
    public suspend fun onDemandThroughput(argument: suspend TableOnDemandThroughputArgsBuilder.() -> Unit) {
        val toBeMapped = TableOnDemandThroughputArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.onDemandThroughput = mapped
    }

    /**
     * @param value The settings used to enable point in time recovery.
     */
    @JvmName("dvlpcsnpihnkoaeq")
    public suspend fun pointInTimeRecoverySpecification(`value`: TablePointInTimeRecoverySpecificationArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.pointInTimeRecoverySpecification = mapped
    }

    /**
     * @param argument The settings used to enable point in time recovery.
     */
    @JvmName("cnjqevlljcxqilwr")
    public suspend fun pointInTimeRecoverySpecification(argument: suspend TablePointInTimeRecoverySpecificationArgsBuilder.() -> Unit) {
        val toBeMapped = TablePointInTimeRecoverySpecificationArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.pointInTimeRecoverySpecification = mapped
    }

    /**
     * @param value Throughput for the specified table, which consists of values for ``ReadCapacityUnits`` and ``WriteCapacityUnits``. For more information about the contents of a provisioned throughput structure, see [Amazon DynamoDB Table ProvisionedThroughput](https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_ProvisionedThroughput.html).
     *  If you set ``BillingMode`` as ``PROVISIONED``, you must specify this property. If you set ``BillingMode`` as ``PAY_PER_REQUEST``, you cannot specify this property.
     */
    @JvmName("niwegghsgywleikg")
    public suspend fun provisionedThroughput(`value`: TableProvisionedThroughputArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.provisionedThroughput = mapped
    }

    /**
     * @param argument Throughput for the specified table, which consists of values for ``ReadCapacityUnits`` and ``WriteCapacityUnits``. For more information about the contents of a provisioned throughput structure, see [Amazon DynamoDB Table ProvisionedThroughput](https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_ProvisionedThroughput.html).
     *  If you set ``BillingMode`` as ``PROVISIONED``, you must specify this property. If you set ``BillingMode`` as ``PAY_PER_REQUEST``, you cannot specify this property.
     */
    @JvmName("fnyphckcukkqdvwc")
    public suspend fun provisionedThroughput(argument: suspend TableProvisionedThroughputArgsBuilder.() -> Unit) {
        val toBeMapped = TableProvisionedThroughputArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.provisionedThroughput = mapped
    }

    /**
     * @param value A resource-based policy document that contains permissions to add to the specified table. In a CFNshort template, you can provide the policy in JSON or YAML format because CFNshort converts YAML to JSON before submitting it to DDB. For more information about resource-based policies, see [Using resource-based policies for](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/access-control-resource-based.html) and [Resource-based policy examples](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/rbac-examples.html).
     *  When you attach a resource-based policy while creating a table, the policy creation is *strongly consistent*. For information about the considerations that you should keep in mind while attaching a resource-based policy, see [Resource-based policy considerations](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/rbac-considerations.html).
     */
    @JvmName("lnytgkgaalpelfvt")
    public suspend fun resourcePolicy(`value`: TableResourcePolicyArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.resourcePolicy = mapped
    }

    /**
     * @param argument A resource-based policy document that contains permissions to add to the specified table. In a CFNshort template, you can provide the policy in JSON or YAML format because CFNshort converts YAML to JSON before submitting it to DDB. For more information about resource-based policies, see [Using resource-based policies for](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/access-control-resource-based.html) and [Resource-based policy examples](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/rbac-examples.html).
     *  When you attach a resource-based policy while creating a table, the policy creation is *strongly consistent*. For information about the considerations that you should keep in mind while attaching a resource-based policy, see [Resource-based policy considerations](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/rbac-considerations.html).
     */
    @JvmName("mqoqvvxlanrovgsw")
    public suspend fun resourcePolicy(argument: suspend TableResourcePolicyArgsBuilder.() -> Unit) {
        val toBeMapped = TableResourcePolicyArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.resourcePolicy = mapped
    }

    /**
     * @param value Specifies the settings to enable server-side encryption.
     */
    @JvmName("tebdhhbaclphghau")
    public suspend fun sseSpecification(`value`: TableSseSpecificationArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.sseSpecification = mapped
    }

    /**
     * @param argument Specifies the settings to enable server-side encryption.
     */
    @JvmName("xkjomwbichaqjesm")
    public suspend fun sseSpecification(argument: suspend TableSseSpecificationArgsBuilder.() -> Unit) {
        val toBeMapped = TableSseSpecificationArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.sseSpecification = mapped
    }

    /**
     * @param value The settings for the DDB table stream, which capture changes to items stored in the table.
     */
    @JvmName("qlutbxrontxvoror")
    public suspend fun streamSpecification(`value`: TableStreamSpecificationArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.streamSpecification = mapped
    }

    /**
     * @param argument The settings for the DDB table stream, which capture changes to items stored in the table.
     */
    @JvmName("qslyodfeabrcvuua")
    public suspend fun streamSpecification(argument: suspend TableStreamSpecificationArgsBuilder.() -> Unit) {
        val toBeMapped = TableStreamSpecificationArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.streamSpecification = mapped
    }

    /**
     * @param value The table class of the new table. Valid values are ``STANDARD`` and ``STANDARD_INFREQUENT_ACCESS``.
     */
    @JvmName("ddavxnftrdawiwqt")
    public suspend fun tableClass(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tableClass = mapped
    }

    /**
     * @param value A name for the table. If you don't specify a name, CFNlong generates a unique physical ID and uses that ID for the table name. For more information, see [Name Type](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-name.html).
     *   If you specify a name, you cannot perform updates that require replacement of this resource. You can perform updates that require no or some interruption. If you must replace the resource, specify a new name.
     */
    @JvmName("feyafybhhjmywuds")
    public suspend fun tableName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tableName = mapped
    }

    /**
     * @param value An array of key-value pairs to apply to this resource.
     *  For more information, see [Tag](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-resource-tags.html).
     */
    @JvmName("qdxkqvwmakyrxcfo")
    public suspend fun tags(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param argument An array of key-value pairs to apply to this resource.
     *  For more information, see [Tag](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-resource-tags.html).
     */
    @JvmName("rparaprunetmvtle")
    public suspend fun tags(argument: List Unit>) {
        val toBeMapped = argument.toList().map { TagArgsBuilder().applySuspend { it() }.build() }
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param argument An array of key-value pairs to apply to this resource.
     *  For more information, see [Tag](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-resource-tags.html).
     */
    @JvmName("wudnpomngxqetaps")
    public suspend fun tags(vararg argument: suspend TagArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map { TagArgsBuilder().applySuspend { it() }.build() }
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param argument An array of key-value pairs to apply to this resource.
     *  For more information, see [Tag](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-resource-tags.html).
     */
    @JvmName("vuaabubhbmqrtbyb")
    public suspend fun tags(argument: suspend TagArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(TagArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param values An array of key-value pairs to apply to this resource.
     *  For more information, see [Tag](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-resource-tags.html).
     */
    @JvmName("tntegdlesqghseqg")
    public suspend fun tags(vararg values: TagArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param value Specifies the Time to Live (TTL) settings for the table.
     *   For detailed information about the limits in DynamoDB, see [Limits in Amazon DynamoDB](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Limits.html) in the Amazon DynamoDB Developer Guide.
     */
    @JvmName("hfuykwydqogjjqbt")
    public suspend fun timeToLiveSpecification(`value`: TableTimeToLiveSpecificationArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.timeToLiveSpecification = mapped
    }

    /**
     * @param argument Specifies the Time to Live (TTL) settings for the table.
     *   For detailed information about the limits in DynamoDB, see [Limits in Amazon DynamoDB](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Limits.html) in the Amazon DynamoDB Developer Guide.
     */
    @JvmName("vjtatermvvaaftia")
    public suspend fun timeToLiveSpecification(argument: suspend TableTimeToLiveSpecificationArgsBuilder.() -> Unit) {
        val toBeMapped = TableTimeToLiveSpecificationArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.timeToLiveSpecification = mapped
    }

    internal fun build(): TableArgs = TableArgs(
        attributeDefinitions = attributeDefinitions,
        billingMode = billingMode,
        contributorInsightsSpecification = contributorInsightsSpecification,
        deletionProtectionEnabled = deletionProtectionEnabled,
        globalSecondaryIndexes = globalSecondaryIndexes,
        importSourceSpecification = importSourceSpecification,
        keySchema = keySchema,
        kinesisStreamSpecification = kinesisStreamSpecification,
        localSecondaryIndexes = localSecondaryIndexes,
        onDemandThroughput = onDemandThroughput,
        pointInTimeRecoverySpecification = pointInTimeRecoverySpecification,
        provisionedThroughput = provisionedThroughput,
        resourcePolicy = resourcePolicy,
        sseSpecification = sseSpecification,
        streamSpecification = streamSpecification,
        tableClass = tableClass,
        tableName = tableName,
        tags = tags,
        timeToLiveSpecification = timeToLiveSpecification,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy