public static interface CfnEndpoint.DeploymentConfigProperty
Example:
// 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() .blueGreenUpdatePolicy(BlueGreenUpdatePolicyProperty.builder() .trafficRoutingConfiguration(TrafficRoutingConfigProperty.builder() .type("type") // the properties below are optional .canarySize(CapacitySizeProperty.builder() .type("type") .value(123) .build()) .linearStepSize(CapacitySizeProperty.builder() .type("type") .value(123) .build()) .waitIntervalInSeconds(123) .build()) // the properties below are optional .maximumExecutionTimeoutInSeconds(123) .terminationWaitInSeconds(123) .build()) // the properties below are optional .autoRollbackConfiguration(AutoRollbackConfigProperty.builder() .alarms(List.of(AlarmProperty.builder() .alarmName("alarmName") .build())) .build()) .build();
Modifier and Type | Interface and Description |
---|---|
static class |
CfnEndpoint.DeploymentConfigProperty.Builder
A builder for
CfnEndpoint.DeploymentConfigProperty |
static class |
CfnEndpoint.DeploymentConfigProperty.Jsii$Proxy
An implementation for
CfnEndpoint.DeploymentConfigProperty |
Modifier and Type | Method and Description |
---|---|
static CfnEndpoint.DeploymentConfigProperty.Builder |
builder() |
default java.lang.Object |
getAutoRollbackConfiguration()
Automatic rollback configuration for handling endpoint deployment failures and recovery.
|
java.lang.Object |
getBlueGreenUpdatePolicy()
Update policy for a blue/green deployment.
|
java.lang.Object getBlueGreenUpdatePolicy()
If this update policy is specified, SageMaker creates a new fleet during the deployment while maintaining the old fleet. SageMaker flips traffic to the new fleet according to the specified traffic routing configuration. Only one update policy should be used in the deployment configuration. If no update policy is specified, SageMaker uses a blue/green deployment strategy with all at once traffic shifting by default.
default java.lang.Object getAutoRollbackConfiguration()
static CfnEndpoint.DeploymentConfigProperty.Builder builder()