aws-cdk-lib.aws_codedeploy.CfnDeploymentConfig.TrafficRoutingConfigProperty

interface TrafficRoutingConfigProperty

LanguageType name
.NETAmazon.CDK.AWS.CodeDeploy.CfnDeploymentConfig.TrafficRoutingConfigProperty
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awscodedeploy#CfnDeploymentConfig_TrafficRoutingConfigProperty
Javasoftware.amazon.awscdk.services.codedeploy.CfnDeploymentConfig.TrafficRoutingConfigProperty
Pythonaws_cdk.aws_codedeploy.CfnDeploymentConfig.TrafficRoutingConfigProperty
TypeScript aws-cdk-lib » aws_codedeploy » CfnDeploymentConfig » TrafficRoutingConfigProperty

The configuration that specifies how traffic is shifted from one version of a Lambda function to another version during an AWS Lambda deployment, or from one Amazon ECS task set to another during an Amazon ECS deployment.

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 trafficRoutingConfigProperty: codedeploy.CfnDeploymentConfig.TrafficRoutingConfigProperty = {
  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?IResolvable | TimeBasedCanaryPropertyA configuration that shifts traffic from one version of a Lambda function or ECS task set to another in two increments.
timeBasedLinear?IResolvable | TimeBasedLinearPropertyA 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: IResolvable | TimeBasedCanaryProperty (optional)

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

The original and target Lambda function versions or ECS task sets are specified in the deployment's AppSpec file.


timeBasedLinear?

Type: IResolvable | TimeBasedLinearProperty (optional)

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.

The original and target Lambda function versions or Amazon ECS task sets are specified in the deployment's AppSpec file.