Class AdotLayerVersion
An ADOT Lambda layer version that's specific to a lambda layer type and an architecture.
Inheritance
Namespace: Amazon.CDK.AWS.Lambda
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public abstract class AdotLayerVersion : DeputyBase
Syntax (vb)
Public MustInherit Class AdotLayerVersion
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
AdotLayerVersion() | |
AdotLayerVersion(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
AdotLayerVersion(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
Methods
FromGenericLayerVersion(AdotLambdaLayerGenericVersion) | The ADOT Lambda layer for generic use cases. |
FromJavaAutoInstrumentationLayerVersion(AdotLambdaLayerJavaAutoInstrumentationVersion) | The ADOT Lambda layer for Java auto instrumentation. |
FromJavaScriptSdkLayerVersion(AdotLambdaLayerJavaScriptSdkVersion) | The ADOT Lambda layer for JavaScript SDK. |
FromJavaSdkLayerVersion(AdotLambdaLayerJavaSdkVersion) | The ADOT Lambda layer for Java SDK. |
FromPythonSdkLayerVersion(AdotLambdaLayerPythonSdkVersion) | The ADOT Lambda layer for Python SDK. |
Constructors
AdotLayerVersion()
protected AdotLayerVersion()
AdotLayerVersion(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected AdotLayerVersion(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
AdotLayerVersion(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected AdotLayerVersion(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
Methods
FromGenericLayerVersion(AdotLambdaLayerGenericVersion)
The ADOT Lambda layer for generic use cases.
public static AdotLayerVersion FromGenericLayerVersion(AdotLambdaLayerGenericVersion version)
Parameters
- version AdotLambdaLayerGenericVersion
The version of the Lambda layer to use.
Returns
FromJavaAutoInstrumentationLayerVersion(AdotLambdaLayerJavaAutoInstrumentationVersion)
The ADOT Lambda layer for Java auto instrumentation.
public static AdotLayerVersion FromJavaAutoInstrumentationLayerVersion(AdotLambdaLayerJavaAutoInstrumentationVersion version)
Parameters
- version AdotLambdaLayerJavaAutoInstrumentationVersion
The version of the Lambda layer to use.
Returns
FromJavaScriptSdkLayerVersion(AdotLambdaLayerJavaScriptSdkVersion)
The ADOT Lambda layer for JavaScript SDK.
public static AdotLayerVersion FromJavaScriptSdkLayerVersion(AdotLambdaLayerJavaScriptSdkVersion version)
Parameters
- version AdotLambdaLayerJavaScriptSdkVersion
The version of the Lambda layer to use.
Returns
FromJavaSdkLayerVersion(AdotLambdaLayerJavaSdkVersion)
The ADOT Lambda layer for Java SDK.
public static AdotLayerVersion FromJavaSdkLayerVersion(AdotLambdaLayerJavaSdkVersion version)
Parameters
- version AdotLambdaLayerJavaSdkVersion
The version of the Lambda layer to use.
Returns
FromPythonSdkLayerVersion(AdotLambdaLayerPythonSdkVersion)
The ADOT Lambda layer for Python SDK.
public static AdotLayerVersion FromPythonSdkLayerVersion(AdotLambdaLayerPythonSdkVersion version)
Parameters
- version AdotLambdaLayerPythonSdkVersion
The version of the Lambda layer to use.
Returns