# ProvisionedThroughputProperty

Throughput for the specified table, which consists of values for `ReadCapacityUnits` and `WriteCapacityUnits` .

For more information about the contents of a provisioned throughput structure, see [Amazon DynamoDB Table ProvisionedThroughput](https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_ProvisionedThroughput.html) .

- Source: Generated at build time
- Type last changed: v2.93.0 · 23 Aug 2023

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_dynamodb as dynamodb } from 'aws-cdk-lib';
const provisionedThroughputProperty: dynamodb.CfnTable.ProvisionedThroughputProperty = {
  readCapacityUnits: 123,
  writeCapacityUnits: 123,
};
```

Python:

```python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_dynamodb as dynamodb

provisioned_throughput_property = dynamodb.CfnTable.ProvisionedThroughputProperty(
    read_capacity_units=123,
    write_capacity_units=123
)
```

Java:

```java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.dynamodb.*;

ProvisionedThroughputProperty provisionedThroughputProperty = ProvisionedThroughputProperty.builder()
        .readCapacityUnits(123)
        .writeCapacityUnits(123)
        .build();
```

C# / .NET:

```csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.DynamoDB;

var provisionedThroughputProperty = new ProvisionedThroughputProperty {
    ReadCapacityUnits = 123,
    WriteCapacityUnits = 123
};
```

Golang:

```go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

provisionedThroughputProperty := &ProvisionedThroughputProperty{
	ReadCapacityUnits: jsii.Number(123),
	WriteCapacityUnits: jsii.Number(123),
}
```

## Properties

- `readCapacityUnits`: number (required) — The maximum number of strongly consistent reads consumed per second before DynamoDB returns a `ThrottlingException` .

  For more information, see [Specifying Read and Write Requirements](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/ProvisionedThroughput.html) in the *Amazon DynamoDB Developer Guide* .

  If read/write capacity mode is `PAY_PER_REQUEST` the value is set to 0.

- `writeCapacityUnits`: number (required) — The maximum number of writes consumed per second before DynamoDB returns a `ThrottlingException` .

  For more information, see [Specifying Read and Write Requirements](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/ProvisionedThroughput.html) in the *Amazon DynamoDB Developer Guide* .

  If read/write capacity mode is `PAY_PER_REQUEST` the value is set to 0.
