interface VersionWeight
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.Lambda.VersionWeight |
![]() | software.amazon.awscdk.services.lambda.VersionWeight |
![]() | aws_cdk.aws_lambda.VersionWeight |
![]() | @aws-cdk/aws-lambda » VersionWeight |
A version/weight pair for routing traffic to Lambda functions.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as lambda from '@aws-cdk/aws-lambda';
declare const version: lambda.Version;
const versionWeight: lambda.VersionWeight = {
version: version,
weight: 123,
};
Properties
Name | Type | Description |
---|---|---|
version | IVersion | The version to route traffic to. |
weight | number | How much weight to assign to this version (0..1). |
version
Type:
IVersion
The version to route traffic to.
weight
Type:
number
How much weight to assign to this version (0..1).