WriteProvisionedThroughputSettingsProperty Struct
Specifies an auto scaling policy for write capacity.
This policy will be applied to all replicas. This setting must be specified if BillingMode is set to PROVISIONED .
| 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 writeProvisionedThroughputSettingsProperty: dynamodb.CfnGlobalTable.WriteProvisionedThroughputSettingsProperty = {
writeCapacityAutoScalingSettings: {
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,
},
};
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
write_provisioned_throughput_settings_property = dynamodb.CfnGlobalTable.WriteProvisionedThroughputSettingsProperty(
write_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
)
)
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.*;
WriteProvisionedThroughputSettingsProperty writeProvisionedThroughputSettingsProperty = WriteProvisionedThroughputSettingsProperty.builder()
.writeCapacityAutoScalingSettings(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())
.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 writeProvisionedThroughputSettingsProperty = new WriteProvisionedThroughputSettingsProperty {
WriteCapacityAutoScalingSettings = 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
}
};
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"
writeProvisionedThroughputSettingsProperty := &WriteProvisionedThroughputSettingsProperty{
WriteCapacityAutoScalingSettings: &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),
},
}
Properties
writeCapacityAutoScalingSettingsoptionalIResolvable | CfnGlobalTable.write_capacity_auto_scaling_settingsoptionaltyping.Union[IResolvable, CapacityAutoScalingSettingsProperty]writeCapacityAutoScalingSettingsoptionalIResolvableWriteCapacityAutoScalingSettingsoptionalIResolvableWriteCapacityAutoScalingSettingsoptionalinterface{} #Specifies auto scaling settings for the replica table or global secondary index.