AllAtOnceTrafficRouting
- class aws_cdk.aws_codedeploy.AllAtOnceTrafficRouting
Bases:
TrafficRouting
Define a traffic routing config of type ‘AllAtOnce’.
- 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 all_at_once_traffic_routing = codedeploy.AllAtOnceTrafficRouting.all_at_once()
Methods
- bind(_scope)
Return a TrafficRoutingConfig of type
AllAtOnce
.- Parameters:
_scope (
Construct
) –- Return type:
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: