Class AdotLambdaLayerJavaScriptSdkVersion
The collection of versions of the ADOT Lambda Layer for JavaScript SDK.
Inheritance
Namespace: Amazon.CDK.AWS.Lambda
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class AdotLambdaLayerJavaScriptSdkVersion : DeputyBase
Syntax (vb)
Public Class AdotLambdaLayerJavaScriptSdkVersion
Inherits DeputyBase
Remarks
ExampleMetadata: infused
Examples
using Amazon.CDK.AWS.Lambda;
var fn = new Function(this, "MyFunction", new FunctionProps {
Runtime = Runtime.NODEJS_18_X,
Handler = "index.handler",
Code = Code.FromInline("exports.handler = function(event, ctx, cb) { return cb(null, \"hi\"); }"),
AdotInstrumentation = new AdotInstrumentationConfig {
LayerVersion = AdotLayerVersion.FromJavaScriptSdkLayerVersion(AdotLambdaLayerJavaScriptSdkVersion.LATEST),
ExecWrapper = AdotLambdaExecWrapper.REGULAR_HANDLER
}
});
Synopsis
Constructors
AdotLambdaLayerJavaScriptSdkVersion(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
AdotLambdaLayerJavaScriptSdkVersion(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
Properties
LATEST | The latest layer version available in this CDK version. |
LayerVersion | |
V1_15_0_1 | Version 1.15.0. |
V1_16_0 | Version 1.16.0. |
V1_17_1 | Version 1.17.1. |
V1_18_1 | Version 1.18.1. |
V1_7_0 | Version 1.7.0. |
Methods
LayerArn(IConstruct, Architecture) | The ARN of the Lambda layer. |
Constructors
AdotLambdaLayerJavaScriptSdkVersion(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected AdotLambdaLayerJavaScriptSdkVersion(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
AdotLambdaLayerJavaScriptSdkVersion(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected AdotLambdaLayerJavaScriptSdkVersion(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
Properties
LATEST
The latest layer version available in this CDK version.
public static AdotLambdaLayerJavaScriptSdkVersion LATEST { get; }
Property Value
AdotLambdaLayerJavaScriptSdkVersion
Remarks
New versions could introduce incompatible changes. Make sure to test them before deploying to production.
LayerVersion
protected virtual string LayerVersion { get; }
Property Value
System.String
V1_15_0_1
Version 1.15.0.
public static AdotLambdaLayerJavaScriptSdkVersion V1_15_0_1 { get; }
Property Value
AdotLambdaLayerJavaScriptSdkVersion
V1_16_0
Version 1.16.0.
public static AdotLambdaLayerJavaScriptSdkVersion V1_16_0 { get; }
Property Value
AdotLambdaLayerJavaScriptSdkVersion
V1_17_1
Version 1.17.1.
public static AdotLambdaLayerJavaScriptSdkVersion V1_17_1 { get; }
Property Value
AdotLambdaLayerJavaScriptSdkVersion
V1_18_1
Version 1.18.1.
public static AdotLambdaLayerJavaScriptSdkVersion V1_18_1 { get; }
Property Value
AdotLambdaLayerJavaScriptSdkVersion
V1_7_0
Version 1.7.0.
public static AdotLambdaLayerJavaScriptSdkVersion V1_7_0 { get; }
Property Value
AdotLambdaLayerJavaScriptSdkVersion
Methods
LayerArn(IConstruct, Architecture)
The ARN of the Lambda layer.
public virtual string LayerArn(IConstruct scope, Architecture architecture)
Parameters
- scope Constructs.IConstruct
The binding scope.
- architecture Architecture
The architecture of the Lambda layer (either X86_64 or ARM_64).
Returns
System.String