Skip to content

TrafficConfig

Source code in docs_src/capo_cloudfront/types/traffic_config.py
class TrafficConfig(TypedDict, closed=True):
    single_weight_config: NotRequired[
        "capo_cloudfront.types.continuous_deployment_single_weight_config.ContinuousDeploymentSingleWeightConfig"
    ]
    """<p>Contains the percentage of traffic to send to the staging distribution.</p>"""
    single_header_config: NotRequired[
        "capo_cloudfront.types.continuous_deployment_single_header_config.ContinuousDeploymentSingleHeaderConfig"
    ]
    """<p>Determines which HTTP requests are sent to the staging distribution.</p>"""
    type: "capo_cloudfront.types.continuous_deployment_policy_type.ContinuousDeploymentPolicyType"
    """<p>The type of traffic configuration.</p>"""

single_header_config instance-attribute

single_header_config: NotRequired[ContinuousDeploymentSingleHeaderConfig]

Determines which HTTP requests are sent to the staging distribution.

single_weight_config instance-attribute

single_weight_config: NotRequired[ContinuousDeploymentSingleWeightConfig]

Contains the percentage of traffic to send to the staging distribution.

type instance-attribute

The type of traffic configuration.