Skip to content
v2.277.0

CfnTrafficRoutingTimeBasedLinear Struct ​

The traffic routing configuration if CfnTrafficRoutingConfig.type is CfnTrafficRoutingType.TIME_BASED_LINEAR.

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';
const cfnTrafficRoutingTimeBasedLinear: cdk.CfnTrafficRoutingTimeBasedLinear = {
  bakeTimeMins: 123,
  stepPercentage: 123,
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk as cdk

cfn_traffic_routing_time_based_linear = cdk.CfnTrafficRoutingTimeBasedLinear(
    bake_time_mins=123,
    step_percentage=123
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.*;

CfnTrafficRoutingTimeBasedLinear cfnTrafficRoutingTimeBasedLinear = CfnTrafficRoutingTimeBasedLinear.builder()
        .bakeTimeMins(123)
        .stepPercentage(123)
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK;

var cfnTrafficRoutingTimeBasedLinear = new CfnTrafficRoutingTimeBasedLinear {
    BakeTimeMins = 123,
    StepPercentage = 123
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import cdk "github.com/aws/aws-cdk-go/awscdk"

cfnTrafficRoutingTimeBasedLinear := &CfnTrafficRoutingTimeBasedLinear{
	BakeTimeMins: jsii.Number(123),
	StepPercentage: jsii.Number(123),
}

Properties ​

bakeTimeMinsoptionalnumberbake_time_minsoptionalint | floatbakeTimeMinsoptionalNumberBakeTimeMinsoptionaldoubleBakeTimeMinsoptional*float64= 5#
The number of minutes between the first and second traffic shifts of a time-based linear deployment.
stepPercentageoptionalnumberstep_percentageoptionalint | floatstepPercentageoptionalNumberStepPercentageoptionaldoubleStepPercentageoptional*float64= 15#
The percentage of traffic that is shifted at the start of each increment of a time-based linear deployment.

The step percentage must be 14% or greater.