Class CfnDeploymentConfig.TimeBasedCanaryProperty
A configuration that shifts traffic from one version of a Lambda function or Amazon ECS task set to another in two increments.
Implements
Inherited Members
Namespace: Amazon.CDK.AWS.CodeDeploy
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnDeploymentConfig.TimeBasedCanaryProperty : CfnDeploymentConfig.ITimeBasedCanaryProperty
Syntax (vb)
Public Class CfnDeploymentConfig.TimeBasedCanaryProperty Implements CfnDeploymentConfig.ITimeBasedCanaryProperty
Remarks
The original and target Lambda function versions or ECS task sets are specified in the deployment's AppSpec file.
ExampleMetadata: fixture=_generated
Examples
// 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 timeBasedCanaryProperty = new TimeBasedCanaryProperty {
CanaryInterval = 123,
CanaryPercentage = 123
};
Synopsis
Constructors
| TimeBasedCanaryProperty() | A configuration that shifts traffic from one version of a Lambda function or Amazon ECS task set to another in two increments. |
Properties
| CanaryInterval | The number of minutes between the first and second traffic shifts of a |
| CanaryPercentage | The percentage of traffic to shift in the first increment of a |
Constructors
TimeBasedCanaryProperty()
A configuration that shifts traffic from one version of a Lambda function or Amazon ECS task set to another in two increments.
public TimeBasedCanaryProperty()
Remarks
The original and target Lambda function versions or ECS task sets are specified in the deployment's AppSpec file.
ExampleMetadata: fixture=_generated
Examples
// 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 timeBasedCanaryProperty = new TimeBasedCanaryProperty {
CanaryInterval = 123,
CanaryPercentage = 123
};
Properties
CanaryInterval
The number of minutes between the first and second traffic shifts of a TimeBasedCanary deployment.
public double CanaryInterval { get; set; }
Property Value
Remarks
CanaryPercentage
The percentage of traffic to shift in the first increment of a TimeBasedCanary deployment.
public double CanaryPercentage { get; set; }