Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
com.pulumi.awsnative.dynamodb.kotlin.GlobalTableArgs.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.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.dynamodb.kotlin
import com.pulumi.awsnative.dynamodb.GlobalTableArgs.builder
import com.pulumi.awsnative.dynamodb.kotlin.inputs.GlobalTableAttributeDefinitionArgs
import com.pulumi.awsnative.dynamodb.kotlin.inputs.GlobalTableAttributeDefinitionArgsBuilder
import com.pulumi.awsnative.dynamodb.kotlin.inputs.GlobalTableGlobalSecondaryIndexArgs
import com.pulumi.awsnative.dynamodb.kotlin.inputs.GlobalTableGlobalSecondaryIndexArgsBuilder
import com.pulumi.awsnative.dynamodb.kotlin.inputs.GlobalTableKeySchemaArgs
import com.pulumi.awsnative.dynamodb.kotlin.inputs.GlobalTableKeySchemaArgsBuilder
import com.pulumi.awsnative.dynamodb.kotlin.inputs.GlobalTableLocalSecondaryIndexArgs
import com.pulumi.awsnative.dynamodb.kotlin.inputs.GlobalTableLocalSecondaryIndexArgsBuilder
import com.pulumi.awsnative.dynamodb.kotlin.inputs.GlobalTableReplicaSpecificationArgs
import com.pulumi.awsnative.dynamodb.kotlin.inputs.GlobalTableReplicaSpecificationArgsBuilder
import com.pulumi.awsnative.dynamodb.kotlin.inputs.GlobalTableSseSpecificationArgs
import com.pulumi.awsnative.dynamodb.kotlin.inputs.GlobalTableSseSpecificationArgsBuilder
import com.pulumi.awsnative.dynamodb.kotlin.inputs.GlobalTableStreamSpecificationArgs
import com.pulumi.awsnative.dynamodb.kotlin.inputs.GlobalTableStreamSpecificationArgsBuilder
import com.pulumi.awsnative.dynamodb.kotlin.inputs.GlobalTableTimeToLiveSpecificationArgs
import com.pulumi.awsnative.dynamodb.kotlin.inputs.GlobalTableTimeToLiveSpecificationArgsBuilder
import com.pulumi.awsnative.dynamodb.kotlin.inputs.GlobalTableWriteOnDemandThroughputSettingsArgs
import com.pulumi.awsnative.dynamodb.kotlin.inputs.GlobalTableWriteOnDemandThroughputSettingsArgsBuilder
import com.pulumi.awsnative.dynamodb.kotlin.inputs.GlobalTableWriteProvisionedThroughputSettingsArgs
import com.pulumi.awsnative.dynamodb.kotlin.inputs.GlobalTableWriteProvisionedThroughputSettingsArgsBuilder
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.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName
/**
* Version: None. Resource Type definition for AWS::DynamoDB::GlobalTable
* @property attributeDefinitions A list of attributes that describe the key schema for the global table and indexes.
* @property billingMode Specifies how you are charged for read and write throughput and how you manage capacity. Valid values are:
* - `PAY_PER_REQUEST`
* - `PROVISIONED`
* All replicas in your global table will have the same billing mode. If you use `PROVISIONED` billing mode, you must provide an auto scaling configuration via the `WriteProvisionedThroughputSettings` property. The default value of this property is `PROVISIONED` .
* @property globalSecondaryIndexes Global secondary indexes to be created on the global table. You can create up to 20 global secondary indexes. Each replica in your global table will have the same global secondary index settings. You can only create or delete one global secondary index in a single stack operation.
* Since the backfilling of an index could take a long time, CloudFormation does not wait for the index to become active. If a stack operation rolls back, CloudFormation might not delete an index that has been added. In that case, you will need to delete the index manually.
* @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 localSecondaryIndexes Local secondary indexes to be created on the table. You can create up to five 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. Each replica in your global table will have the same local secondary index settings.
* @property replicas Specifies the list of replicas for your global table. The list must contain at least one element, the region where the stack defining the global table is deployed. For example, if you define your table in a stack deployed to us-east-1, you must have an entry in `Replicas` with the region us-east-1. You cannot remove the replica in the stack region.
* > Adding a replica might take a few minutes for an empty table, or up to several hours for large tables. If you want to add or remove a replica, we recommend submitting an `UpdateStack` operation containing only that change.
* >
* > If you add or delete a replica 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 replica, you might need to manually delete the replica.
* You can create a new global table with as many replicas as needed. You can add or remove replicas after table creation, but you can only add or remove a single replica in each update.
* @property sseSpecification Specifies the settings to enable server-side encryption. These settings will be applied to all replicas. If you plan to use customer-managed KMS keys, you must provide a key for each replica using the `ReplicaSpecification.ReplicaSSESpecification` property.
* @property streamSpecification Specifies the streams settings on your global table. You must provide a value for this property if your global table contains more than one replica. You can only change the streams settings if your global table has only one replica.
* @property tableName A name for the global table. If you don't specify a name, AWS CloudFormation generates a unique ID and uses that ID as 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 timeToLiveSpecification Specifies the time to live (TTL) settings for the table. This setting will be applied to all replicas.
* @property writeOnDemandThroughputSettings Sets the write request settings for a global table or a global secondary index. You must specify this setting if you set the `BillingMode` to `PAY_PER_REQUEST` .
* @property writeProvisionedThroughputSettings Specifies an auto scaling policy for write capacity. This policy will be applied to all replicas. This setting must be specified if `BillingMode` is set to `PROVISIONED` .
*/
public data class GlobalTableArgs(
public val attributeDefinitions: Output>? = null,
public val billingMode: Output? = null,
public val globalSecondaryIndexes: Output>? = null,
public val keySchema: Output>? = null,
public val localSecondaryIndexes: Output>? = null,
public val replicas: Output>? = null,
public val sseSpecification: Output? = null,
public val streamSpecification: Output? = null,
public val tableName: Output? = null,
public val timeToLiveSpecification: Output? = null,
public val writeOnDemandThroughputSettings: Output? = null,
public val writeProvisionedThroughputSettings: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.dynamodb.GlobalTableArgs =
com.pulumi.awsnative.dynamodb.GlobalTableArgs.builder()
.attributeDefinitions(
attributeDefinitions?.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 -> args0.toJava() })
})
}),
)
.billingMode(billingMode?.applyValue({ args0 -> args0 }))
.globalSecondaryIndexes(
globalSecondaryIndexes?.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 -> args0.toJava() })
})
}),
)
.keySchema(
keySchema?.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
})
}),
)
.localSecondaryIndexes(
localSecondaryIndexes?.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 -> args0.toJava() })
})
}),
)
.replicas(
replicas?.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
})
}),
)
.sseSpecification(sseSpecification?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.streamSpecification(
streamSpecification?.applyValue({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
}),
)
.tableName(tableName?.applyValue({ args0 -> args0 }))
.timeToLiveSpecification(
timeToLiveSpecification?.applyValue({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
}),
)
.writeOnDemandThroughputSettings(
writeOnDemandThroughputSettings?.applyValue({ args0 ->
args0.let({ args0 -> args0.toJava() })
}),
)
.writeProvisionedThroughputSettings(
writeProvisionedThroughputSettings?.applyValue({ args0 ->
args0.let({ args0 -> args0.toJava() })
}),
).build()
}
/**
* Builder for [GlobalTableArgs].
*/
@PulumiTagMarker
public class GlobalTableArgsBuilder internal constructor() {
private var attributeDefinitions: Output>? = null
private var billingMode: Output? = null
private var globalSecondaryIndexes: Output>? = null
private var keySchema: Output>? = null
private var localSecondaryIndexes: Output>? = null
private var replicas: Output>? = null
private var sseSpecification: Output? = null
private var streamSpecification: Output? = null
private var tableName: Output? = null
private var timeToLiveSpecification: Output? = null
private var writeOnDemandThroughputSettings:
Output? = null
private var writeProvisionedThroughputSettings:
Output? = null
/**
* @param value A list of attributes that describe the key schema for the global table and indexes.
*/
@JvmName("rvaqimgqgwwdgepu")
public suspend fun attributeDefinitions(`value`: Output>) {
this.attributeDefinitions = value
}
@JvmName("taqbhcwryovdcmks")
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 global table and indexes.
*/
@JvmName("kdyjwbckmhqmgnwv")
public suspend fun attributeDefinitions(values: List>) {
this.attributeDefinitions = Output.all(values)
}
/**
* @param value Specifies how you are charged for read and write throughput and how you manage capacity. Valid values are:
* - `PAY_PER_REQUEST`
* - `PROVISIONED`
* All replicas in your global table will have the same billing mode. If you use `PROVISIONED` billing mode, you must provide an auto scaling configuration via the `WriteProvisionedThroughputSettings` property. The default value of this property is `PROVISIONED` .
*/
@JvmName("bvksevijnayktrkd")
public suspend fun billingMode(`value`: Output) {
this.billingMode = value
}
/**
* @param value Global secondary indexes to be created on the global table. You can create up to 20 global secondary indexes. Each replica in your global table will have the same global secondary index settings. You can only create or delete one global secondary index in a single stack operation.
* Since the backfilling of an index could take a long time, CloudFormation does not wait for the index to become active. If a stack operation rolls back, CloudFormation might not delete an index that has been added. In that case, you will need to delete the index manually.
*/
@JvmName("huwdhkjmjdgasmhu")
public suspend fun globalSecondaryIndexes(`value`: Output>) {
this.globalSecondaryIndexes = value
}
@JvmName("brjvacbanxuerumr")
public suspend fun globalSecondaryIndexes(vararg values: Output) {
this.globalSecondaryIndexes = Output.all(values.asList())
}
/**
* @param values Global secondary indexes to be created on the global table. You can create up to 20 global secondary indexes. Each replica in your global table will have the same global secondary index settings. You can only create or delete one global secondary index in a single stack operation.
* Since the backfilling of an index could take a long time, CloudFormation does not wait for the index to become active. If a stack operation rolls back, CloudFormation might not delete an index that has been added. In that case, you will need to delete the index manually.
*/
@JvmName("nacfuhpuiwlmyyoc")
public suspend fun globalSecondaryIndexes(values: List>) {
this.globalSecondaryIndexes = Output.all(values)
}
/**
* @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("khqwnltbohgsetmo")
public suspend fun keySchema(`value`: Output>) {
this.keySchema = value
}
@JvmName("cefocrhrvbiwsvgg")
public suspend fun keySchema(vararg values: Output) {
this.keySchema = Output.all(values.asList())
}
/**
* @param values 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("xqykpuhptodjtonr")
public suspend fun keySchema(values: List>) {
this.keySchema = Output.all(values)
}
/**
* @param value Local secondary indexes to be created on the table. You can create up to five 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. Each replica in your global table will have the same local secondary index settings.
*/
@JvmName("ecgsohvfoemqdcpo")
public suspend fun localSecondaryIndexes(`value`: Output>) {
this.localSecondaryIndexes = value
}
@JvmName("efkmvvoicxqenxra")
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 five 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. Each replica in your global table will have the same local secondary index settings.
*/
@JvmName("ikctddmxeguyabss")
public suspend fun localSecondaryIndexes(values: List>) {
this.localSecondaryIndexes = Output.all(values)
}
/**
* @param value Specifies the list of replicas for your global table. The list must contain at least one element, the region where the stack defining the global table is deployed. For example, if you define your table in a stack deployed to us-east-1, you must have an entry in `Replicas` with the region us-east-1. You cannot remove the replica in the stack region.
* > Adding a replica might take a few minutes for an empty table, or up to several hours for large tables. If you want to add or remove a replica, we recommend submitting an `UpdateStack` operation containing only that change.
* >
* > If you add or delete a replica 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 replica, you might need to manually delete the replica.
* You can create a new global table with as many replicas as needed. You can add or remove replicas after table creation, but you can only add or remove a single replica in each update.
*/
@JvmName("yfstmsmqoiaokeep")
public suspend fun replicas(`value`: Output>) {
this.replicas = value
}
@JvmName("wqxyasfuhlyvdopt")
public suspend fun replicas(vararg values: Output) {
this.replicas = Output.all(values.asList())
}
/**
* @param values Specifies the list of replicas for your global table. The list must contain at least one element, the region where the stack defining the global table is deployed. For example, if you define your table in a stack deployed to us-east-1, you must have an entry in `Replicas` with the region us-east-1. You cannot remove the replica in the stack region.
* > Adding a replica might take a few minutes for an empty table, or up to several hours for large tables. If you want to add or remove a replica, we recommend submitting an `UpdateStack` operation containing only that change.
* >
* > If you add or delete a replica 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 replica, you might need to manually delete the replica.
* You can create a new global table with as many replicas as needed. You can add or remove replicas after table creation, but you can only add or remove a single replica in each update.
*/
@JvmName("upksfoxkhmqhnrkj")
public suspend fun replicas(values: List>) {
this.replicas = Output.all(values)
}
/**
* @param value Specifies the settings to enable server-side encryption. These settings will be applied to all replicas. If you plan to use customer-managed KMS keys, you must provide a key for each replica using the `ReplicaSpecification.ReplicaSSESpecification` property.
*/
@JvmName("arqhoommbyoisfak")
public suspend fun sseSpecification(`value`: Output) {
this.sseSpecification = value
}
/**
* @param value Specifies the streams settings on your global table. You must provide a value for this property if your global table contains more than one replica. You can only change the streams settings if your global table has only one replica.
*/
@JvmName("odhhwfvuuupdxgdp")
public suspend fun streamSpecification(`value`: Output) {
this.streamSpecification = value
}
/**
* @param value A name for the global table. If you don't specify a name, AWS CloudFormation generates a unique ID and uses that ID as 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("oinvcrovpidlowhw")
public suspend fun tableName(`value`: Output) {
this.tableName = value
}
/**
* @param value Specifies the time to live (TTL) settings for the table. This setting will be applied to all replicas.
*/
@JvmName("xldivmdjhfqidngd")
public suspend fun timeToLiveSpecification(`value`: Output) {
this.timeToLiveSpecification = value
}
/**
* @param value Sets the write request settings for a global table or a global secondary index. You must specify this setting if you set the `BillingMode` to `PAY_PER_REQUEST` .
*/
@JvmName("xfehbnrhxcdtbekn")
public suspend fun writeOnDemandThroughputSettings(`value`: Output) {
this.writeOnDemandThroughputSettings = value
}
/**
* @param value Specifies an auto scaling policy for write capacity. This policy will be applied to all replicas. This setting must be specified if `BillingMode` is set to `PROVISIONED` .
*/
@JvmName("rildgvjldcwatlma")
public suspend fun writeProvisionedThroughputSettings(`value`: Output) {
this.writeProvisionedThroughputSettings = value
}
/**
* @param value A list of attributes that describe the key schema for the global table and indexes.
*/
@JvmName("qmgfrasixrbsabmv")
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 global table and indexes.
*/
@JvmName("rattpvpleveryxhk")
public suspend fun attributeDefinitions(argument: List Unit>) {
val toBeMapped = argument.toList().map {
GlobalTableAttributeDefinitionArgsBuilder().applySuspend { it() }.build()
}
val mapped = of(toBeMapped)
this.attributeDefinitions = mapped
}
/**
* @param argument A list of attributes that describe the key schema for the global table and indexes.
*/
@JvmName("ehmbimmqxyrokfvs")
public suspend fun attributeDefinitions(vararg argument: suspend GlobalTableAttributeDefinitionArgsBuilder.() -> Unit) {
val toBeMapped = argument.toList().map {
GlobalTableAttributeDefinitionArgsBuilder().applySuspend { it() }.build()
}
val mapped = of(toBeMapped)
this.attributeDefinitions = mapped
}
/**
* @param argument A list of attributes that describe the key schema for the global table and indexes.
*/
@JvmName("dwhysrwfauktvdew")
public suspend fun attributeDefinitions(argument: suspend GlobalTableAttributeDefinitionArgsBuilder.() -> Unit) {
val toBeMapped = listOf(
GlobalTableAttributeDefinitionArgsBuilder().applySuspend {
argument()
}.build(),
)
val mapped = of(toBeMapped)
this.attributeDefinitions = mapped
}
/**
* @param values A list of attributes that describe the key schema for the global table and indexes.
*/
@JvmName("jlfkxdwrfwicslea")
public suspend fun attributeDefinitions(vararg values: GlobalTableAttributeDefinitionArgs) {
val toBeMapped = values.toList()
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.attributeDefinitions = mapped
}
/**
* @param value Specifies how you are charged for read and write throughput and how you manage capacity. Valid values are:
* - `PAY_PER_REQUEST`
* - `PROVISIONED`
* All replicas in your global table will have the same billing mode. If you use `PROVISIONED` billing mode, you must provide an auto scaling configuration via the `WriteProvisionedThroughputSettings` property. The default value of this property is `PROVISIONED` .
*/
@JvmName("riqqaovkhufujawe")
public suspend fun billingMode(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.billingMode = mapped
}
/**
* @param value Global secondary indexes to be created on the global table. You can create up to 20 global secondary indexes. Each replica in your global table will have the same global secondary index settings. You can only create or delete one global secondary index in a single stack operation.
* Since the backfilling of an index could take a long time, CloudFormation does not wait for the index to become active. If a stack operation rolls back, CloudFormation might not delete an index that has been added. In that case, you will need to delete the index manually.
*/
@JvmName("huxrrlvsaykejlfb")
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 global table. You can create up to 20 global secondary indexes. Each replica in your global table will have the same global secondary index settings. You can only create or delete one global secondary index in a single stack operation.
* Since the backfilling of an index could take a long time, CloudFormation does not wait for the index to become active. If a stack operation rolls back, CloudFormation might not delete an index that has been added. In that case, you will need to delete the index manually.
*/
@JvmName("hmxupjbogxdcgpiv")
public suspend fun globalSecondaryIndexes(argument: List Unit>) {
val toBeMapped = argument.toList().map {
GlobalTableGlobalSecondaryIndexArgsBuilder().applySuspend { it() }.build()
}
val mapped = of(toBeMapped)
this.globalSecondaryIndexes = mapped
}
/**
* @param argument Global secondary indexes to be created on the global table. You can create up to 20 global secondary indexes. Each replica in your global table will have the same global secondary index settings. You can only create or delete one global secondary index in a single stack operation.
* Since the backfilling of an index could take a long time, CloudFormation does not wait for the index to become active. If a stack operation rolls back, CloudFormation might not delete an index that has been added. In that case, you will need to delete the index manually.
*/
@JvmName("awkaphsrulufupuo")
public suspend fun globalSecondaryIndexes(vararg argument: suspend GlobalTableGlobalSecondaryIndexArgsBuilder.() -> Unit) {
val toBeMapped = argument.toList().map {
GlobalTableGlobalSecondaryIndexArgsBuilder().applySuspend { it() }.build()
}
val mapped = of(toBeMapped)
this.globalSecondaryIndexes = mapped
}
/**
* @param argument Global secondary indexes to be created on the global table. You can create up to 20 global secondary indexes. Each replica in your global table will have the same global secondary index settings. You can only create or delete one global secondary index in a single stack operation.
* Since the backfilling of an index could take a long time, CloudFormation does not wait for the index to become active. If a stack operation rolls back, CloudFormation might not delete an index that has been added. In that case, you will need to delete the index manually.
*/
@JvmName("yvbttkgtymwecftw")
public suspend fun globalSecondaryIndexes(argument: suspend GlobalTableGlobalSecondaryIndexArgsBuilder.() -> Unit) {
val toBeMapped = listOf(
GlobalTableGlobalSecondaryIndexArgsBuilder().applySuspend {
argument()
}.build(),
)
val mapped = of(toBeMapped)
this.globalSecondaryIndexes = mapped
}
/**
* @param values Global secondary indexes to be created on the global table. You can create up to 20 global secondary indexes. Each replica in your global table will have the same global secondary index settings. You can only create or delete one global secondary index in a single stack operation.
* Since the backfilling of an index could take a long time, CloudFormation does not wait for the index to become active. If a stack operation rolls back, CloudFormation might not delete an index that has been added. In that case, you will need to delete the index manually.
*/
@JvmName("eybjwfqepsyaykth")
public suspend fun globalSecondaryIndexes(vararg values: GlobalTableGlobalSecondaryIndexArgs) {
val toBeMapped = values.toList()
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.globalSecondaryIndexes = 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("iosrefpbsciuaots")
public suspend fun keySchema(`value`: List?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.keySchema = mapped
}
/**
* @param argument 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("hnlcdplcwnonivyd")
public suspend fun keySchema(argument: List Unit>) {
val toBeMapped = argument.toList().map {
GlobalTableKeySchemaArgsBuilder().applySuspend {
it()
}.build()
}
val mapped = of(toBeMapped)
this.keySchema = mapped
}
/**
* @param argument 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("culiidcmcvxvflxo")
public suspend fun keySchema(vararg argument: suspend GlobalTableKeySchemaArgsBuilder.() -> Unit) {
val toBeMapped = argument.toList().map {
GlobalTableKeySchemaArgsBuilder().applySuspend {
it()
}.build()
}
val mapped = of(toBeMapped)
this.keySchema = mapped
}
/**
* @param argument 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("stvppcvwimjwecik")
public suspend fun keySchema(argument: suspend GlobalTableKeySchemaArgsBuilder.() -> Unit) {
val toBeMapped = listOf(GlobalTableKeySchemaArgsBuilder().applySuspend { argument() }.build())
val mapped = of(toBeMapped)
this.keySchema = mapped
}
/**
* @param values 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("hyficisqxsnvdyuf")
public suspend fun keySchema(vararg values: GlobalTableKeySchemaArgs) {
val toBeMapped = values.toList()
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.keySchema = mapped
}
/**
* @param value Local secondary indexes to be created on the table. You can create up to five 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. Each replica in your global table will have the same local secondary index settings.
*/
@JvmName("udscedmsrhuudnug")
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 five 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. Each replica in your global table will have the same local secondary index settings.
*/
@JvmName("ddlmlggnwxxgvfqb")
public suspend fun localSecondaryIndexes(argument: List Unit>) {
val toBeMapped = argument.toList().map {
GlobalTableLocalSecondaryIndexArgsBuilder().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 five 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. Each replica in your global table will have the same local secondary index settings.
*/
@JvmName("nukainlbscptbwfi")
public suspend fun localSecondaryIndexes(vararg argument: suspend GlobalTableLocalSecondaryIndexArgsBuilder.() -> Unit) {
val toBeMapped = argument.toList().map {
GlobalTableLocalSecondaryIndexArgsBuilder().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 five 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. Each replica in your global table will have the same local secondary index settings.
*/
@JvmName("jfgtebaigtktaahe")
public suspend fun localSecondaryIndexes(argument: suspend GlobalTableLocalSecondaryIndexArgsBuilder.() -> Unit) {
val toBeMapped = listOf(
GlobalTableLocalSecondaryIndexArgsBuilder().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 five 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. Each replica in your global table will have the same local secondary index settings.
*/
@JvmName("vmskvwxlrwtsrofd")
public suspend fun localSecondaryIndexes(vararg values: GlobalTableLocalSecondaryIndexArgs) {
val toBeMapped = values.toList()
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.localSecondaryIndexes = mapped
}
/**
* @param value Specifies the list of replicas for your global table. The list must contain at least one element, the region where the stack defining the global table is deployed. For example, if you define your table in a stack deployed to us-east-1, you must have an entry in `Replicas` with the region us-east-1. You cannot remove the replica in the stack region.
* > Adding a replica might take a few minutes for an empty table, or up to several hours for large tables. If you want to add or remove a replica, we recommend submitting an `UpdateStack` operation containing only that change.
* >
* > If you add or delete a replica 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 replica, you might need to manually delete the replica.
* You can create a new global table with as many replicas as needed. You can add or remove replicas after table creation, but you can only add or remove a single replica in each update.
*/
@JvmName("gqdshuhdgngqbxsh")
public suspend fun replicas(`value`: List?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.replicas = mapped
}
/**
* @param argument Specifies the list of replicas for your global table. The list must contain at least one element, the region where the stack defining the global table is deployed. For example, if you define your table in a stack deployed to us-east-1, you must have an entry in `Replicas` with the region us-east-1. You cannot remove the replica in the stack region.
* > Adding a replica might take a few minutes for an empty table, or up to several hours for large tables. If you want to add or remove a replica, we recommend submitting an `UpdateStack` operation containing only that change.
* >
* > If you add or delete a replica 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 replica, you might need to manually delete the replica.
* You can create a new global table with as many replicas as needed. You can add or remove replicas after table creation, but you can only add or remove a single replica in each update.
*/
@JvmName("wycpkfygmhlrsdfx")
public suspend fun replicas(argument: List Unit>) {
val toBeMapped = argument.toList().map {
GlobalTableReplicaSpecificationArgsBuilder().applySuspend { it() }.build()
}
val mapped = of(toBeMapped)
this.replicas = mapped
}
/**
* @param argument Specifies the list of replicas for your global table. The list must contain at least one element, the region where the stack defining the global table is deployed. For example, if you define your table in a stack deployed to us-east-1, you must have an entry in `Replicas` with the region us-east-1. You cannot remove the replica in the stack region.
* > Adding a replica might take a few minutes for an empty table, or up to several hours for large tables. If you want to add or remove a replica, we recommend submitting an `UpdateStack` operation containing only that change.
* >
* > If you add or delete a replica 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 replica, you might need to manually delete the replica.
* You can create a new global table with as many replicas as needed. You can add or remove replicas after table creation, but you can only add or remove a single replica in each update.
*/
@JvmName("qfyjatvwghqvsnqs")
public suspend fun replicas(vararg argument: suspend GlobalTableReplicaSpecificationArgsBuilder.() -> Unit) {
val toBeMapped = argument.toList().map {
GlobalTableReplicaSpecificationArgsBuilder().applySuspend { it() }.build()
}
val mapped = of(toBeMapped)
this.replicas = mapped
}
/**
* @param argument Specifies the list of replicas for your global table. The list must contain at least one element, the region where the stack defining the global table is deployed. For example, if you define your table in a stack deployed to us-east-1, you must have an entry in `Replicas` with the region us-east-1. You cannot remove the replica in the stack region.
* > Adding a replica might take a few minutes for an empty table, or up to several hours for large tables. If you want to add or remove a replica, we recommend submitting an `UpdateStack` operation containing only that change.
* >
* > If you add or delete a replica 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 replica, you might need to manually delete the replica.
* You can create a new global table with as many replicas as needed. You can add or remove replicas after table creation, but you can only add or remove a single replica in each update.
*/
@JvmName("wcpxnahybtcbwljr")
public suspend fun replicas(argument: suspend GlobalTableReplicaSpecificationArgsBuilder.() -> Unit) {
val toBeMapped = listOf(
GlobalTableReplicaSpecificationArgsBuilder().applySuspend {
argument()
}.build(),
)
val mapped = of(toBeMapped)
this.replicas = mapped
}
/**
* @param values Specifies the list of replicas for your global table. The list must contain at least one element, the region where the stack defining the global table is deployed. For example, if you define your table in a stack deployed to us-east-1, you must have an entry in `Replicas` with the region us-east-1. You cannot remove the replica in the stack region.
* > Adding a replica might take a few minutes for an empty table, or up to several hours for large tables. If you want to add or remove a replica, we recommend submitting an `UpdateStack` operation containing only that change.
* >
* > If you add or delete a replica 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 replica, you might need to manually delete the replica.
* You can create a new global table with as many replicas as needed. You can add or remove replicas after table creation, but you can only add or remove a single replica in each update.
*/
@JvmName("awpotbbajioapcdh")
public suspend fun replicas(vararg values: GlobalTableReplicaSpecificationArgs) {
val toBeMapped = values.toList()
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.replicas = mapped
}
/**
* @param value Specifies the settings to enable server-side encryption. These settings will be applied to all replicas. If you plan to use customer-managed KMS keys, you must provide a key for each replica using the `ReplicaSpecification.ReplicaSSESpecification` property.
*/
@JvmName("cjdnqqidicnoqckm")
public suspend fun sseSpecification(`value`: GlobalTableSseSpecificationArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.sseSpecification = mapped
}
/**
* @param argument Specifies the settings to enable server-side encryption. These settings will be applied to all replicas. If you plan to use customer-managed KMS keys, you must provide a key for each replica using the `ReplicaSpecification.ReplicaSSESpecification` property.
*/
@JvmName("mokujbtvcjqwgpih")
public suspend fun sseSpecification(argument: suspend GlobalTableSseSpecificationArgsBuilder.() -> Unit) {
val toBeMapped = GlobalTableSseSpecificationArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.sseSpecification = mapped
}
/**
* @param value Specifies the streams settings on your global table. You must provide a value for this property if your global table contains more than one replica. You can only change the streams settings if your global table has only one replica.
*/
@JvmName("hiibqfqvqgauaeqr")
public suspend fun streamSpecification(`value`: GlobalTableStreamSpecificationArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.streamSpecification = mapped
}
/**
* @param argument Specifies the streams settings on your global table. You must provide a value for this property if your global table contains more than one replica. You can only change the streams settings if your global table has only one replica.
*/
@JvmName("hestocdopsiadsaw")
public suspend fun streamSpecification(argument: suspend GlobalTableStreamSpecificationArgsBuilder.() -> Unit) {
val toBeMapped = GlobalTableStreamSpecificationArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.streamSpecification = mapped
}
/**
* @param value A name for the global table. If you don't specify a name, AWS CloudFormation generates a unique ID and uses that ID as 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("ieltsjvvlyhrjcpa")
public suspend fun tableName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.tableName = mapped
}
/**
* @param value Specifies the time to live (TTL) settings for the table. This setting will be applied to all replicas.
*/
@JvmName("wkydnnmxfdlhmrcm")
public suspend fun timeToLiveSpecification(`value`: GlobalTableTimeToLiveSpecificationArgs?) {
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. This setting will be applied to all replicas.
*/
@JvmName("khsttoxrntlkaifr")
public suspend fun timeToLiveSpecification(argument: suspend GlobalTableTimeToLiveSpecificationArgsBuilder.() -> Unit) {
val toBeMapped = GlobalTableTimeToLiveSpecificationArgsBuilder().applySuspend {
argument()
}.build()
val mapped = of(toBeMapped)
this.timeToLiveSpecification = mapped
}
/**
* @param value Sets the write request settings for a global table or a global secondary index. You must specify this setting if you set the `BillingMode` to `PAY_PER_REQUEST` .
*/
@JvmName("uadrfymcmfvqkcnt")
public suspend fun writeOnDemandThroughputSettings(`value`: GlobalTableWriteOnDemandThroughputSettingsArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.writeOnDemandThroughputSettings = mapped
}
/**
* @param argument Sets the write request settings for a global table or a global secondary index. You must specify this setting if you set the `BillingMode` to `PAY_PER_REQUEST` .
*/
@JvmName("hjvrgwxgmpvkwyul")
public suspend fun writeOnDemandThroughputSettings(argument: suspend GlobalTableWriteOnDemandThroughputSettingsArgsBuilder.() -> Unit) {
val toBeMapped = GlobalTableWriteOnDemandThroughputSettingsArgsBuilder().applySuspend {
argument()
}.build()
val mapped = of(toBeMapped)
this.writeOnDemandThroughputSettings = mapped
}
/**
* @param value Specifies an auto scaling policy for write capacity. This policy will be applied to all replicas. This setting must be specified if `BillingMode` is set to `PROVISIONED` .
*/
@JvmName("swluelodnaewaggg")
public suspend fun writeProvisionedThroughputSettings(`value`: GlobalTableWriteProvisionedThroughputSettingsArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.writeProvisionedThroughputSettings = mapped
}
/**
* @param argument Specifies an auto scaling policy for write capacity. This policy will be applied to all replicas. This setting must be specified if `BillingMode` is set to `PROVISIONED` .
*/
@JvmName("dmmmymcqpbddumyl")
public suspend fun writeProvisionedThroughputSettings(argument: suspend GlobalTableWriteProvisionedThroughputSettingsArgsBuilder.() -> Unit) {
val toBeMapped = GlobalTableWriteProvisionedThroughputSettingsArgsBuilder().applySuspend {
argument()
}.build()
val mapped = of(toBeMapped)
this.writeProvisionedThroughputSettings = mapped
}
internal fun build(): GlobalTableArgs = GlobalTableArgs(
attributeDefinitions = attributeDefinitions,
billingMode = billingMode,
globalSecondaryIndexes = globalSecondaryIndexes,
keySchema = keySchema,
localSecondaryIndexes = localSecondaryIndexes,
replicas = replicas,
sseSpecification = sseSpecification,
streamSpecification = streamSpecification,
tableName = tableName,
timeToLiveSpecification = timeToLiveSpecification,
writeOnDemandThroughputSettings = writeOnDemandThroughputSettings,
writeProvisionedThroughputSettings = writeProvisionedThroughputSettings,
)
}