class TimeBasedCanaryTrafficRouting
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.CodeDeploy.TimeBasedCanaryTrafficRouting |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awscodedeploy#TimeBasedCanaryTrafficRouting |
Java | software.amazon.awscdk.services.codedeploy.TimeBasedCanaryTrafficRouting |
Python | aws_cdk.aws_codedeploy.TimeBasedCanaryTrafficRouting |
TypeScript (source) | aws-cdk-lib » aws_codedeploy » TimeBasedCanaryTrafficRouting |
Extends
Traffic
Define a traffic routing config of type 'TimeBasedCanary'.
Example
const config = new codedeploy.LambdaDeploymentConfig(this, 'CustomConfig', {
trafficRouting: new codedeploy.TimeBasedCanaryTrafficRouting({
interval: Duration.minutes(15),
percentage: 5,
}),
deploymentConfigName: 'MyDeploymentConfig',
});
Initializer
new TimeBasedCanaryTrafficRouting(props: TimeBasedCanaryTrafficRoutingProps)
Parameters
Properties
| Name | Type | Description |
|---|---|---|
| interval | Duration | The amount of time between additional traffic shifts. |
| percentage | number | The percentage to increase traffic on each traffic shift. |
interval
Type:
Duration
The amount of time between additional traffic shifts.
percentage
Type:
number
The percentage to increase traffic on each traffic shift.
Methods
| Name | Description |
|---|---|
| bind(_scope) | Return a TrafficRoutingConfig of type TimeBasedCanary. |
bind(_scope)
public bind(_scope: Construct): TrafficRoutingConfig
Parameters
- _scope
Construct
Returns
Return a TrafficRoutingConfig of type TimeBasedCanary.

.NET
Go
Java
Python
TypeScript (