ManagedInstanceScalingProperty Struct
Settings that control the range in the number of instances that the endpoint provisions as it scales up or down to accommodate traffic.
| Source | |
|---|---|
| Type last changed |
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 managedInstanceScalingProperty: sagemaker.CfnEndpointConfig.ManagedInstanceScalingProperty = {
maxInstanceCount: 123,
minInstanceCount: 123,
scaleInPolicy: {
strategy: 'strategy',
// the properties below are optional
cooldownInMinutes: 123,
maximumStepSize: 123,
},
status: 'status',
};
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
managed_instance_scaling_property = sagemaker.CfnEndpointConfig.ManagedInstanceScalingProperty(
max_instance_count=123,
min_instance_count=123,
scale_in_policy=sagemaker.CfnEndpointConfig.ScaleInPolicyProperty(
strategy="strategy",
# the properties below are optional
cooldown_in_minutes=123,
maximum_step_size=123
),
status="status"
)
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.*;
ManagedInstanceScalingProperty managedInstanceScalingProperty = ManagedInstanceScalingProperty.builder()
.maxInstanceCount(123)
.minInstanceCount(123)
.scaleInPolicy(ScaleInPolicyProperty.builder()
.strategy("strategy")
// the properties below are optional
.cooldownInMinutes(123)
.maximumStepSize(123)
.build())
.status("status")
.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 managedInstanceScalingProperty = new ManagedInstanceScalingProperty {
MaxInstanceCount = 123,
MinInstanceCount = 123,
ScaleInPolicy = new ScaleInPolicyProperty {
Strategy = "strategy",
// the properties below are optional
CooldownInMinutes = 123,
MaximumStepSize = 123
},
Status = "status"
};
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"
managedInstanceScalingProperty := &ManagedInstanceScalingProperty{
MaxInstanceCount: jsii.Number(123),
MinInstanceCount: jsii.Number(123),
ScaleInPolicy: &ScaleInPolicyProperty{
Strategy: jsii.String("strategy"),
// the properties below are optional
CooldownInMinutes: jsii.Number(123),
MaximumStepSize: jsii.Number(123),
},
Status: jsii.String("status"),
}
Properties
maxInstanceCountoptionalnumbermax_instance_countoptionalint | floatmaxInstanceCountoptionalNumberMaxInstanceCountoptionaldoubleMaxInstanceCountoptional*float64 #The maximum number of instances that the endpoint can provision when it scales up to accommodate an increase in traffic.
minInstanceCountoptionalnumbermin_instance_countoptionalint | floatminInstanceCountoptionalNumberMinInstanceCountoptionaldoubleMinInstanceCountoptional*float64 #The minimum number of instances that the endpoint must retain when it scales down to accommodate a decrease in traffic.
scaleInPolicyoptionalIResolvable | CfnEndpointConfig.scale_in_policyoptionaltyping.Union[IResolvable, ScaleInPolicyProperty]scaleInPolicyoptionalIResolvableScaleInPolicyoptionalIResolvableScaleInPolicyoptionalinterface{} #Specifies how the endpoint releases instances when managed instance scaling scales in.
statusoptionalstringstatusoptionalstrstatusoptionalStringStatusoptionalstringStatusoptional*string #Indicates whether managed instance scaling is enabled.