Skip to content
v2.273.0

VersionAttributes Struct ​

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';

declare const function_: lambda.Function;
const versionAttributes: lambda.VersionAttributes = {
  lambda: function_,
  version: 'version',
};

Properties ​

lambdaIFunctionlambdaIFunctionlambdaIFunctionLambdaIFunctionLambdaIFunctionrequired#
The lambda function.
versionstringversionstrversionStringVersionstringVersion*stringrequired#
The version.