ReplicaSpecificationProperty Struct
The AWS Region specific settings of a multi-Region table.
For a multi-Region table, you can configure the table's read capacity differently per AWS Region. You can do this by configuring the following parameters.
region: The Region where these settings are applied. (Required)readCapacityUnits: The provisioned read capacity units. (Optional)readCapacityAutoScaling: The read capacity auto scaling settings for the table. (Optional)
| 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_cassandra as cassandra } from 'aws-cdk-lib';
const replicaSpecificationProperty: cassandra.CfnTable.ReplicaSpecificationProperty = {
region: 'region',
// the properties below are optional
readCapacityAutoScaling: {
autoScalingDisabled: false,
maximumUnits: 123,
minimumUnits: 123,
scalingPolicy: {
targetTrackingScalingPolicyConfiguration: {
targetValue: 123,
// the properties below are optional
disableScaleIn: false,
scaleInCooldown: 123,
scaleOutCooldown: 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_cassandra as cassandra
replica_specification_property = cassandra.CfnTable.ReplicaSpecificationProperty(
region="region",
# the properties below are optional
read_capacity_auto_scaling=cassandra.CfnTable.AutoScalingSettingProperty(
auto_scaling_disabled=False,
maximum_units=123,
minimum_units=123,
scaling_policy=cassandra.CfnTable.ScalingPolicyProperty(
target_tracking_scaling_policy_configuration=cassandra.CfnTable.TargetTrackingScalingPolicyConfigurationProperty(
target_value=123,
# the properties below are optional
disable_scale_in=False,
scale_in_cooldown=123,
scale_out_cooldown=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.cassandra.*;
ReplicaSpecificationProperty replicaSpecificationProperty = ReplicaSpecificationProperty.builder()
.region("region")
// the properties below are optional
.readCapacityAutoScaling(AutoScalingSettingProperty.builder()
.autoScalingDisabled(false)
.maximumUnits(123)
.minimumUnits(123)
.scalingPolicy(ScalingPolicyProperty.builder()
.targetTrackingScalingPolicyConfiguration(TargetTrackingScalingPolicyConfigurationProperty.builder()
.targetValue(123)
// the properties below are optional
.disableScaleIn(false)
.scaleInCooldown(123)
.scaleOutCooldown(123)
.build())
.build())
.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.Cassandra;
var replicaSpecificationProperty = new ReplicaSpecificationProperty {
Region = "region",
// the properties below are optional
ReadCapacityAutoScaling = new AutoScalingSettingProperty {
AutoScalingDisabled = false,
MaximumUnits = 123,
MinimumUnits = 123,
ScalingPolicy = new ScalingPolicyProperty {
TargetTrackingScalingPolicyConfiguration = new TargetTrackingScalingPolicyConfigurationProperty {
TargetValue = 123,
// the properties below are optional
DisableScaleIn = false,
ScaleInCooldown = 123,
ScaleOutCooldown = 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"
replicaSpecificationProperty := &ReplicaSpecificationProperty{
Region: jsii.String("region"),
// the properties below are optional
ReadCapacityAutoScaling: &AutoScalingSettingProperty{
AutoScalingDisabled: jsii.Boolean(false),
MaximumUnits: jsii.Number(123),
MinimumUnits: jsii.Number(123),
ScalingPolicy: &ScalingPolicyProperty{
TargetTrackingScalingPolicyConfiguration: &TargetTrackingScalingPolicyConfigurationProperty{
TargetValue: jsii.Number(123),
// the properties below are optional
DisableScaleIn: jsii.Boolean(false),
ScaleInCooldown: jsii.Number(123),
ScaleOutCooldown: jsii.Number(123),
},
},
},
ReadCapacityUnits: jsii.Number(123),
}
Properties
readCapacityAutoScalingoptionalIResolvable | CfnTable.read_capacity_auto_scalingoptionaltyping.Union[IResolvable, AutoScalingSettingProperty]readCapacityAutoScalingoptionalIResolvableReadCapacityAutoScalingoptionalIResolvableReadCapacityAutoScalingoptionalinterface{} #The read capacity auto scaling settings for the multi-Region table in the specified AWS Region.
readCapacityUnitsoptionalnumberread_capacity_unitsoptionalint | floatreadCapacityUnitsoptionalNumberReadCapacityUnitsoptionaldoubleReadCapacityUnitsoptional*float64 #The provisioned read capacity units for the multi-Region table in the specified AWS Region.
The AWS Region.