# VersionWeightProperty

The [traffic-shifting](https://docs.aws.amazon.com/lambda/latest/dg/lambda-traffic-shifting-using-aliases.html) configuration of a Lambda function alias.

- Source: Generated code
- Type last changed: v2.93.0 · 23 Aug 2023

## Example

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_lambda as lambda } from 'aws-cdk-lib';
const versionWeightProperty: lambda.CfnAlias.VersionWeightProperty = {
  functionVersion: 'functionVersion',
  functionWeight: 123,
};
```

## Properties

- `functionVersion`: string (required) — The qualifier of the second version.

- `functionWeight`: number (required) — The percentage of traffic that the alias routes to the second version.
