1 | import { Construct } from 'constructs';
|
2 | import { IFunction } from './function-base';
|
3 | /**
|
4 | * Config returned from {@link LambdaInsightsVersion._bind}
|
5 | */
|
6 | interface InsightsBindConfig {
|
7 | /**
|
8 | * ARN of the Lambda Insights Layer Version
|
9 | */
|
10 | readonly arn: string;
|
11 | }
|
12 | /**
|
13 | * Version of CloudWatch Lambda Insights
|
14 | */
|
15 | export 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 | * Version 1.0.135.0
|
38 | */
|
39 | static readonly VERSION_1_0_135_0: LambdaInsightsVersion;
|
40 | /**
|
41 | * Use the insights extension associated with the provided ARN. Make sure the ARN is associated
|
42 | * with same region as your function
|
43 | *
|
44 | * @see https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Lambda-Insights-extension-versions.html
|
45 | */
|
46 | static fromInsightVersionArn(arn: string): LambdaInsightsVersion;
|
47 | private static fromInsightsVersion;
|
48 | /**
|
49 | * The arn of the Lambda Insights extension
|
50 | */
|
51 | readonly layerVersionArn: string;
|
52 | /**
|
53 | * Returns the arn of the Lambda Insights extension based on the
|
54 | * Lambda architecture
|
55 | * @internal
|
56 | */
|
57 | abstract _bind(_scope: Construct, _function: IFunction): InsightsBindConfig;
|
58 | }
|
59 | export {};
|