class LambdaInsightsVersion
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.Lambda.LambdaInsightsVersion |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awslambda#LambdaInsightsVersion |
Java | software.amazon.awscdk.services.lambda.LambdaInsightsVersion |
Python | aws_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
Name | Type | Description |
---|---|---|
layer | string | The arn of the Lambda Insights extension. |
static VERSION_1_0_119_0 | Lambda | Version 1.0.119.0. |
static VERSION_1_0_135_0 | Lambda | Version 1.0.135.0. |
static VERSION_1_0_143_0 | Lambda | Version 1.0.143.0. |
static VERSION_1_0_178_0 | Lambda | Version 1.0.178.0. |
static VERSION_1_0_229_0 | Lambda | Version 1.0.229.0. |
static VERSION_1_0_54_0 | Lambda | Version 1.0.54.0. |
static VERSION_1_0_86_0 | Lambda | Version 1.0.86.0. |
static VERSION_1_0_89_0 | Lambda | Version 1.0.89.0. |
static VERSION_1_0_98_0 | Lambda | Version 1.0.98.0. |
layerVersionArn
Type:
string
The arn of the Lambda Insights extension.
static VERSION_1_0_119_0
Type:
Lambda
Version 1.0.119.0.
static VERSION_1_0_135_0
Type:
Lambda
Version 1.0.135.0.
static VERSION_1_0_143_0
Type:
Lambda
Version 1.0.143.0.
static VERSION_1_0_178_0
Type:
Lambda
Version 1.0.178.0.
static VERSION_1_0_229_0
Type:
Lambda
Version 1.0.229.0.
static VERSION_1_0_54_0
Type:
Lambda
Version 1.0.54.0.
static VERSION_1_0_86_0
Type:
Lambda
Version 1.0.86.0.
static VERSION_1_0_89_0
Type:
Lambda
Version 1.0.89.0.
static VERSION_1_0_98_0
Type:
Lambda
Version 1.0.98.0.
Methods
Name | Description |
---|---|
static from | Use the insights extension associated with the provided ARN. |
InsightVersionArn(arn)
static frompublic static fromInsightVersionArn(arn: string): LambdaInsightsVersion
Parameters
- arn
string
Returns
Use the insights extension associated with the provided ARN.
Make sure the ARN is associated with same region as your function