CfnTrafficRoutingConfig

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

Bases: object

Traffic routing configuration settings.

The type of the {@link CfnCodeDeployBlueGreenHookProps.trafficRoutingConfig} property.

Parameters
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.core 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 {@link type} is {@link CfnTrafficRoutingType.TIME_BASED_CANARY}.

Default
  • none

Return type

Optional[CfnTrafficRoutingTimeBasedCanary]

time_based_linear

The configuration for traffic routing when {@link type} is {@link CfnTrafficRoutingType.TIME_BASED_LINEAR}.

Default
  • none

Return type

Optional[CfnTrafficRoutingTimeBasedLinear]

type

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

Return type

CfnTrafficRoutingType