DeploymentConfigProperty Struct
The deployment configuration for an endpoint, which contains the desired deployment strategy and rollback configurations.
| 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 deploymentConfigProperty: sagemaker.CfnCluster.DeploymentConfigProperty = {
autoRollbackConfiguration: [{
alarmName: 'alarmName',
}],
rollingUpdatePolicy: {
maximumBatchSize: {
type: 'type',
value: 123,
},
// the properties below are optional
rollbackMaximumBatchSize: {
type: 'type',
value: 123,
},
},
waitIntervalInSeconds: 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
deployment_config_property = sagemaker.CfnCluster.DeploymentConfigProperty(
auto_rollback_configuration=[sagemaker.CfnCluster.AlarmDetailsProperty(
alarm_name="alarmName"
)],
rolling_update_policy=sagemaker.CfnCluster.RollingUpdatePolicyProperty(
maximum_batch_size=sagemaker.CfnCluster.CapacitySizeConfigProperty(
type="type",
value=123
),
# the properties below are optional
rollback_maximum_batch_size=sagemaker.CfnCluster.CapacitySizeConfigProperty(
type="type",
value=123
)
),
wait_interval_in_seconds=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.*;
DeploymentConfigProperty deploymentConfigProperty = DeploymentConfigProperty.builder()
.autoRollbackConfiguration(List.of(AlarmDetailsProperty.builder()
.alarmName("alarmName")
.build()))
.rollingUpdatePolicy(RollingUpdatePolicyProperty.builder()
.maximumBatchSize(CapacitySizeConfigProperty.builder()
.type("type")
.value(123)
.build())
// the properties below are optional
.rollbackMaximumBatchSize(CapacitySizeConfigProperty.builder()
.type("type")
.value(123)
.build())
.build())
.waitIntervalInSeconds(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 deploymentConfigProperty = new DeploymentConfigProperty {
AutoRollbackConfiguration = new [] { new AlarmDetailsProperty {
AlarmName = "alarmName"
} },
RollingUpdatePolicy = new RollingUpdatePolicyProperty {
MaximumBatchSize = new CapacitySizeConfigProperty {
Type = "type",
Value = 123
},
// the properties below are optional
RollbackMaximumBatchSize = new CapacitySizeConfigProperty {
Type = "type",
Value = 123
}
},
WaitIntervalInSeconds = 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"
deploymentConfigProperty := &DeploymentConfigProperty{
AutoRollbackConfiguration: []interface{}{
&AlarmDetailsProperty{
AlarmName: jsii.String("alarmName"),
},
},
RollingUpdatePolicy: &RollingUpdatePolicyProperty{
MaximumBatchSize: &CapacitySizeConfigProperty{
Type: jsii.String("type"),
Value: jsii.Number(123),
},
// the properties below are optional
RollbackMaximumBatchSize: &CapacitySizeConfigProperty{
Type: jsii.String("type"),
Value: jsii.Number(123),
},
},
WaitIntervalInSeconds: jsii.Number(123),
}
Properties
autoRollbackConfigurationoptionalIResolvable | IResolvable | CfnCluster.AlarmDetailsProperty[]auto_rollback_configurationoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, AlarmDetailsProperty]]]autoRollbackConfigurationoptionalIResolvableAutoRollbackConfigurationoptionalIResolvableAutoRollbackConfigurationoptionalinterface{} #Automatic rollback configuration for handling endpoint deployment failures and recovery.
rollingUpdatePolicyoptionalIResolvable | CfnCluster.rolling_update_policyoptionaltyping.Union[IResolvable, RollingUpdatePolicyProperty]rollingUpdatePolicyoptionalIResolvableRollingUpdatePolicyoptionalIResolvableRollingUpdatePolicyoptionalinterface{} #Specifies a rolling deployment strategy for updating a SageMaker endpoint.
waitIntervalInSecondsoptionalnumberwait_interval_in_secondsoptionalint | floatwaitIntervalInSecondsoptionalNumberWaitIntervalInSecondsoptionaldoubleWaitIntervalInSecondsoptional*float64 #The duration in seconds that SageMaker waits before updating more instances in the cluster.