interface VersionWeightProperty
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.Lambda.CfnAlias.VersionWeightProperty |
Java | software.amazon.awscdk.services.lambda.CfnAlias.VersionWeightProperty |
Python | aws_cdk.aws_lambda.CfnAlias.VersionWeightProperty |
TypeScript | @aws-cdk/aws-lambda » CfnAlias » VersionWeightProperty |
The traffic-shifting configuration of a Lambda function alias.
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';
const versionWeightProperty: lambda.CfnAlias.VersionWeightProperty = {
functionVersion: 'functionVersion',
functionWeight: 123,
};
Properties
Name | Type | Description |
---|---|---|
function | string | The qualifier of the second version. |
function | number | The percentage of traffic that the alias routes to the second version. |
functionVersion
Type:
string
The qualifier of the second version.
functionWeight
Type:
number
The percentage of traffic that the alias routes to the second version.