# LinearTrafficRoutingConfig

Represents the configuration specific to linear traffic shifting.

- Source: [`aws-codedeploy/lib/traffic-routing-config.ts`](https://github.com/aws/aws-cdk/blob/v2.277.0/packages/aws-cdk-lib/aws-codedeploy/lib/traffic-routing-config.ts#L44)
- Type last changed: v2.45.0 · 6 Oct 2022

## Example

TypeScript:

```ts
// 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 linearTrafficRoutingConfig: codedeploy.LinearTrafficRoutingConfig = {
  linearInterval: 123,
  linearPercentage: 123,
};
```

Python:

```python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_codedeploy as codedeploy

linear_traffic_routing_config = codedeploy.LinearTrafficRoutingConfig(
    linear_interval=123,
    linear_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.services.codedeploy.*;

LinearTrafficRoutingConfig linearTrafficRoutingConfig = LinearTrafficRoutingConfig.builder()
        .linearInterval(123)
        .linearPercentage(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.AWS.CodeDeploy;

var linearTrafficRoutingConfig = new LinearTrafficRoutingConfig {
    LinearInterval = 123,
    LinearPercentage = 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 "github.com/aws/aws-cdk-go/awscdk"

linearTrafficRoutingConfig := &LinearTrafficRoutingConfig{
	LinearInterval: jsii.Number(123),
	LinearPercentage: jsii.Number(123),
}
```

## Properties

- `linearInterval`: number (required) — The number of minutes between each incremental traffic shift of a `TimeBasedLinear` deployment.

- `linearPercentage`: number (required) — The percentage of traffic that is shifted at the start of each increment of a `TimeBasedLinear` deployment.
