Skip to content
v2.278.0

WarmThroughput Struct ​

Reference to WarmThroughput for a DynamoDB table.

Example ​

ts
const table = new dynamodb.TableV2(this, 'Table', {
  partitionKey: { name: 'id', type: dynamodb.AttributeType.STRING },
  warmThroughput: {
      readUnitsPerSecond: 15000,
      writeUnitsPerSecond: 20000,
    },
});
python
table = dynamodb.TableV2(self, "Table",
    partition_key=dynamodb.Attribute(name="id", type=dynamodb.AttributeType.STRING),
    warm_throughput=dynamodb.WarmThroughput(
        read_units_per_second=15000,
        write_units_per_second=20000
    )
)
java
TableV2 table = TableV2.Builder.create(this, "Table")
        .partitionKey(Attribute.builder().name("id").type(AttributeType.STRING).build())
        .warmThroughput(WarmThroughput.builder()
                .readUnitsPerSecond(15000)
                .writeUnitsPerSecond(20000)
                .build())
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
var table = new TableV2(this, "Table", new TablePropsV2 {
    PartitionKey = new Attribute { Name = "id", Type = AttributeType.STRING },
    WarmThroughput = new WarmThroughput {
        ReadUnitsPerSecond = 15000,
        WriteUnitsPerSecond = 20000
    }
});
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
table := dynamodb.NewTableV2(this, jsii.String("Table"), &TablePropsV2{
	PartitionKey: &Attribute{
		Name: jsii.String("id"),
		Type: dynamodb.AttributeType_STRING,
	},
	WarmThroughput: &WarmThroughput{
		ReadUnitsPerSecond: jsii.Number(15000),
		WriteUnitsPerSecond: jsii.Number(20000),
	},
})

Properties ​

readUnitsPerSecondoptionalnumberread_units_per_secondoptionalint | floatreadUnitsPerSecondoptionalNumberReadUnitsPerSecondoptionaldoubleReadUnitsPerSecondoptional*float64 #
Configures the number of read units per second a table will be able to handle instantly.

Default: no readUnitsPerSecond configured

writeUnitsPerSecondoptionalnumberwrite_units_per_secondoptionalint | floatwriteUnitsPerSecondoptionalNumberWriteUnitsPerSecondoptionaldoubleWriteUnitsPerSecondoptional*float64 #
Configures the number of write units per second a table will be able to handle instantly.

Default: no writeUnitsPerSecond configured