interface BlueGreenUpdatePolicyProperty
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.Sagemaker.CfnEndpoint.BlueGreenUpdatePolicyProperty |
Java | software.amazon.awscdk.services.sagemaker.CfnEndpoint.BlueGreenUpdatePolicyProperty |
Python | aws_cdk.aws_sagemaker.CfnEndpoint.BlueGreenUpdatePolicyProperty |
TypeScript | @aws-cdk/aws-sagemaker » CfnEndpoint » BlueGreenUpdatePolicyProperty |
Update policy for a blue/green deployment.
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.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as sagemaker from '@aws-cdk/aws-sagemaker';
const blueGreenUpdatePolicyProperty: sagemaker.CfnEndpoint.BlueGreenUpdatePolicyProperty = {
trafficRoutingConfiguration: {
type: 'type',
// the properties below are optional
canarySize: {
type: 'type',
value: 123,
},
linearStepSize: {
type: 'type',
value: 123,
},
waitIntervalInSeconds: 123,
},
// the properties below are optional
maximumExecutionTimeoutInSeconds: 123,
terminationWaitInSeconds: 123,
};
Properties
Name | Type | Description |
---|---|---|
traffic | IResolvable | Traffic | Defines the traffic routing strategy to shift traffic from the old fleet to the new fleet during an endpoint deployment. |
maximum | number | Maximum execution timeout for the deployment. |
termination | number | Additional waiting time in seconds after the completion of an endpoint deployment before terminating the old endpoint fleet. |
trafficRoutingConfiguration
Type:
IResolvable
|
Traffic
Defines the traffic routing strategy to shift traffic from the old fleet to the new fleet during an endpoint deployment.
maximumExecutionTimeoutInSeconds?
Type:
number
(optional)
Maximum execution timeout for the deployment.
Note that the timeout value should be larger than the total waiting time specified in TerminationWaitInSeconds
and WaitIntervalInSeconds
.
terminationWaitInSeconds?
Type:
number
(optional)
Additional waiting time in seconds after the completion of an endpoint deployment before terminating the old endpoint fleet.
Default is 0.