aws-cdk-lib.aws_codedeploy.CfnDeploymentConfig.TimeBasedCanaryProperty

interface TimeBasedCanaryProperty

LanguageType name
.NETAmazon.CDK.AWS.CodeDeploy.CfnDeploymentConfig.TimeBasedCanaryProperty
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awscodedeploy#CfnDeploymentConfig_TimeBasedCanaryProperty
Javasoftware.amazon.awscdk.services.codedeploy.CfnDeploymentConfig.TimeBasedCanaryProperty
Pythonaws_cdk.aws_codedeploy.CfnDeploymentConfig.TimeBasedCanaryProperty
TypeScript aws-cdk-lib » aws_codedeploy » CfnDeploymentConfig » TimeBasedCanaryProperty

A configuration that shifts traffic from one version of a Lambda function or Amazon 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.

Example

// 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 timeBasedCanaryProperty: codedeploy.CfnDeploymentConfig.TimeBasedCanaryProperty = {
  canaryInterval: 123,
  canaryPercentage: 123,
};

Properties

NameTypeDescription
canaryIntervalnumberThe number of minutes between the first and second traffic shifts of a TimeBasedCanary deployment.
canaryPercentagenumberThe percentage of traffic to shift in the first increment of a TimeBasedCanary deployment.

canaryInterval

Type: number

The number of minutes between the first and second traffic shifts of a TimeBasedCanary deployment.


canaryPercentage

Type: number

The percentage of traffic to shift in the first increment of a TimeBasedCanary deployment.