CfnTrafficRoutingConfig

class aws_cdk.CfnTrafficRoutingConfig(*, type, time_based_canary=None, time_based_linear=None)

Bases: object

Traffic routing configuration settings.

The type of the CfnCodeDeployBlueGreenHookProps.trafficRoutingConfig property.

Parameters:
  • type (CfnTrafficRoutingType) – The type of traffic shifting used by the blue-green deployment configuration.

  • time_based_canary (Union[CfnTrafficRoutingTimeBasedCanary, Dict[str, Any], None]) – The configuration for traffic routing when type is CfnTrafficRoutingType.TIME_BASED_CANARY. Default: - none

  • time_based_linear (Union[CfnTrafficRoutingTimeBasedLinear, Dict[str, Any], None]) – The configuration for traffic routing when type is CfnTrafficRoutingType.TIME_BASED_LINEAR. Default: - none

ExampleMetadata:

fixture=_generated

Example:

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

cfn_traffic_routing_config = cdk.CfnTrafficRoutingConfig(
    type=cdk.CfnTrafficRoutingType.ALL_AT_ONCE,

    # the properties below are optional
    time_based_canary=cdk.CfnTrafficRoutingTimeBasedCanary(
        bake_time_mins=123,
        step_percentage=123
    ),
    time_based_linear=cdk.CfnTrafficRoutingTimeBasedLinear(
        bake_time_mins=123,
        step_percentage=123
    )
)

Attributes

time_based_canary

The configuration for traffic routing when type is CfnTrafficRoutingType.TIME_BASED_CANARY.

Default:
  • none

time_based_linear

The configuration for traffic routing when type is CfnTrafficRoutingType.TIME_BASED_LINEAR.

Default:
  • none

type

The type of traffic shifting used by the blue-green deployment configuration.