# MaxThroughputProps

Properties used to configure maximum throughput for an on-demand table.

- Source: [`aws-dynamodb/lib/billing.ts`](https://github.com/aws/aws-cdk/blob/v2.275.0/packages/aws-cdk-lib/aws-dynamodb/lib/billing.ts#L22)
- Type last changed: v2.154.0 · 22 Aug 2024

## Example

```ts
const table = new dynamodb.TableV2(this, 'Table', {
  partitionKey: { name: 'pk', type: dynamodb.AttributeType.STRING },
  billing: dynamodb.Billing.onDemand({
    maxReadRequestUnits: 100,
    maxWriteRequestUnits: 115,
  }),
})
```

## Properties

- `maxReadRequestUnits`: number — The max read request units.

  **Default:** if table mode is on-demand and this property is undefined, no maximum throughput limit will be put in place for read requests. This property is only applicable for tables using on-demand mode.

- `maxWriteRequestUnits`: number — The max write request units.

  **Default:** if table mode is on-demand and this property is undefined, no maximum throughput limit will be put in place for write requests. This property is only applicable for tables using on-demand mode.
