RollingUpdatePolicyProperty Struct
Specifies a rolling deployment strategy for updating a SageMaker endpoint.
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 rollingUpdatePolicyProperty: sagemaker.CfnEndpoint.RollingUpdatePolicyProperty = {
maximumBatchSize: {
type: 'type',
value: 123,
},
waitIntervalInSeconds: 123,
// the properties below are optional
maximumExecutionTimeoutInSeconds: 123,
rollbackMaximumBatchSize: {
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
rolling_update_policy_property = sagemaker.CfnEndpoint.RollingUpdatePolicyProperty(
maximum_batch_size=sagemaker.CfnEndpoint.CapacitySizeProperty(
type="type",
value=123
),
wait_interval_in_seconds=123,
# the properties below are optional
maximum_execution_timeout_in_seconds=123,
rollback_maximum_batch_size=sagemaker.CfnEndpoint.CapacitySizeProperty(
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.*;
RollingUpdatePolicyProperty rollingUpdatePolicyProperty = RollingUpdatePolicyProperty.builder()
.maximumBatchSize(CapacitySizeProperty.builder()
.type("type")
.value(123)
.build())
.waitIntervalInSeconds(123)
// the properties below are optional
.maximumExecutionTimeoutInSeconds(123)
.rollbackMaximumBatchSize(CapacitySizeProperty.builder()
.type("type")
.value(123)
.build())
.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 rollingUpdatePolicyProperty = new RollingUpdatePolicyProperty {
MaximumBatchSize = new CapacitySizeProperty {
Type = "type",
Value = 123
},
WaitIntervalInSeconds = 123,
// the properties below are optional
MaximumExecutionTimeoutInSeconds = 123,
RollbackMaximumBatchSize = new CapacitySizeProperty {
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"
rollingUpdatePolicyProperty := &RollingUpdatePolicyProperty{
MaximumBatchSize: &CapacitySizeProperty{
Type: jsii.String("type"),
Value: jsii.Number(123),
},
WaitIntervalInSeconds: jsii.Number(123),
// the properties below are optional
MaximumExecutionTimeoutInSeconds: jsii.Number(123),
RollbackMaximumBatchSize: &CapacitySizeProperty{
Type: jsii.String("type"),
Value: jsii.Number(123),
},
}
Properties
maximumBatchSizeIResolvable | CfnEndpoint.CapacitySizePropertymaximum_batch_sizetyping.Union[IResolvable, CapacitySizeProperty]maximumBatchSizeIResolvableMaximumBatchSizeIResolvableMaximumBatchSizeinterface{}required#Batch size for each rolling step to provision capacity and turn on traffic on the new endpoint fleet, and terminate capacity on the old endpoint fleet.
Value must be between 5% to 50% of the variant's total instance count.
maximumExecutionTimeoutInSecondsoptionalnumbermaximum_execution_timeout_in_secondsoptionalint | floatmaximumExecutionTimeoutInSecondsoptionalNumberMaximumExecutionTimeoutInSecondsoptionaldoubleMaximumExecutionTimeoutInSecondsoptional*float64#The time limit for the total deployment.
Exceeding this limit causes a timeout.
rollbackMaximumBatchSizeoptionalIResolvable | CfnEndpoint.CapacitySizePropertyrollback_maximum_batch_sizeoptionaltyping.Union[IResolvable, CapacitySizeProperty]rollbackMaximumBatchSizeoptionalIResolvableRollbackMaximumBatchSizeoptionalIResolvableRollbackMaximumBatchSizeoptionalinterface{}#Batch size for rollback to the old endpoint fleet.
notes
Each rolling step to provision capacity and turn on traffic on the old endpoint fleet, and terminate capacity on the new endpoint fleet. If this field is absent, the default value will be set to 100% of total capacity which means to bring up the whole capacity of the old fleet at once during rollback.
waitIntervalInSecondsnumberwait_interval_in_secondsint | floatwaitIntervalInSecondsNumberWaitIntervalInSecondsdoubleWaitIntervalInSeconds*float64required#The length of the baking period, during which SageMaker monitors alarms for each batch on the new fleet.