CfnTrafficRoutingTimeBasedCanary

class aws_cdk.core.CfnTrafficRoutingTimeBasedCanary(*, bake_time_mins=None, step_percentage=None)

Bases: object

The traffic routing configuration if {@link CfnTrafficRoutingConfig.type} is {@link CfnTrafficRoutingType.TIME_BASED_CANARY}.

Parameters
  • bake_time_mins (Union[int, float, None]) – The number of minutes between the first and second traffic shifts of a time-based canary deployment. Default: 5

  • step_percentage (Union[int, float, None]) – The percentage of traffic to shift in the first increment of a time-based canary deployment. The step percentage must be 14% or greater. Default: 15

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk.core as cdk

cfn_traffic_routing_time_based_canary = cdk.CfnTrafficRoutingTimeBasedCanary(
    bake_time_mins=123,
    step_percentage=123
)

Attributes

bake_time_mins

The number of minutes between the first and second traffic shifts of a time-based canary deployment.

Default

5

Return type

Union[int, float, None]

step_percentage

The percentage of traffic to shift in the first increment of a time-based canary deployment.

The step percentage must be 14% or greater.

Default

15

Return type

Union[int, float, None]