interface VersionWeightProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.CfnPropertyMixins.AWS.Lambda.CfnAliasPropsMixin.VersionWeightProperty |
Go | github.com/aws/aws-cdk-go/awscdkcfnpropertymixins/v2/awslambda#CfnAliasPropsMixin_VersionWeightProperty |
Java | software.amazon.awscdk.cfnpropertymixins.services.lambda.CfnAliasPropsMixin.VersionWeightProperty |
Python | aws_cdk.cfn_property_mixins.aws_lambda.CfnAliasPropsMixin.VersionWeightProperty |
TypeScript | @aws-cdk/cfn-property-mixins » aws_lambda » 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 { aws_lambda as lambda } from '@aws-cdk/cfn-property-mixins';
const versionWeightProperty: lambda.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