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 ITrafficRoutingConfigProperty
Syntax (vb)
Public Interface 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
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 ( |
Properties
TimeBasedCanary
A configuration that shifts traffic from one version of a Lambda function or ECS task set to another in two increments.
virtual object TimeBasedCanary { get; }
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.
virtual object TimeBasedLinear { get; }
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.
string Type { get; }
Property Value
System.String