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.
| Source | |
|---|---|
| Type last changed |
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,
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_codedeploy as codedeploy
time_based_linear_property = codedeploy.CfnDeploymentConfig.TimeBasedLinearProperty(
linear_interval=123,
linear_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.services.codedeploy.*;
TimeBasedLinearProperty timeBasedLinearProperty = TimeBasedLinearProperty.builder()
.linearInterval(123)
.linearPercentage(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.AWS.CodeDeploy;
var timeBasedLinearProperty = new TimeBasedLinearProperty {
LinearInterval = 123,
LinearPercentage = 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 "github.com/aws/aws-cdk-go/awscdk"
timeBasedLinearProperty := &TimeBasedLinearProperty{
LinearInterval: jsii.Number(123),
LinearPercentage: jsii.Number(123),
}
Properties
linearIntervalnumberlinear_intervalint | floatlinearIntervalNumberLinearIntervaldoubleLinearInterval*float64 required #The number of minutes between each incremental traffic shift of a `TimeBasedLinear` deployment.
linearPercentagenumberlinear_percentageint | floatlinearPercentageNumberLinearPercentagedoubleLinearPercentage*float64 required #The percentage of traffic that is shifted at the start of each increment of a `TimeBasedLinear` deployment.