# ServerlessV2ScalingConfigurationProperty

Sets the scaling configuration of an Amazon DocumentDB Serverless cluster.

- Source: Generated at build time
- Type last changed: v2.173.0 · 12 Dec 2024

## Example

TypeScript:

```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:

```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:

```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();
```

C# / .NET:

```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
};
```

Golang:

```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

- `maxCapacity`: number (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.

- `minCapacity`: number (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.
