@Generated(value="jsii-pacmak/1.77.0 (build 3e5fa88)", date="2023-03-14T15:05:01.427Z") @Stability(value=Stable) public class AdotLambdaLayerJavaScriptSdkVersion extends software.amazon.jsii.JsiiObject
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();
| Modifier and Type | Field and Description |
|---|---|
static AdotLambdaLayerJavaScriptSdkVersion |
LATEST
The latest layer version available in this CDK version.
|
static AdotLambdaLayerJavaScriptSdkVersion |
V1_7_0
Version 1.7.0.
|
| Modifier | Constructor and Description |
|---|---|
protected |
AdotLambdaLayerJavaScriptSdkVersion(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
AdotLambdaLayerJavaScriptSdkVersion(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
protected String |
getLayerVersion() |
String |
layerArn(software.constructs.IConstruct scope,
Architecture architecture)
The ARN of the Lambda layer.
|
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet@Stability(value=Stable) public static final AdotLambdaLayerJavaScriptSdkVersion LATEST
New versions could introduce incompatible changes. Make sure to test them before deploying to production.
@Stability(value=Stable) public static final AdotLambdaLayerJavaScriptSdkVersion V1_7_0
protected AdotLambdaLayerJavaScriptSdkVersion(software.amazon.jsii.JsiiObjectRef objRef)
protected AdotLambdaLayerJavaScriptSdkVersion(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable) @NotNull public String layerArn(@NotNull software.constructs.IConstruct scope, @NotNull Architecture architecture)
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.@Stability(value=Stable) @NotNull protected String getLayerVersion()
Copyright © 2023. All rights reserved.