Class: Aws::SageMaker::Types::BlueGreenUpdatePolicy

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-sagemaker/lib/aws-sdk-sagemaker/types.rb

Overview

Note:

When making an API call, you may pass BlueGreenUpdatePolicy data as a hash:

{
  traffic_routing_configuration: { # required
    type: "ALL_AT_ONCE", # required, accepts ALL_AT_ONCE, CANARY, LINEAR
    wait_interval_in_seconds: 1, # required
    canary_size: {
      type: "INSTANCE_COUNT", # required, accepts INSTANCE_COUNT, CAPACITY_PERCENT
      value: 1, # required
    },
    linear_step_size: {
      type: "INSTANCE_COUNT", # required, accepts INSTANCE_COUNT, CAPACITY_PERCENT
      value: 1, # required
    },
  },
  termination_wait_in_seconds: 1,
  maximum_execution_timeout_in_seconds: 1,
}

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.

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#maximum_execution_timeout_in_secondsInteger

Maximum execution timeout for the deployment. Note that the timeout value should be larger than the total waiting time specified in TerminationWaitInSeconds and WaitIntervalInSeconds.

Returns:

  • (Integer)


2870
2871
2872
2873
2874
2875
2876
# File 'gems/aws-sdk-sagemaker/lib/aws-sdk-sagemaker/types.rb', line 2870

class BlueGreenUpdatePolicy < Struct.new(
  :traffic_routing_configuration,
  :termination_wait_in_seconds,
  :maximum_execution_timeout_in_seconds)
  SENSITIVE = []
  include Aws::Structure
end

#termination_wait_in_secondsInteger

Additional waiting time in seconds after the completion of an endpoint deployment before terminating the old endpoint fleet. Default is 0.

Returns:

  • (Integer)


2870
2871
2872
2873
2874
2875
2876
# File 'gems/aws-sdk-sagemaker/lib/aws-sdk-sagemaker/types.rb', line 2870

class BlueGreenUpdatePolicy < Struct.new(
  :traffic_routing_configuration,
  :termination_wait_in_seconds,
  :maximum_execution_timeout_in_seconds)
  SENSITIVE = []
  include Aws::Structure
end

#traffic_routing_configurationTypes::TrafficRoutingConfig

Defines the traffic routing strategy to shift traffic from the old fleet to the new fleet during an endpoint deployment.



2870
2871
2872
2873
2874
2875
2876
# File 'gems/aws-sdk-sagemaker/lib/aws-sdk-sagemaker/types.rb', line 2870

class BlueGreenUpdatePolicy < Struct.new(
  :traffic_routing_configuration,
  :termination_wait_in_seconds,
  :maximum_execution_timeout_in_seconds)
  SENSITIVE = []
  include Aws::Structure
end