interface ReadProvisionedThroughputSettingsProperty
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.DynamoDB.CfnGlobalTable.ReadProvisionedThroughputSettingsProperty |
Java | software.amazon.awscdk.services.dynamodb.CfnGlobalTable.ReadProvisionedThroughputSettingsProperty |
Python | aws_cdk.aws_dynamodb.CfnGlobalTable.ReadProvisionedThroughputSettingsProperty |
TypeScript | @aws-cdk/aws-dynamodb » CfnGlobalTable » ReadProvisionedThroughputSettingsProperty |
Allows you to specify the read capacity settings for a replica table or a replica global secondary index when the BillingMode
is set to PROVISIONED
.
You must specify a value for either ReadCapacityUnits
or ReadCapacityAutoScalingSettings
, but not both. You can switch between fixed capacity and auto scaling.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as dynamodb from '@aws-cdk/aws-dynamodb';
const readProvisionedThroughputSettingsProperty: dynamodb.CfnGlobalTable.ReadProvisionedThroughputSettingsProperty = {
readCapacityAutoScalingSettings: {
maxCapacity: 123,
minCapacity: 123,
targetTrackingScalingPolicyConfiguration: {
targetValue: 123,
// the properties below are optional
disableScaleIn: false,
scaleInCooldown: 123,
scaleOutCooldown: 123,
},
// the properties below are optional
seedCapacity: 123,
},
readCapacityUnits: 123,
};
Properties
Name | Type | Description |
---|---|---|
read | IResolvable | Capacity | Specifies auto scaling settings for the replica table or global secondary index. |
read | number | Specifies a fixed read capacity for the replica table or global secondary index. |
readCapacityAutoScalingSettings?
Type:
IResolvable
|
Capacity
(optional)
Specifies auto scaling settings for the replica table or global secondary index.
readCapacityUnits?
Type:
number
(optional)
Specifies a fixed read capacity for the replica table or global secondary index.