aws-cdk-lib.aws_sagemaker.CfnEndpoint.BlueGreenUpdatePolicyProperty

interface BlueGreenUpdatePolicyProperty

LanguageType name
.NETAmazon.CDK.AWS.Sagemaker.CfnEndpoint.BlueGreenUpdatePolicyProperty
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awssagemaker#CfnEndpoint_BlueGreenUpdatePolicyProperty
Javasoftware.amazon.awscdk.services.sagemaker.CfnEndpoint.BlueGreenUpdatePolicyProperty
Pythonaws_cdk.aws_sagemaker.CfnEndpoint.BlueGreenUpdatePolicyProperty
TypeScript aws-cdk-lib » 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 { aws_sagemaker as sagemaker } from 'aws-cdk-lib';
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

NameTypeDescription
trafficRoutingConfigurationIResolvable | TrafficRoutingConfigPropertyDefines the traffic routing strategy to shift traffic from the old fleet to the new fleet during an endpoint deployment.
maximumExecutionTimeoutInSeconds?numberMaximum execution timeout for the deployment.
terminationWaitInSeconds?numberAdditional waiting time in seconds after the completion of an endpoint deployment before terminating the old endpoint fleet.

trafficRoutingConfiguration

Type: IResolvable | TrafficRoutingConfigProperty

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.