aws-cdk-lib.aws_lambda.CfnAlias.VersionWeightProperty

interface VersionWeightProperty

LanguageType name
.NETAmazon.CDK.AWS.Lambda.CfnAlias.VersionWeightProperty
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awslambda#CfnAlias_VersionWeightProperty
Javasoftware.amazon.awscdk.services.lambda.CfnAlias.VersionWeightProperty
Pythonaws_cdk.aws_lambda.CfnAlias.VersionWeightProperty
TypeScript aws-cdk-lib » 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 { aws_lambda as lambda } from 'aws-cdk-lib';
const versionWeightProperty: lambda.CfnAlias.VersionWeightProperty = {
  functionVersion: 'functionVersion',
  functionWeight: 123,
};

Properties

NameTypeDescription
functionVersionstringThe qualifier of the second version.
functionWeightnumberThe 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.