-
Notifications
You must be signed in to change notification settings - Fork 17
/
EnableScalingProps.go
33 lines (30 loc) · 1003 Bytes
/
EnableScalingProps.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
package awsdynamodb
// Properties for enabling DynamoDB capacity scaling.
//
// Example:
// globalTable := dynamodb.NewTable(this, jsii.String("Table"), &TableProps{
// PartitionKey: &Attribute{
// Name: jsii.String("id"),
// Type: dynamodb.AttributeType_STRING,
// },
// ReplicationRegions: []*string{
// jsii.String("us-east-1"),
// jsii.String("us-east-2"),
// jsii.String("us-west-2"),
// },
// BillingMode: dynamodb.BillingMode_PROVISIONED,
// })
//
// globalTable.AutoScaleWriteCapacity(&EnableScalingProps{
// MinCapacity: jsii.Number(1),
// MaxCapacity: jsii.Number(10),
// }).ScaleOnUtilization(&UtilizationScalingProps{
// TargetUtilizationPercent: jsii.Number(75),
// })
//
type EnableScalingProps struct {
// Maximum capacity to scale to.
MaxCapacity *float64 `field:"required" json:"maxCapacity" yaml:"maxCapacity"`
// Minimum capacity to scale to.
MinCapacity *float64 `field:"required" json:"minCapacity" yaml:"minCapacity"`
}