# AdotLambdaLayerJavaScriptSdkVersion

The collection of versions of the ADOT Lambda Layer for JavaScript SDK.

**Note:** These are legacy ADOT Lambda layers with an embedded collector.

- Source: [`aws-lambda/lib/adot-layers.ts`](https://github.com/aws/aws-cdk/blob/v2.274.0/packages/aws-cdk-lib/aws-lambda/lib/adot-layers.ts#L412)
- Type last changed: v2.178.0 · 6 Feb 2025

## Example

```ts
import {
  AdotLambdaExecWrapper,
  AdotLayerVersion,
  AdotLambdaLayerJavaScriptSdkVersion,
} from 'aws-cdk-lib/aws-lambda';

const fn = new lambda.Function(this, 'MyFunction', {
  runtime: lambda.Runtime.NODEJS_LATEST,
  handler: 'index.handler',
  code: lambda.Code.fromInline('exports.handler = function(event, ctx, cb) { return cb(null, "hi"); }'),
  adotInstrumentation: {
    layerVersion: AdotLayerVersion.fromJavaScriptSdkLayerVersion(AdotLambdaLayerJavaScriptSdkVersion.LATEST),
    execWrapper: AdotLambdaExecWrapper.REGULAR_HANDLER,
  },
});
```

## Properties

- `LATEST`: [AdotLambdaLayerJavaScriptSdkVersion](/cdk/api/v2/docs/aws-cdk-lib.aws_lambda.AdotLambdaLayerJavaScriptSdkVersion.html) (required) (static) — The latest layer version available in this CDK version.

  New versions could
  introduce incompatible changes. Make sure to test them before deploying to production.

- `V1_15_0_1`: [AdotLambdaLayerJavaScriptSdkVersion](/cdk/api/v2/docs/aws-cdk-lib.aws_lambda.AdotLambdaLayerJavaScriptSdkVersion.html) (required) (static) — Version 1.15.0.

- `V1_16_0`: [AdotLambdaLayerJavaScriptSdkVersion](/cdk/api/v2/docs/aws-cdk-lib.aws_lambda.AdotLambdaLayerJavaScriptSdkVersion.html) (required) (static) — Version 1.16.0.

- `V1_17_1`: [AdotLambdaLayerJavaScriptSdkVersion](/cdk/api/v2/docs/aws-cdk-lib.aws_lambda.AdotLambdaLayerJavaScriptSdkVersion.html) (required) (static) — Version 1.17.1.

- `V1_18_1`: [AdotLambdaLayerJavaScriptSdkVersion](/cdk/api/v2/docs/aws-cdk-lib.aws_lambda.AdotLambdaLayerJavaScriptSdkVersion.html) (required) (static) — Version 1.18.1.

- `V1_30_0`: [AdotLambdaLayerJavaScriptSdkVersion](/cdk/api/v2/docs/aws-cdk-lib.aws_lambda.AdotLambdaLayerJavaScriptSdkVersion.html) (required) (static) — Version 1.30.0.

- `V1_7_0`: [AdotLambdaLayerJavaScriptSdkVersion](/cdk/api/v2/docs/aws-cdk-lib.aws_lambda.AdotLambdaLayerJavaScriptSdkVersion.html) (required) (static) — Version 1.7.0.

## Methods

- `layerArn(scope: IConstruct, architecture: Architecture): string` — The ARN of the Lambda layer.

  **Parameters**

  - `scope` — The binding scope.
  - `architecture` — The architecture of the Lambda layer (either X86_64 or ARM_64).
