# RevisionWeightProperty

A revision routing entry.

- Source: Generated at build time
- Type last changed: v2.273.0 · 8 Oct 2026

## Example

TypeScript:

```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 revisionWeightProperty: lambda.CfnWebFunctionEndpoint.RevisionWeightProperty = {
  revisionId: 'revisionId',
  weight: 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_lambda as lambda_

revision_weight_property = lambda.CfnWebFunctionEndpoint.RevisionWeightProperty(
    revision_id="revisionId",
    weight=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.lambda.*;

RevisionWeightProperty revisionWeightProperty = RevisionWeightProperty.builder()
        .revisionId("revisionId")
        .weight(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.Lambda;

var revisionWeightProperty = new RevisionWeightProperty {
    RevisionId = "revisionId",
    Weight = 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"

revisionWeightProperty := &RevisionWeightProperty{
	RevisionId: jsii.String("revisionId"),
	Weight: jsii.Number(123),
}
```

## Properties

- `revisionId`: string (required) — The revision identifier.

- `weight`: number (required) — The traffic weight for this revision.
