Interface ITrafficRoutingConfig
Represents the structure to pass into the underlying CfnDeploymentConfig class.
Namespace: Amazon.CDK.AWS.CodeDeploy
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface ITrafficRoutingConfig
Syntax (vb)
Public Interface ITrafficRoutingConfig
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 trafficRoutingConfig = new TrafficRoutingConfig {
Type = "type",
// the properties below are optional
TimeBasedCanary = new CanaryTrafficRoutingConfig {
CanaryInterval = 123,
CanaryPercentage = 123
},
TimeBasedLinear = new LinearTrafficRoutingConfig {
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.
ICanaryTrafficRoutingConfig? TimeBasedCanary { get; }
Property Value
Remarks
Default: none
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.
ILinearTrafficRoutingConfig? TimeBasedLinear { get; }
Property Value
Remarks
Default: none
Type
The type of traffic shifting ( TimeBasedCanary or TimeBasedLinear ) used by a deployment configuration.
string Type { get; }
Property Value
Remarks
ExampleMetadata: fixture=_generated