Show / Hide Table of Contents

Interface CfnDeploymentConfig.ITrafficRoutingConfigProperty

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

Namespace: Amazon.CDK.AWS.CodeDeploy
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface CfnDeploymentConfig.ITrafficRoutingConfigProperty
Syntax (vb)
Public Interface CfnDeploymentConfig.ITrafficRoutingConfigProperty
Remarks

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codedeploy-deploymentconfig-trafficroutingconfig.html

ExampleMetadata: fixture=_generated

Examples
// The code below shows an example of how to instantiate this type.
             // The values are placeholders you should change.
             using Amazon.CDK.AWS.CodeDeploy;

             var trafficRoutingConfigProperty = new TrafficRoutingConfigProperty {
                 Type = "type",

                 // the properties below are optional
                 TimeBasedCanary = new TimeBasedCanaryProperty {
                     CanaryInterval = 123,
                     CanaryPercentage = 123
                 },
                 TimeBasedLinear = new TimeBasedLinearProperty {
                     LinearInterval = 123,
                     LinearPercentage = 123
                 }
             };

Synopsis

Properties

TimeBasedCanary

A configuration that shifts traffic from one version of a Lambda function or ECS task set to another in two increments.

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.

Type

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

Properties

TimeBasedCanary

A configuration that shifts traffic from one version of a Lambda function or ECS task set to another in two increments.

object? TimeBasedCanary { get; }
Property Value

object

Remarks

The original and target Lambda function versions or ECS task sets are specified in the deployment's AppSpec file.

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codedeploy-deploymentconfig-trafficroutingconfig.html#cfn-codedeploy-deploymentconfig-trafficroutingconfig-timebasedcanary

Type union: either IResolvable or CfnDeploymentConfig.ITimeBasedCanaryProperty

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.

object? TimeBasedLinear { get; }
Property Value

object

Remarks

The original and target Lambda function versions or Amazon ECS task sets are specified in the deployment's AppSpec file.

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codedeploy-deploymentconfig-trafficroutingconfig.html#cfn-codedeploy-deploymentconfig-trafficroutingconfig-timebasedlinear

Type union: either IResolvable or CfnDeploymentConfig.ITimeBasedLinearProperty

Type

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

string Type { get; }
Property Value

string

Remarks

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codedeploy-deploymentconfig-trafficroutingconfig.html#cfn-codedeploy-deploymentconfig-trafficroutingconfig-type

Back to top Generated by DocFX