interface TrafficRoutingConfigProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.Mixins.Preview.AWS.CodeDeploy.Mixins.CfnDeploymentConfigPropsMixin.TrafficRoutingConfigProperty |
Go | github.com/aws/aws-cdk-go/awscdkmixinspreview/v2/awscodedeploy/mixins#CfnDeploymentConfigPropsMixin_TrafficRoutingConfigProperty |
Java | software.amazon.awscdk.mixins.preview.services.codedeploy.mixins.CfnDeploymentConfigPropsMixin.TrafficRoutingConfigProperty |
Python | aws_cdk.mixins_preview.aws_codedeploy.mixins.CfnDeploymentConfigPropsMixin.TrafficRoutingConfigProperty |
TypeScript | @aws-cdk/mixins-preview » aws_codedeploy » mixins » CfnDeploymentConfigPropsMixin » TrafficRoutingConfigProperty |
The configuration that specifies how traffic is shifted from one version of a Lambda function to another version during an AWS Lambda deployment, or from one Amazon ECS task set to another during an Amazon ECS deployment.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { mixins as codedeploy_mixins } from '@aws-cdk/mixins-preview/aws-codedeploy';
const trafficRoutingConfigProperty: codedeploy_mixins.CfnDeploymentConfigPropsMixin.TrafficRoutingConfigProperty = {
timeBasedCanary: {
canaryInterval: 123,
canaryPercentage: 123,
},
timeBasedLinear: {
linearInterval: 123,
linearPercentage: 123,
},
type: 'type',
};
Properties
| Name | Type | Description |
|---|---|---|
| time | IResolvable | Time | A configuration that shifts traffic from one version of a Lambda function or ECS task set to another in two increments. |
| time | IResolvable | Time | A configuration that shifts traffic from one version of a Lambda function or Amazon ECS task set to another in equal increments, with an equal number of minutes between each increment. |
| type? | string | The type of traffic shifting ( TimeBasedCanary or TimeBasedLinear ) used by a deployment configuration. |
timeBasedCanary?
Type:
IResolvable | Time
(optional)
A configuration that shifts traffic from one version of a Lambda function or ECS task set to another in two increments.
The original and target Lambda function versions or ECS task sets are specified in the deployment's AppSpec file.
timeBasedLinear?
Type:
IResolvable | Time
(optional)
A configuration that shifts traffic from one version of a Lambda function or Amazon 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 Amazon ECS task sets are specified in the deployment's AppSpec file.
type?
Type:
string
(optional)
The type of traffic shifting ( TimeBasedCanary or TimeBasedLinear ) used by a deployment configuration.

.NET
Go
Java
Python
TypeScript