# WarmThroughput

Reference to WarmThroughput for a DynamoDB table.

- Source: [`aws-dynamodb/lib/shared.ts`](https://github.com/aws/aws-cdk/blob/v2.278.0/packages/aws-cdk-lib/aws-dynamodb/lib/shared.ts#L95)
- Type last changed: v2.173.0 · 12 Dec 2024

## Example

TypeScript:

```ts
const table = new dynamodb.TableV2(this, 'Table', {
  partitionKey: { name: 'id', type: dynamodb.AttributeType.STRING },
  warmThroughput: {
      readUnitsPerSecond: 15000,
      writeUnitsPerSecond: 20000,
    },
});
```

Python:

```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:

```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();
```

C# / .NET:

```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
    }
});
```

Golang:

```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

- `readUnitsPerSecond`: number — Configures the number of read units per second a table will be able to handle instantly.

  **Default:** no readUnitsPerSecond configured

- `writeUnitsPerSecond`: number — Configures the number of write units per second a table will be able to handle instantly.

  **Default:** no writeUnitsPerSecond configured
