Class TrafficRoutingConfig
Represents the structure to pass into the underlying CfnDeploymentConfig class.
Inheritance
Implements
Namespace: Amazon.CDK.AWS.CodeDeploy
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class TrafficRoutingConfig : Object, ITrafficRoutingConfig
Syntax (vb)
Public Class TrafficRoutingConfig
Inherits Object
Implements 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
Constructors
TrafficRoutingConfig() |
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
TrafficRoutingConfig()
public TrafficRoutingConfig()
Properties
TimeBasedCanary
A configuration that shifts traffic from one version of a Lambda function or ECS task set to another in two increments.
public ICanaryTrafficRoutingConfig TimeBasedCanary { get; set; }
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.
public ILinearTrafficRoutingConfig TimeBasedLinear { get; set; }
Property Value
Remarks
Default: none
Type
The type of traffic shifting ( TimeBasedCanary
or TimeBasedLinear
) used by a deployment configuration.
public string Type { get; set; }
Property Value
System.String