interface OnDemandThroughputProperty
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.DynamoDB.CfnTable.OnDemandThroughputProperty |
![]() | github.com/aws/aws-cdk-go/awscdk/v2/awsdynamodb#CfnTable_OnDemandThroughputProperty |
![]() | software.amazon.awscdk.services.dynamodb.CfnTable.OnDemandThroughputProperty |
![]() | aws_cdk.aws_dynamodb.CfnTable.OnDemandThroughputProperty |
![]() | aws-cdk-lib » aws_dynamodb » CfnTable » OnDemandThroughputProperty |
Sets the maximum number of read and write units for the specified on-demand table.
If you use this property, you must specify MaxReadRequestUnits
, MaxWriteRequestUnits
, or both.
Example
// 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 onDemandThroughputProperty: dynamodb.CfnTable.OnDemandThroughputProperty = {
maxReadRequestUnits: 123,
maxWriteRequestUnits: 123,
};
Properties
Name | Type | Description |
---|---|---|
max | number | Maximum number of read request units for the specified table. |
max | number | Maximum number of write request units for the specified table. |
maxReadRequestUnits?
Type:
number
(optional)
Maximum number of read request units for the specified table.
To specify a maximum OnDemandThroughput
on your table, set the value of MaxReadRequestUnits
as greater than or equal to 1. To remove the maximum OnDemandThroughput
that is currently set on your table, set the value of MaxReadRequestUnits
to -1.
maxWriteRequestUnits?
Type:
number
(optional)
Maximum number of write request units for the specified table.
To specify a maximum OnDemandThroughput
on your table, set the value of MaxWriteRequestUnits
as greater than or equal to 1. To remove the maximum OnDemandThroughput
that is currently set on your table, set the value of MaxWriteRequestUnits
to -1.