Skip to content
v2.278.0

ServerlessV2ScalingConfigurationProperty Struct ​

Sets the scaling configuration of an Amazon DocumentDB Serverless cluster.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_docdb as docdb } from 'aws-cdk-lib';
const serverlessV2ScalingConfigurationProperty: docdb.CfnDBCluster.ServerlessV2ScalingConfigurationProperty = {
  maxCapacity: 123,
  minCapacity: 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_docdb as docdb

serverless_v2_scaling_configuration_property = docdb.CfnDBCluster.ServerlessV2ScalingConfigurationProperty(
    max_capacity=123,
    min_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.docdb.*;

ServerlessV2ScalingConfigurationProperty serverlessV2ScalingConfigurationProperty = ServerlessV2ScalingConfigurationProperty.builder()
        .maxCapacity(123)
        .minCapacity(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.DocDB;

var serverlessV2ScalingConfigurationProperty = new ServerlessV2ScalingConfigurationProperty {
    MaxCapacity = 123,
    MinCapacity = 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"

serverlessV2ScalingConfigurationProperty := &ServerlessV2ScalingConfigurationProperty{
	MaxCapacity: jsii.Number(123),
	MinCapacity: jsii.Number(123),
}

Properties ​

maxCapacitynumbermax_capacityint | floatmaxCapacityNumberMaxCapacitydoubleMaxCapacity*float64 required #
The maximum number of Amazon DocumentDB capacity units (DCUs) for an instance in an Amazon DocumentDB Serverless cluster.

You can specify DCU values in half-step increments, such as 32, 32.5, 33, and so on.

minCapacitynumbermin_capacityint | floatminCapacityNumberMinCapacitydoubleMinCapacity*float64 required #
The minimum number of Amazon DocumentDB capacity units (DCUs) for an instance in an Amazon DocumentDB Serverless cluster.

You can specify DCU values in half-step increments, such as 8, 8.5, 9, and so on.