Show / Hide Table of Contents

Class CfnDeploymentConfig.TrafficRoutingConfigProperty

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.

Inheritance
System.Object
CfnDeploymentConfig.TrafficRoutingConfigProperty
Implements
CfnDeploymentConfig.ITrafficRoutingConfigProperty
Namespace: Amazon.CDK.AWS.CodeDeploy
Assembly: Amazon.CDK.AWS.CodeDeploy.dll
Syntax (csharp)
public class TrafficRoutingConfigProperty : Object, CfnDeploymentConfig.ITrafficRoutingConfigProperty
Syntax (vb)
Public Class TrafficRoutingConfigProperty
    Inherits Object
    Implements CfnDeploymentConfig.ITrafficRoutingConfigProperty
Remarks

Link: 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

Constructors

TrafficRoutingConfigProperty()

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.

Constructors

TrafficRoutingConfigProperty()

public TrafficRoutingConfigProperty()

Properties

TimeBasedCanary

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

public object TimeBasedCanary { get; set; }
Property Value

System.Object

Remarks

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

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

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.

public object TimeBasedLinear { get; set; }
Property Value

System.Object

Remarks

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

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

Type

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

public string Type { get; set; }
Property Value

System.String

Remarks

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

Implements

CfnDeploymentConfig.ITrafficRoutingConfigProperty
Back to top Generated by DocFX