ReadProvisionedThroughputSettingsProperty Struct
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.
| 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 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,
};
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
read_provisioned_throughput_settings_property = dynamodb.CfnGlobalTable.ReadProvisionedThroughputSettingsProperty(
read_capacity_auto_scaling_settings=dynamodb.CfnGlobalTable.CapacityAutoScalingSettingsProperty(
max_capacity=123,
min_capacity=123,
target_tracking_scaling_policy_configuration=dynamodb.CfnGlobalTable.TargetTrackingScalingPolicyConfigurationProperty(
target_value=123,
# the properties below are optional
disable_scale_in=False,
scale_in_cooldown=123,
scale_out_cooldown=123
),
# the properties below are optional
seed_capacity=123
),
read_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.*;
ReadProvisionedThroughputSettingsProperty readProvisionedThroughputSettingsProperty = ReadProvisionedThroughputSettingsProperty.builder()
.readCapacityAutoScalingSettings(CapacityAutoScalingSettingsProperty.builder()
.maxCapacity(123)
.minCapacity(123)
.targetTrackingScalingPolicyConfiguration(TargetTrackingScalingPolicyConfigurationProperty.builder()
.targetValue(123)
// the properties below are optional
.disableScaleIn(false)
.scaleInCooldown(123)
.scaleOutCooldown(123)
.build())
// the properties below are optional
.seedCapacity(123)
.build())
.readCapacityUnits(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 readProvisionedThroughputSettingsProperty = new ReadProvisionedThroughputSettingsProperty {
ReadCapacityAutoScalingSettings = new CapacityAutoScalingSettingsProperty {
MaxCapacity = 123,
MinCapacity = 123,
TargetTrackingScalingPolicyConfiguration = new TargetTrackingScalingPolicyConfigurationProperty {
TargetValue = 123,
// the properties below are optional
DisableScaleIn = false,
ScaleInCooldown = 123,
ScaleOutCooldown = 123
},
// the properties below are optional
SeedCapacity = 123
},
ReadCapacityUnits = 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"
readProvisionedThroughputSettingsProperty := &ReadProvisionedThroughputSettingsProperty{
ReadCapacityAutoScalingSettings: &CapacityAutoScalingSettingsProperty{
MaxCapacity: jsii.Number(123),
MinCapacity: jsii.Number(123),
TargetTrackingScalingPolicyConfiguration: &TargetTrackingScalingPolicyConfigurationProperty{
TargetValue: jsii.Number(123),
// the properties below are optional
DisableScaleIn: jsii.Boolean(false),
ScaleInCooldown: jsii.Number(123),
ScaleOutCooldown: jsii.Number(123),
},
// the properties below are optional
SeedCapacity: jsii.Number(123),
},
ReadCapacityUnits: jsii.Number(123),
}
Properties
readCapacityAutoScalingSettingsoptionalIResolvable | CfnGlobalTable.read_capacity_auto_scaling_settingsoptionaltyping.Union[IResolvable, CapacityAutoScalingSettingsProperty]readCapacityAutoScalingSettingsoptionalIResolvableReadCapacityAutoScalingSettingsoptionalIResolvableReadCapacityAutoScalingSettingsoptionalinterface{} #Specifies auto scaling settings for the replica table or global secondary index.
readCapacityUnitsoptionalnumberread_capacity_unitsoptionalint | floatreadCapacityUnitsoptionalNumberReadCapacityUnitsoptionaldoubleReadCapacityUnitsoptional*float64 #Specifies a fixed read capacity for the replica table or global secondary index.