Class AdotLambdaLayerJavaScriptSdkVersion

java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.lambda.AdotLambdaLayerJavaScriptSdkVersion
All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable

@Generated(value="jsii-pacmak/1.106.0 (build e852934)", date="2025-02-17T19:20:30.746Z") @Stability(Stable) public class AdotLambdaLayerJavaScriptSdkVersion extends software.amazon.jsii.JsiiObject
The collection of versions of the ADOT Lambda Layer for JavaScript SDK.

Example:

 import software.amazon.awscdk.services.lambda.AdotLambdaExecWrapper;
 import software.amazon.awscdk.services.lambda.AdotLayerVersion;
 import software.amazon.awscdk.services.lambda.AdotLambdaLayerJavaScriptSdkVersion;
 Function fn = Function.Builder.create(this, "MyFunction")
         .runtime(Runtime.NODEJS_18_X)
         .handler("index.handler")
         .code(Code.fromInline("exports.handler = function(event, ctx, cb) { return cb(null, \"hi\"); }"))
         .adotInstrumentation(AdotInstrumentationConfig.builder()
                 .layerVersion(AdotLayerVersion.fromJavaScriptSdkLayerVersion(AdotLambdaLayerJavaScriptSdkVersion.LATEST))
                 .execWrapper(AdotLambdaExecWrapper.REGULAR_HANDLER)
                 .build())
         .build();
 
  • Field Details

  • Constructor Details

    • AdotLambdaLayerJavaScriptSdkVersion

      protected AdotLambdaLayerJavaScriptSdkVersion(software.amazon.jsii.JsiiObjectRef objRef)
    • AdotLambdaLayerJavaScriptSdkVersion

      protected AdotLambdaLayerJavaScriptSdkVersion(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
  • Method Details

    • layerArn

      @Stability(Stable) @NotNull public String layerArn(@NotNull software.constructs.IConstruct scope, @NotNull Architecture architecture)
      The ARN of the Lambda layer.

      Parameters:
      scope - The binding scope. This parameter is required.
      architecture - The architecture of the Lambda layer (either X86_64 or ARM_64). This parameter is required.
    • getLayerVersion

      @Stability(Stable) @NotNull protected String getLayerVersion()