Skip to content

TrafficRoutingConfig

Source code in docs_src/capo_codedeploy/types/traffic_routing_config.py
class TrafficRoutingConfig(TypedDict, closed=True):
    type: NotRequired["capo_codedeploy.types.traffic_routing_type.TrafficRoutingType"]
    """<p>The type of traffic shifting (<code>TimeBasedCanary</code> or <code>TimeBasedLinear</code>) used by a deployment configuration.</p>"""
    time_based_canary: NotRequired[
        "capo_codedeploy.types.time_based_canary.TimeBasedCanary"
    ]
    """<p>A configuration that shifts traffic from one version of a Lambda function or ECS task set to another in two increments. The original and target Lambda function versions or ECS task sets are specified in the deployment's AppSpec file.</p>"""
    time_based_linear: NotRequired[
        "capo_codedeploy.types.time_based_linear.TimeBasedLinear"
    ]
    """<p>A configuration that shifts traffic from one version of a Lambda function or Amazon ECS task set to another in equal increments, with an equal number of minutes between each increment. The original and target Lambda function versions or Amazon ECS task sets are specified in the deployment's AppSpec file.</p>"""

time_based_canary instance-attribute

time_based_canary: NotRequired[TimeBasedCanary]

A configuration that shifts traffic from one version of a Lambda function or ECS task set to another in two increments. The original and target Lambda function versions or ECS task sets are specified in the deployment's AppSpec file.

time_based_linear instance-attribute

time_based_linear: NotRequired[TimeBasedLinear]

A configuration that shifts traffic from one version of a Lambda function or Amazon ECS task set to another in equal increments, with an equal number of minutes between each increment. The original and target Lambda function versions or Amazon ECS task sets are specified in the deployment's AppSpec file.

type instance-attribute

type: NotRequired[TrafficRoutingType]

The type of traffic shifting (TimeBasedCanary or TimeBasedLinear) used by a deployment configuration.