You are viewing documentation for version 3 of the AWS SDK for Ruby. Version 2 documentation can be found here.

Class: Aws::CodeDeploy::Types::TrafficRoutingConfig

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

Overview

Note:

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

{
  type: "TimeBasedCanary", # accepts TimeBasedCanary, TimeBasedLinear, AllAtOnce
  time_based_canary: {
    canary_percentage: 1,
    canary_interval: 1,
  },
  time_based_linear: {
    linear_percentage: 1,
    linear_interval: 1,
  },
}

The configuration that specifies how traffic is shifted from one version of a Lambda function to another version during an AWS Lambda deployment.

Instance Attribute Summary collapse

Instance Attribute Details

#time_based_canaryTypes::TimeBasedCanary

A configuration that shifts traffic from one version of a Lambda function to another in two increments. The original and target Lambda function versions are specified in the deployment's AppSpec file.



3802
3803
3804
3805
3806
3807
# File 'gems/aws-sdk-codedeploy/lib/aws-sdk-codedeploy/types.rb', line 3802

class TrafficRoutingConfig < Struct.new(
  :type,
  :time_based_canary,
  :time_based_linear)
  include Aws::Structure
end

#time_based_linearTypes::TimeBasedLinear

A configuration that shifts traffic from one version of a Lambda function to another in equal increments, with an equal number of minutes between each increment. The original and target Lambda function versions are specified in the deployment's AppSpec file.



3802
3803
3804
3805
3806
3807
# File 'gems/aws-sdk-codedeploy/lib/aws-sdk-codedeploy/types.rb', line 3802

class TrafficRoutingConfig < Struct.new(
  :type,
  :time_based_canary,
  :time_based_linear)
  include Aws::Structure
end

#typeString

The type of traffic shifting (TimeBasedCanary or TimeBasedLinear) used by a deployment configuration .

Returns:

  • (String)


3802
3803
3804
3805
3806
3807
# File 'gems/aws-sdk-codedeploy/lib/aws-sdk-codedeploy/types.rb', line 3802

class TrafficRoutingConfig < Struct.new(
  :type,
  :time_based_canary,
  :time_based_linear)
  include Aws::Structure
end