TrafficRoutingConfig - Amazon CodeDeploy
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

TrafficRoutingConfig

The configuration that specifies how traffic is shifted from one version of a Lambda function to another version during an Amazon Lambda deployment, or from one Amazon ECS task set to another during an Amazon ECS deployment.

Contents

timeBasedCanary

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

Type: TimeBasedCanary object

Required: No

timeBasedLinear

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

Type: TimeBasedLinear object

Required: No

type

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

Type: String

Valid Values: TimeBasedCanary | TimeBasedLinear | AllAtOnce

Required: No

See Also

For more information about using this API in one of the language-specific Amazon SDKs, see the following: