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
Namespace: Amazon.CDK.AWS.CodeDeploy
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class TrafficRoutingConfigProperty : Object, CfnDeploymentConfig.ITrafficRoutingConfigProperty
Syntax (vb)
Public Class TrafficRoutingConfigProperty
Inherits Object
Implements CfnDeploymentConfig.ITrafficRoutingConfigProperty
Remarks
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 ( |
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.
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.
Type
The type of traffic shifting ( TimeBasedCanary
or TimeBasedLinear
) used by a deployment configuration.
public string Type { get; set; }
Property Value
System.String