# CapacitySizeConfigProperty

The configuration of the size measurements of the AMI update.

Using this configuration, you can specify whether SageMaker should update your instance group by an amount or percentage of instances.

- Source: Generated at build time
- Type last changed: v2.214.0 · 2 Sep 2025

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_sagemaker as sagemaker } from 'aws-cdk-lib';
const capacitySizeConfigProperty: sagemaker.CfnCluster.CapacitySizeConfigProperty = {
  type: 'type',
  value: 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_sagemaker as sagemaker

capacity_size_config_property = sagemaker.CfnCluster.CapacitySizeConfigProperty(
    type="type",
    value=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.sagemaker.*;

CapacitySizeConfigProperty capacitySizeConfigProperty = CapacitySizeConfigProperty.builder()
        .type("type")
        .value(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.Sagemaker;

var capacitySizeConfigProperty = new CapacitySizeConfigProperty {
    Type = "type",
    Value = 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"

capacitySizeConfigProperty := &CapacitySizeConfigProperty{
	Type: jsii.String("type"),
	Value: jsii.Number(123),
}
```

## Properties

- `type`: string (required) — Specifies whether SageMaker should process the update by amount or percentage of instances.

- `value`: number (required) — Specifies the amount or percentage of instances SageMaker updates at a time.
