Skip to content
v2.278.0

CapacitySizeConfigProperty Struct ​

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.

Example ​

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
# 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
// 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();
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
};
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 ​

typestringtypestrtypeStringTypestringType*string required #
Specifies whether SageMaker should process the update by amount or percentage of instances.
valuenumbervalueint | floatvalueNumberValuedoubleValue*float64 required #
Specifies the amount or percentage of instances SageMaker updates at a time.