aws-cdk-lib.aws_codedeploy.TimeBasedLinearTrafficRouting

class TimeBasedLinearTrafficRouting

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

Extends TrafficRouting

Define a traffic routing config of type 'TimeBasedLinear'.

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 timeBasedLinearTrafficRouting = codedeploy.TimeBasedLinearTrafficRouting.allAtOnce();

Initializer

new TimeBasedLinearTrafficRouting(props: TimeBasedLinearTrafficRoutingProps)

Parameters

  • props TimeBasedLinearTrafficRoutingProps

Properties

NameTypeDescription
intervalDurationThe amount of time between additional traffic shifts.
percentagenumberThe percentage to increase traffic on each traffic shift.

interval

Type: Duration

The amount of time between additional traffic shifts.


percentage

Type: number

The percentage to increase traffic on each traffic shift.

Methods

NameDescription
bind(_scope)Return a TrafficRoutingConfig of type TimeBasedLinear.

bind(_scope)

public bind(_scope: Construct): TrafficRoutingConfig

Parameters

  • _scope Construct

Returns

  • TrafficRoutingConfig

Return a TrafficRoutingConfig of type TimeBasedLinear.