class LambdaInsightsVersion
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.Lambda.LambdaInsightsVersion |
![]() | github.com/aws/aws-cdk-go/awscdk/v2/awslambda#LambdaInsightsVersion |
![]() | software.amazon.awscdk.services.lambda.LambdaInsightsVersion |
![]() | aws_cdk.aws_lambda.LambdaInsightsVersion |
![]() | 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_273_0 | Lambda | Version 1.0.273.0. |
static VERSION_1_0_275_0 | Lambda | Version 1.0.275.0. |
static VERSION_1_0_295_0 | Lambda | Version 1.0.295.0. |
static VERSION_1_0_317_0 | Lambda | Version 1.0.317.0. |
static VERSION_1_0_333_0 | Lambda | Version 1.0.333.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_273_0
Type:
Lambda
Version 1.0.273.0.
static VERSION_1_0_275_0
Type:
Lambda
Version 1.0.275.0.
static VERSION_1_0_295_0
Type:
Lambda
Version 1.0.295.0.
static VERSION_1_0_317_0
Type:
Lambda
Version 1.0.317.0.
static VERSION_1_0_333_0
Type:
Lambda
Version 1.0.333.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. |
static fromInsightVersionArn(arn)
public 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