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,
};
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
from aws_cdk import aws_codedeploy as codedeploy
time_based_linear_traffic_routing_props = codedeploy.TimeBasedLinearTrafficRoutingProps(
interval=cdk.Duration.minutes(30),
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.*;
import software.amazon.awscdk.services.codedeploy.*;
TimeBasedLinearTrafficRoutingProps timeBasedLinearTrafficRoutingProps = TimeBasedLinearTrafficRoutingProps.builder()
.interval(Duration.minutes(30))
.percentage(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;
using Amazon.CDK.AWS.CodeDeploy;
var timeBasedLinearTrafficRoutingProps = new TimeBasedLinearTrafficRoutingProps {
Interval = Duration.Minutes(30),
Percentage = 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"
import "github.com/aws/aws-cdk-go/awscdk"
timeBasedLinearTrafficRoutingProps := &TimeBasedLinearTrafficRoutingProps{
Interval: cdk.Duration_Minutes(jsii.Number(30)),
Percentage: jsii.Number(123),
}