Skip to content
v2.274.0

TimeBasedLinearProperty Struct ​

A configuration that shifts traffic from one version of a Lambda function or 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 ECS task sets are specified in the deployment's AppSpec file.

Example ​

ts
// 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 timeBasedLinearProperty: codedeploy.CfnDeploymentConfig.TimeBasedLinearProperty = {
  linearInterval: 123,
  linearPercentage: 123,
};

Properties ​

linearIntervalnumberlinear_intervalint | floatlinearIntervalNumberLinearIntervaldoubleLinearInterval*float64required#
The number of minutes between each incremental traffic shift of a `TimeBasedLinear` deployment.
linearPercentagenumberlinear_percentageint | floatlinearPercentageNumberLinearPercentagedoubleLinearPercentage*float64required#
The percentage of traffic that is shifted at the start of each increment of a `TimeBasedLinear` deployment.