@@ -8,6 +8,31 @@ 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 LambdaSource = {
27
+ runtime: lamb .Runtime ;
28
+ source: ExistingDirectory | ExistingLambda | NewFromCode ;
29
+ };
30
+
31
+ // @public (undocumented)
32
+ export type NewFromCode = {
33
+ code: string ;
34
+ };
35
+
11
36
// @public
12
37
export class RestApiConstruct extends Construct {
13
38
constructor (scope : Construct , id : string , props : RestApiConstructProps );
@@ -21,9 +46,12 @@ export type RestApiConstructProps = {
21
46
apiProps: RestApiPathConfig [];
22
47
};
23
48
24
- // Warnings were encountered during analysis:
25
- //
26
- // src/types.ts:16:3 - (ae-forgotten-export) The symbol "RestApiPathConfig" needs to be exported by the entry point index.d.ts
49
+ // @public (undocumented)
50
+ export type RestApiPathConfig = {
51
+ path: string ;
52
+ routes: HttpMethod [];
53
+ lambdaEntry: LambdaSource ;
54
+ };
27
55
28
56
// (No @packageDocumentation comment for this package)
29
57
0 commit comments