Skip to content
v2.275.0

TimeBasedLinearTrafficRoutingProps Struct ​

Construction properties for TimeBasedLinearTrafficRouting.

Example ​

ts
// 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';
import { aws_codedeploy as codedeploy } from 'aws-cdk-lib';
const timeBasedLinearTrafficRoutingProps: codedeploy.TimeBasedLinearTrafficRoutingProps = {
  interval: cdk.Duration.minutes(30),
  percentage: 123,
};

Properties ​

intervalDurationintervalDurationintervalDurationIntervalDurationIntervalDurationrequired#
The amount of time between traffic shifts.
percentagenumberpercentageint | floatpercentageNumberPercentagedoublePercentage*float64required#
The percentage to increase traffic on each traffic shift.