ProvisionedThroughputProperty Struct
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 .
| Source | |
|---|---|
| Type last changed |
Example
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
# 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
// 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();
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
};
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
readCapacityUnitsnumberread_capacity_unitsint | floatreadCapacityUnitsNumberReadCapacityUnitsdoubleReadCapacityUnits*float64 required #The maximum number of strongly consistent reads consumed per second before DynamoDB returns a `ThrottlingException` .
notes
For more information, see Specifying Read and Write Requirements in the Amazon DynamoDB Developer Guide .
If read/write capacity mode is PAY_PER_REQUEST the value is set to 0.
writeCapacityUnitsnumberwrite_capacity_unitsint | floatwriteCapacityUnitsNumberWriteCapacityUnitsdoubleWriteCapacityUnits*float64 required #The maximum number of writes consumed per second before DynamoDB returns a `ThrottlingException` .
notes
For more information, see Specifying Read and Write Requirements in the Amazon DynamoDB Developer Guide .
If read/write capacity mode is PAY_PER_REQUEST the value is set to 0.