# VersionAttributes

- Source: [`aws-lambda/lib/lambda-version.ts`](https://github.com/aws/aws-cdk/blob/v2.274.0/packages/aws-cdk-lib/aws-lambda/lib/lambda-version.ts#L114)

## 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

- `lambda`: [IFunction](/cdk/api/v2/docs/aws-cdk-lib.aws_lambda.IFunction.html) (required) — The lambda function.

- `version`: string (required) — The version.
