TimeBasedCanaryTrafficRoutingProps

class aws_cdk.aws_codedeploy.TimeBasedCanaryTrafficRoutingProps(*, interval, percentage)

Bases: BaseTrafficShiftingConfigProps

Construction properties for TimeBasedCanaryTrafficRouting.

Parameters:
  • interval (Duration) – The amount of time between traffic shifts.

  • percentage (Union[int, float]) – The percentage to increase traffic on each traffic shift.

ExampleMetadata:

infused

Example:

config = codedeploy.LambdaDeploymentConfig(self, "CustomConfig",
    traffic_routing=codedeploy.TimeBasedCanaryTrafficRouting(
        interval=Duration.minutes(15),
        percentage=5
    ),
    deployment_config_name="MyDeploymentConfig"
)

Attributes

interval

The amount of time between traffic shifts.

percentage

The percentage to increase traffic on each traffic shift.