Class TimeBasedCanaryTrafficRouting
Define a traffic routing config of type 'TimeBasedCanary'.
Inherited Members
Namespace: Amazon.CDK.AWS.CodeDeploy
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class TimeBasedCanaryTrafficRouting : TrafficRouting
Syntax (vb)
Public Class TimeBasedCanaryTrafficRouting Inherits TrafficRouting
Remarks
ExampleMetadata: infused
Examples
var config = new LambdaDeploymentConfig(this, "CustomConfig", new LambdaDeploymentConfigProps {
TrafficRouting = new TimeBasedCanaryTrafficRouting(new TimeBasedCanaryTrafficRoutingProps {
Interval = Duration.Minutes(15),
Percentage = 5
}),
DeploymentConfigName = "MyDeploymentConfig"
});
Synopsis
Constructors
| TimeBasedCanaryTrafficRouting(ITimeBasedCanaryTrafficRoutingProps) | Define a traffic routing config of type 'TimeBasedCanary'. |
Properties
| Interval | The amount of time between additional traffic shifts. |
| Percentage | The percentage to increase traffic on each traffic shift. |
Methods
| Bind(Construct) | Return a TrafficRoutingConfig of type |
Constructors
TimeBasedCanaryTrafficRouting(ITimeBasedCanaryTrafficRoutingProps)
Define a traffic routing config of type 'TimeBasedCanary'.
public TimeBasedCanaryTrafficRouting(ITimeBasedCanaryTrafficRoutingProps props)
Parameters
Remarks
ExampleMetadata: infused
Examples
var config = new LambdaDeploymentConfig(this, "CustomConfig", new LambdaDeploymentConfigProps {
TrafficRouting = new TimeBasedCanaryTrafficRouting(new TimeBasedCanaryTrafficRoutingProps {
Interval = Duration.Minutes(15),
Percentage = 5
}),
DeploymentConfigName = "MyDeploymentConfig"
});
Properties
Interval
The amount of time between additional traffic shifts.
public virtual Duration Interval { get; }
Property Value
Remarks
ExampleMetadata: infused
Percentage
The percentage to increase traffic on each traffic shift.
public virtual double Percentage { get; }
Property Value
Remarks
ExampleMetadata: infused
Methods
Bind(Construct)
Return a TrafficRoutingConfig of type TimeBasedCanary.
public override ITrafficRoutingConfig Bind(Construct scope)
Parameters
- scope Construct
Returns
Overrides
Remarks
ExampleMetadata: infused