# AdotLambdaLayerJavaAutoInstrumentationVersion

The collection of versions of the ADOT Lambda Layer for Java auto-instrumentation.

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

Obtainable from: AdotLambdaLayerJavaAutoInstrumentationVersion.LATEST, AdotLambdaLayerJavaAutoInstrumentationVersion.V1_19_2, AdotLambdaLayerJavaAutoInstrumentationVersion.V1_28_1, AdotLambdaLayerJavaAutoInstrumentationVersion.V1_30_0, AdotLambdaLayerJavaAutoInstrumentationVersion.V1_31_0, AdotLambdaLayerJavaAutoInstrumentationVersion.V1_32_0, AdotLambdaLayerJavaAutoInstrumentationVersion.V1_32_0_1

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

## Example

TypeScript:

```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 adotLambdaLayerJavaAutoInstrumentationVersion = lambda.AdotLambdaLayerJavaAutoInstrumentationVersion.LATEST;
```

Python:

```python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_lambda as lambda_

adot_lambda_layer_java_auto_instrumentation_version = lambda_.AdotLambdaLayerJavaAutoInstrumentationVersion.LATEST
```

Java:

```java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.lambda.*;

AdotLambdaLayerJavaAutoInstrumentationVersion adotLambdaLayerJavaAutoInstrumentationVersion = AdotLambdaLayerJavaAutoInstrumentationVersion.LATEST;
```

C# / .NET:

```csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Lambda;

var adotLambdaLayerJavaAutoInstrumentationVersion = AdotLambdaLayerJavaAutoInstrumentationVersion.LATEST;
```

Golang:

```go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

adotLambdaLayerJavaAutoInstrumentationVersion := awscdk.Aws_lambda.AdotLambdaLayerJavaAutoInstrumentationVersion_LATEST()
```

## Properties

- `LATEST`: [AdotLambdaLayerJavaAutoInstrumentationVersion](/cdk/api/v2/docs/aws-cdk-lib.aws_lambda.AdotLambdaLayerJavaAutoInstrumentationVersion.html) (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_19_2`: [AdotLambdaLayerJavaAutoInstrumentationVersion](/cdk/api/v2/docs/aws-cdk-lib.aws_lambda.AdotLambdaLayerJavaAutoInstrumentationVersion.html) (static) — Version 1.19.2.

- `V1_28_1`: [AdotLambdaLayerJavaAutoInstrumentationVersion](/cdk/api/v2/docs/aws-cdk-lib.aws_lambda.AdotLambdaLayerJavaAutoInstrumentationVersion.html) (static) — Version 1.28.1.

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

- `V1_31_0`: [AdotLambdaLayerJavaAutoInstrumentationVersion](/cdk/api/v2/docs/aws-cdk-lib.aws_lambda.AdotLambdaLayerJavaAutoInstrumentationVersion.html) (static) — Version 1.31.0.

- `V1_32_0`: [AdotLambdaLayerJavaAutoInstrumentationVersion](/cdk/api/v2/docs/aws-cdk-lib.aws_lambda.AdotLambdaLayerJavaAutoInstrumentationVersion.html) (static) — Version 1.32.0.

- `V1_32_0_1`: [AdotLambdaLayerJavaAutoInstrumentationVersion](/cdk/api/v2/docs/aws-cdk-lib.aws_lambda.AdotLambdaLayerJavaAutoInstrumentationVersion.html) (static) — Version 1.32.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).
