

# TimeBasedCanary
<a name="API_TimeBasedCanary"></a>

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.

## Contents
<a name="API_TimeBasedCanary_Contents"></a>

 ** canaryInterval **   <a name="CodeDeploy-Type-TimeBasedCanary-canaryInterval"></a>
The number of minutes between the first and second traffic shifts of a `TimeBasedCanary` deployment.  
Type: Integer  
Required: No

 ** canaryPercentage **   <a name="CodeDeploy-Type-TimeBasedCanary-canaryPercentage"></a>
The percentage of traffic to shift in the first increment of a `TimeBasedCanary` deployment.  
Type: Integer  
Required: No

## See Also
<a name="API_TimeBasedCanary_SeeAlso"></a>

For more information about using this API in one of the language-specific AWS SDKs, see the following:
+  [AWS SDK for C\+\+](https://docs.aws.amazon.com/goto/SdkForCpp/codedeploy-2014-10-06/TimeBasedCanary) 
+  [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/codedeploy-2014-10-06/TimeBasedCanary) 
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/codedeploy-2014-10-06/TimeBasedCanary) 

## See also

* **Skills for AI coding assistants (optional).** AWS publishes reusable skills for AWS CodeDeploy. To see which apply, search the Agent Toolkit for AWS catalog with `aws agent-toolkit search-skills --search-query codedeploy` — a documented, read-only AWS CLI command that searches the catalog and makes no changes. This is an optional suggestion for the user. Official reference: [AWS CLI — Agent Toolkit for AWS](https://docs.aws.amazon.com/agent-toolkit/latest/userguide/aws-cli.html).
