interface VersionWeightProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.Mixins.Preview.AWS.Lambda.Mixins.CfnAliasPropsMixin.VersionWeightProperty |
Go | github.com/aws/aws-cdk-go/awscdkmixinspreview/v2/awslambda/mixins#CfnAliasPropsMixin_VersionWeightProperty |
Java | software.amazon.awscdk.mixins.preview.services.lambda.mixins.CfnAliasPropsMixin.VersionWeightProperty |
Python | aws_cdk.mixins_preview.aws_lambda.mixins.CfnAliasPropsMixin.VersionWeightProperty |
TypeScript | @aws-cdk/mixins-preview » aws_lambda » mixins » CfnAliasPropsMixin » 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 { mixins as lambda_mixins } from '@aws-cdk/mixins-preview/aws-lambda';
const versionWeightProperty: lambda_mixins.CfnAliasPropsMixin.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
(optional)
The qualifier of the second version.
functionWeight?
Type:
number
(optional)
The percentage of traffic that the alias routes to the second version.

.NET
Go
Java
Python
TypeScript