Skip to content
v2.273.0

AliasRoutingConfigurationProperty Struct ​

The traffic-shifting configuration of a Lambda function alias.

Example ​

ts
// 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 aliasRoutingConfigurationProperty: lambda.CfnAlias.AliasRoutingConfigurationProperty = {
  additionalVersionWeights: [{
    functionVersion: 'functionVersion',
    functionWeight: 123,
  }],
};

Properties ​

additionalVersionWeightsIResolvable | IResolvable | CfnAlias.VersionWeightProperty[]additional_version_weightstyping.Union[IResolvable, typing.List[typing.Union[IResolvable, VersionWeightProperty]]]additionalVersionWeightsIResolvableAdditionalVersionWeightsIResolvableAdditionalVersionWeightsinterface{}#
The second version, and the percentage of traffic that's routed to it.