Interface CfnEndpoint.IDeploymentConfigProperty
The deployment configuration for an endpoint, which contains the desired deployment strategy and rollback configurations.
Namespace: Amazon.CDK.AWS.Sagemaker
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface IDeploymentConfigProperty
Syntax (vb)
Public Interface IDeploymentConfigProperty
Remarks
ExampleMetadata: fixture=_generated
Examples
// 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 AutoRollbackConfigProperty {
Alarms = new [] { new AlarmProperty {
AlarmName = "alarmName"
} }
},
BlueGreenUpdatePolicy = new BlueGreenUpdatePolicyProperty {
TrafficRoutingConfiguration = new TrafficRoutingConfigProperty {
Type = "type",
// the properties below are optional
CanarySize = new CapacitySizeProperty {
Type = "type",
Value = 123
},
LinearStepSize = new CapacitySizeProperty {
Type = "type",
Value = 123
},
WaitIntervalInSeconds = 123
},
// the properties below are optional
MaximumExecutionTimeoutInSeconds = 123,
TerminationWaitInSeconds = 123
},
RollingUpdatePolicy = 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
}
}
};
Synopsis
Properties
Auto |
Automatic rollback configuration for handling endpoint deployment failures and recovery. |
Blue |
Update policy for a blue/green deployment. |
Rolling |
Specifies a rolling deployment strategy for updating a SageMaker endpoint. |
Properties
AutoRollbackConfiguration
Automatic rollback configuration for handling endpoint deployment failures and recovery.
virtual object AutoRollbackConfiguration { get; }
Property Value
System.
Remarks
BlueGreenUpdatePolicy
Update policy for a blue/green deployment.
virtual object BlueGreenUpdatePolicy { get; }
Property Value
System.
Remarks
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.
RollingUpdatePolicy
Specifies a rolling deployment strategy for updating a SageMaker endpoint.
virtual object RollingUpdatePolicy { get; }
Property Value
System.