Class CfnEndpoint.DeploymentConfigProperty
The deployment configuration for an endpoint, which contains the desired deployment strategy and rollback configurations.
Inheritance
Implements
Namespace: Amazon.CDK.AWS.Sagemaker
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class DeploymentConfigProperty : Object, CfnEndpoint.IDeploymentConfigProperty
Syntax (vb)
Public Class DeploymentConfigProperty
Inherits Object
Implements CfnEndpoint.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
Constructors
DeploymentConfigProperty() |
Properties
AutoRollbackConfiguration | Automatic rollback configuration for handling endpoint deployment failures and recovery. |
BlueGreenUpdatePolicy | Update policy for a blue/green deployment. |
RollingUpdatePolicy | Specifies a rolling deployment strategy for updating a SageMaker endpoint. |
Constructors
DeploymentConfigProperty()
public DeploymentConfigProperty()
Properties
AutoRollbackConfiguration
Automatic rollback configuration for handling endpoint deployment failures and recovery.
public object AutoRollbackConfiguration { get; set; }
Property Value
System.Object
Remarks
BlueGreenUpdatePolicy
Update policy for a blue/green deployment.
public object BlueGreenUpdatePolicy { get; set; }
Property Value
System.Object
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.
public object RollingUpdatePolicy { get; set; }
Property Value
System.Object