TimeBasedLinearTrafficRouting
- class aws_cdk.aws_codedeploy.TimeBasedLinearTrafficRouting(*, interval, percentage)
- Bases: - TrafficRouting- Define a traffic routing config of type ‘TimeBasedLinear’. - ExampleMetadata:
- fixture=_generated 
 - Example: - # The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk import aws_codedeploy as codedeploy time_based_linear_traffic_routing = codedeploy.TimeBasedLinearTrafficRouting.all_at_once() - Parameters:
- interval ( - Duration) – The amount of time between traffic shifts.
- percentage ( - Union[- int,- float]) – The percentage to increase traffic on each traffic shift.
 
 - Methods - bind(_scope)
- Return a TrafficRoutingConfig of type - TimeBasedLinear.- Parameters:
- _scope ( - Construct)
- Return type:
 
 - Attributes - interval
- The amount of time between additional traffic shifts. 
 - percentage
- The percentage to increase traffic on each traffic shift. 
 - Static Methods - classmethod all_at_once()
- Shifts 100% of traffic in a single shift. - Return type:
 
 - classmethod time_based_canary(*, interval, percentage)
- Shifts a specified percentage of traffic, waits for a specified amount of time, then shifts the rest of traffic. - Parameters:
- interval ( - Duration) – The amount of time between traffic shifts.
- percentage ( - Union[- int,- float]) – The percentage to increase traffic on each traffic shift.
 
- Return type:
 
 - classmethod time_based_linear(*, interval, percentage)
- Keeps shifting a specified percentage of traffic until reaching 100%, waiting for a specified amount of time in between each traffic shift. - Parameters:
- interval ( - Duration) – The amount of time between traffic shifts.
- percentage ( - Union[- int,- float]) – The percentage to increase traffic on each traffic shift.
 
- Return type: