aws-cdk-lib.aws_lambda.LambdaInsightsVersion

class LambdaInsightsVersion

LanguageType name
.NETAmazon.CDK.AWS.Lambda.LambdaInsightsVersion
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awslambda#LambdaInsightsVersion
Javasoftware.amazon.awscdk.services.lambda.LambdaInsightsVersion
Pythonaws_cdk.aws_lambda.LambdaInsightsVersion
TypeScript (source)aws-cdk-lib » aws_lambda » LambdaInsightsVersion

Version of CloudWatch Lambda Insights.

Example

const layerArn = 'arn:aws:lambda:us-east-1:580247275435:layer:LambdaInsightsExtension:14';
new lambda.Function(this, 'MyFunction', {
  runtime: lambda.Runtime.NODEJS_18_X,
  handler: 'index.handler',
  code: lambda.Code.fromAsset(path.join(__dirname, 'lambda-handler')),
  insightsVersion: lambda.LambdaInsightsVersion.fromInsightVersionArn(layerArn),
});

Initializer

new LambdaInsightsVersion()

Properties

NameTypeDescription
layerVersionArnstringThe arn of the Lambda Insights extension.
static VERSION_1_0_119_0LambdaInsightsVersionVersion 1.0.119.0.
static VERSION_1_0_135_0LambdaInsightsVersionVersion 1.0.135.0.
static VERSION_1_0_143_0LambdaInsightsVersionVersion 1.0.143.0.
static VERSION_1_0_178_0LambdaInsightsVersionVersion 1.0.178.0.
static VERSION_1_0_229_0LambdaInsightsVersionVersion 1.0.229.0.
static VERSION_1_0_54_0LambdaInsightsVersionVersion 1.0.54.0.
static VERSION_1_0_86_0LambdaInsightsVersionVersion 1.0.86.0.
static VERSION_1_0_89_0LambdaInsightsVersionVersion 1.0.89.0.
static VERSION_1_0_98_0LambdaInsightsVersionVersion 1.0.98.0.

layerVersionArn

Type: string

The arn of the Lambda Insights extension.


static VERSION_1_0_119_0

Type: LambdaInsightsVersion

Version 1.0.119.0.


static VERSION_1_0_135_0

Type: LambdaInsightsVersion

Version 1.0.135.0.


static VERSION_1_0_143_0

Type: LambdaInsightsVersion

Version 1.0.143.0.


static VERSION_1_0_178_0

Type: LambdaInsightsVersion

Version 1.0.178.0.


static VERSION_1_0_229_0

Type: LambdaInsightsVersion

Version 1.0.229.0.


static VERSION_1_0_54_0

Type: LambdaInsightsVersion

Version 1.0.54.0.


static VERSION_1_0_86_0

Type: LambdaInsightsVersion

Version 1.0.86.0.


static VERSION_1_0_89_0

Type: LambdaInsightsVersion

Version 1.0.89.0.


static VERSION_1_0_98_0

Type: LambdaInsightsVersion

Version 1.0.98.0.

Methods

NameDescription
static fromInsightVersionArn(arn)Use the insights extension associated with the provided ARN.

static fromInsightVersionArn(arn)

public static fromInsightVersionArn(arn: string): LambdaInsightsVersion

Parameters

  • arn string

Returns

  • LambdaInsightsVersion

Use the insights extension associated with the provided ARN.

Make sure the ARN is associated with same region as your function

See also: https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Lambda-Insights-extension-versions.html