class TimeBasedLinearTrafficRouting
| Language | Type name | 
|---|---|
|  .NET | Amazon.CDK.AWS.CodeDeploy.TimeBasedLinearTrafficRouting | 
|  Go | github.com/aws/aws-cdk-go/awscdk/v2/awscodedeploy#TimeBasedLinearTrafficRouting | 
|  Java | software.amazon.awscdk.services.codedeploy.TimeBasedLinearTrafficRouting | 
|  Python | aws_cdk.aws_codedeploy.TimeBasedLinearTrafficRouting | 
|  TypeScript (source) | aws-cdk-lib»aws_codedeploy»TimeBasedLinearTrafficRouting | 
Extends
Traffic
Define a traffic routing config of type 'TimeBasedLinear'.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_codedeploy as codedeploy } from 'aws-cdk-lib';
const timeBasedLinearTrafficRouting = codedeploy.TimeBasedLinearTrafficRouting.allAtOnce();
Initializer
new TimeBasedLinearTrafficRouting(props: TimeBasedLinearTrafficRoutingProps)
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 TimeBasedLinear. | 
bind(_scope)
public bind(_scope: Construct): TrafficRoutingConfig
Parameters
- _scope Construct
Returns
Return a TrafficRoutingConfig of type TimeBasedLinear.
