aws-cdk-lib.CfnTrafficRoutingConfig

interface CfnTrafficRoutingConfig

LanguageType name
.NETAmazon.CDK.CfnTrafficRoutingConfig
Gogithub.com/aws/aws-cdk-go/awscdk/v2#CfnTrafficRoutingConfig
Javasoftware.amazon.awscdk.CfnTrafficRoutingConfig
Pythonaws_cdk.CfnTrafficRoutingConfig
TypeScript (source)aws-cdk-lib » CfnTrafficRoutingConfig

Traffic routing configuration settings.

The type of the CfnCodeDeployBlueGreenHookProps.trafficRoutingConfig property.

Example

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as cdk from 'aws-cdk-lib';
const cfnTrafficRoutingConfig: cdk.CfnTrafficRoutingConfig = {
  type: cdk.CfnTrafficRoutingType.ALL_AT_ONCE,

  // the properties below are optional
  timeBasedCanary: {
    bakeTimeMins: 123,
    stepPercentage: 123,
  },
  timeBasedLinear: {
    bakeTimeMins: 123,
    stepPercentage: 123,
  },
};

Properties

NameTypeDescription
typeCfnTrafficRoutingTypeThe type of traffic shifting used by the blue-green deployment configuration.
timeBasedCanary?CfnTrafficRoutingTimeBasedCanaryThe configuration for traffic routing when type is CfnTrafficRoutingType.TIME_BASED_CANARY.
timeBasedLinear?CfnTrafficRoutingTimeBasedLinearThe configuration for traffic routing when type is CfnTrafficRoutingType.TIME_BASED_LINEAR.

type

Type: CfnTrafficRoutingType

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


timeBasedCanary?

Type: CfnTrafficRoutingTimeBasedCanary (optional, default: none)

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


timeBasedLinear?

Type: CfnTrafficRoutingTimeBasedLinear (optional, default: none)

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