
com.pulumi.awsnative.dynamodb.kotlin.outputs.GlobalTableGlobalSecondaryIndex.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.dynamodb.kotlin.outputs
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
/**
*
* @property indexName The name of the global secondary index. The name must be unique among all other indexes on this table.
* @property keySchema The complete key schema for a global secondary index, which consists of one or more pairs of attribute names and key types:
* - `HASH` - partition key
* - `RANGE` - sort key
* > The partition key of an item is also known as its *hash attribute* . The term "hash attribute" derives from DynamoDB's usage of an internal hash function to evenly distribute data items across partitions, based on their partition key values.
* >
* > The sort key of an item is also known as its *range attribute* . The term "range attribute" derives from the way DynamoDB stores items with the same partition key physically close together, in sorted order by the sort key value.
* @property projection Represents attributes that are copied (projected) from the table into the global secondary index. These are in addition to the primary key attributes and index key attributes, which are automatically projected.
* @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 Defines write capacity settings for the global secondary index. You must specify a value for this property if the table's `BillingMode` is `PROVISIONED` . All replicas will have the same write capacity settings for this global secondary index.
*/
public data class GlobalTableGlobalSecondaryIndex(
public val indexName: String,
public val keySchema: List,
public val projection: GlobalTableProjection,
public val writeOnDemandThroughputSettings: GlobalTableWriteOnDemandThroughputSettings? = null,
public val writeProvisionedThroughputSettings: GlobalTableWriteProvisionedThroughputSettings? =
null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.awsnative.dynamodb.outputs.GlobalTableGlobalSecondaryIndex): GlobalTableGlobalSecondaryIndex = GlobalTableGlobalSecondaryIndex(
indexName = javaType.indexName(),
keySchema = javaType.keySchema().map({ args0 ->
args0.let({ args0 ->
com.pulumi.awsnative.dynamodb.kotlin.outputs.GlobalTableKeySchema.Companion.toKotlin(args0)
})
}),
projection = javaType.projection().let({ args0 ->
com.pulumi.awsnative.dynamodb.kotlin.outputs.GlobalTableProjection.Companion.toKotlin(args0)
}),
writeOnDemandThroughputSettings = javaType.writeOnDemandThroughputSettings().map({ args0 ->
args0.let({ args0 ->
com.pulumi.awsnative.dynamodb.kotlin.outputs.GlobalTableWriteOnDemandThroughputSettings.Companion.toKotlin(args0)
})
}).orElse(null),
writeProvisionedThroughputSettings = javaType.writeProvisionedThroughputSettings().map({ args0 ->
args0.let({ args0 ->
com.pulumi.awsnative.dynamodb.kotlin.outputs.GlobalTableWriteProvisionedThroughputSettings.Companion.toKotlin(args0)
})
}).orElse(null),
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy