Class EnableScalingProps
Properties for enabling DynamoDB capacity scaling.
Inheritance
System.Object
EnableScalingProps
Implements
Namespace: Amazon.CDK.AWS.DynamoDB
Assembly: Amazon.CDK.AWS.DynamoDB.dll
Syntax (csharp)
public class EnableScalingProps : Object, IEnableScalingProps
Syntax (vb)
Public Class EnableScalingProps
Inherits Object
Implements IEnableScalingProps
Remarks
ExampleMetadata: infused
Examples
var globalTable = new Table(this, "Table", new TableProps {
PartitionKey = new Attribute { Name = "id", Type = AttributeType.STRING },
ReplicationRegions = new [] { "us-east-1", "us-east-2", "us-west-2" },
BillingMode = BillingMode.PROVISIONED
});
globalTable.AutoScaleWriteCapacity(new EnableScalingProps {
MinCapacity = 1,
MaxCapacity = 10
}).ScaleOnUtilization(new UtilizationScalingProps { TargetUtilizationPercent = 75 });
Synopsis
Constructors
EnableScalingProps() |
Properties
MaxCapacity | Maximum capacity to scale to. |
MinCapacity | Minimum capacity to scale to. |
Constructors
EnableScalingProps()
public EnableScalingProps()
Properties
MaxCapacity
Maximum capacity to scale to.
public double MaxCapacity { get; set; }
Property Value
System.Double
MinCapacity
Minimum capacity to scale to.
public double MinCapacity { get; set; }
Property Value
System.Double