UNPKG

1.6 kBTypeScriptView Raw
1import { Construct } from 'constructs';
2import { IFunction } from './function-base';
3/**
4 * Config returned from {@link LambdaInsightsVersion._bind}
5 */
6interface InsightsBindConfig {
7 /**
8 * ARN of the Lambda Insights Layer Version
9 */
10 readonly arn: string;
11}
12/**
13 * Version of CloudWatch Lambda Insights
14 */
15export declare abstract class LambdaInsightsVersion {
16 /**
17 * Version 1.0.54.0
18 */
19 static readonly VERSION_1_0_54_0: LambdaInsightsVersion;
20 /**
21 * Version 1.0.86.0
22 */
23 static readonly VERSION_1_0_86_0: LambdaInsightsVersion;
24 /**
25 * Version 1.0.89.0
26 */
27 static readonly VERSION_1_0_89_0: LambdaInsightsVersion;
28 /**
29 * Version 1.0.98.0
30 */
31 static readonly VERSION_1_0_98_0: LambdaInsightsVersion;
32 /**
33 * Version 1.0.119.0
34 */
35 static readonly VERSION_1_0_119_0: LambdaInsightsVersion;
36 /**
37 * Use the insights extension associated with the provided ARN. Make sure the ARN is associated
38 * with same region as your function
39 *
40 * @see https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Lambda-Insights-extension-versions.html
41 */
42 static fromInsightVersionArn(arn: string): LambdaInsightsVersion;
43 private static fromInsightsVersion;
44 /**
45 * The arn of the Lambda Insights extension
46 */
47 readonly layerVersionArn: string;
48 /**
49 * Returns the arn of the Lambda Insights extension based on the
50 * Lambda architecture
51 * @internal
52 */
53 abstract _bind(_scope: Construct, _function: IFunction): InsightsBindConfig;
54}
55export {};