Class AdotLayerVersion

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

@Generated(value="jsii-pacmak/1.99.0 (build 8f757e4)", date="2024-06-13T18:49:20.887Z") @Stability(Stable) public abstract class AdotLayerVersion extends software.amazon.jsii.JsiiObject
An ADOT Lambda layer version that's specific to a lambda layer type and an architecture.

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();
 
  • Constructor Details

    • AdotLayerVersion

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

      protected AdotLayerVersion(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
    • AdotLayerVersion

      @Stability(Stable) protected AdotLayerVersion()
  • Method Details

    • fromGenericLayerVersion

      @Stability(Stable) @NotNull public static AdotLayerVersion fromGenericLayerVersion(@NotNull AdotLambdaLayerGenericVersion version)
      The ADOT Lambda layer for generic use cases.

      Parameters:
      version - The version of the Lambda layer to use. This parameter is required.
    • fromJavaAutoInstrumentationLayerVersion

      @Stability(Stable) @NotNull public static AdotLayerVersion fromJavaAutoInstrumentationLayerVersion(@NotNull AdotLambdaLayerJavaAutoInstrumentationVersion version)
      The ADOT Lambda layer for Java auto instrumentation.

      Parameters:
      version - The version of the Lambda layer to use. This parameter is required.
    • fromJavaScriptSdkLayerVersion

      @Stability(Stable) @NotNull public static AdotLayerVersion fromJavaScriptSdkLayerVersion(@NotNull AdotLambdaLayerJavaScriptSdkVersion version)
      The ADOT Lambda layer for JavaScript SDK.

      Parameters:
      version - The version of the Lambda layer to use. This parameter is required.
    • fromJavaSdkLayerVersion

      @Stability(Stable) @NotNull public static AdotLayerVersion fromJavaSdkLayerVersion(@NotNull AdotLambdaLayerJavaSdkVersion version)
      The ADOT Lambda layer for Java SDK.

      Parameters:
      version - The version of the Lambda layer to use. This parameter is required.
    • fromPythonSdkLayerVersion

      @Stability(Stable) @NotNull public static AdotLayerVersion fromPythonSdkLayerVersion(@NotNull AdotLambdaLayerPythonSdkVersion version)
      The ADOT Lambda layer for Python SDK.

      Parameters:
      version - The version of the Lambda layer to use. This parameter is required.