aws-cdk-lib.aws_codedeploy.TrafficRoutingConfig

interface TrafficRoutingConfig

LanguageType name
.NETAmazon.CDK.AWS.CodeDeploy.TrafficRoutingConfig
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awscodedeploy#TrafficRoutingConfig
Javasoftware.amazon.awscdk.services.codedeploy.TrafficRoutingConfig
Pythonaws_cdk.aws_codedeploy.TrafficRoutingConfig
TypeScript (source)aws-cdk-lib » aws_codedeploy » TrafficRoutingConfig

Obtainable from AllAtOnceTrafficRouting.bind(), TimeBasedCanaryTrafficRouting.bind(), TimeBasedLinearTrafficRouting.bind(), TrafficRouting.bind()

Represents the structure to pass into the underlying CfnDeploymentConfig class.

Example

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_codedeploy as codedeploy } from 'aws-cdk-lib';
const trafficRoutingConfig: codedeploy.TrafficRoutingConfig = {
  type: 'type',

  // the properties below are optional
  timeBasedCanary: {
    canaryInterval: 123,
    canaryPercentage: 123,
  },
  timeBasedLinear: {
    linearInterval: 123,
    linearPercentage: 123,
  },
};

Properties

NameTypeDescription
typestringThe type of traffic shifting ( TimeBasedCanary or TimeBasedLinear ) used by a deployment configuration.
timeBasedCanary?CanaryTrafficRoutingConfigA configuration that shifts traffic from one version of a Lambda function or ECS task set to another in two increments.
timeBasedLinear?LinearTrafficRoutingConfigA 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.

type

Type: string

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


timeBasedCanary?

Type: CanaryTrafficRoutingConfig (optional, default: none)

A configuration that shifts traffic from one version of a Lambda function or ECS task set to another in two increments.


timeBasedLinear?

Type: LinearTrafficRoutingConfig (optional, default: none)

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.