# CfnTrafficRoutingTimeBasedCanary

The traffic routing configuration if `CfnTrafficRoutingConfig.type` is `CfnTrafficRoutingType.TIME_BASED_CANARY`.

- Source: [`core/lib/cfn-codedeploy-blue-green-hook.ts`](https://github.com/aws/aws-cdk/blob/v2.278.0/packages/aws-cdk-lib/core/lib/cfn-codedeploy-blue-green-hook.ts#L35)

## Example

TypeScript:

```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';
const cfnTrafficRoutingTimeBasedCanary: cdk.CfnTrafficRoutingTimeBasedCanary = {
  bakeTimeMins: 123,
  stepPercentage: 123,
};
```

Python:

```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

cfn_traffic_routing_time_based_canary = cdk.CfnTrafficRoutingTimeBasedCanary(
    bake_time_mins=123,
    step_percentage=123
)
```

Java:

```java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.*;

CfnTrafficRoutingTimeBasedCanary cfnTrafficRoutingTimeBasedCanary = CfnTrafficRoutingTimeBasedCanary.builder()
        .bakeTimeMins(123)
        .stepPercentage(123)
        .build();
```

C# / .NET:

```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;

var cfnTrafficRoutingTimeBasedCanary = new CfnTrafficRoutingTimeBasedCanary {
    BakeTimeMins = 123,
    StepPercentage = 123
};
```

Golang:

```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"

cfnTrafficRoutingTimeBasedCanary := &CfnTrafficRoutingTimeBasedCanary{
	BakeTimeMins: jsii.Number(123),
	StepPercentage: jsii.Number(123),
}
```

## Properties

- `bakeTimeMins`: number = 5 — The number of minutes between the first and second traffic shifts of a time-based canary deployment.

- `stepPercentage`: number = 15 — The percentage of traffic to shift in the first increment of a time-based canary deployment.

  The step percentage must be 14% or greater.
