@@ -8,14 +8,49 @@ import * as apiGateway from 'aws-cdk-lib/aws-apigateway';
8
8
import { Construct } from ' constructs' ;
9
9
import * as lamb from ' aws-cdk-lib/aws-lambda' ;
10
10
11
+ // @public (undocumented)
12
+ export type ExistingDirectory = {
13
+ path: string ;
14
+ };
15
+
16
+ // @public (undocumented)
17
+ export type ExistingLambda = {
18
+ id: string ;
19
+ name: string ;
20
+ };
21
+
22
+ // @public (undocumented)
23
+ export type HttpMethod = ' GET' | ' POST' | ' PUT' | ' DELETE' | ' PATCH' | ' HEAD' | ' OPTIONS' ;
24
+
25
+ // @public (undocumented)
26
+ export type NewFromCode = {
27
+ code: string ;
28
+ };
29
+
11
30
// @public
12
31
export class RestApiConstruct extends Construct {
13
- // Warning: (ae-forgotten-export) The symbol "RestApiConstructProps" needs to be exported by the entry point index.d.ts
14
32
constructor (scope : Construct , id : string , props : RestApiConstructProps );
15
33
// (undocumented)
16
34
readonly api: apiGateway .RestApi ;
17
35
}
18
36
37
+ // @public (undocumented)
38
+ export type RestApiConstructProps = {
39
+ apiName: string ;
40
+ apiProps: RestApiPathConfig [];
41
+ };
42
+
43
+ // @public (undocumented)
44
+ export type RestApiPathConfig = {
45
+ path: string ;
46
+ routes: HttpMethod [];
47
+ lambdaEntry: LambdaSource ;
48
+ };
49
+
50
+ // Warnings were encountered during analysis:
51
+ //
52
+ // src/types.ts:22:3 - (ae-forgotten-export) The symbol "LambdaSource" needs to be exported by the entry point index.d.ts
53
+
19
54
// (No @packageDocumentation comment for this package)
20
55
21
56
```
0 commit comments