@@ -10,56 +10,56 @@ export interface PrivateLambdaApiGatewayProps {
10
10
/**
11
11
* Lambda function to integrate with the API Gateway.
12
12
*/
13
- lambdaFunction : lambda . IFunction ;
13
+ readonly lambdaFunction : lambda . IFunction ;
14
14
15
15
/**
16
16
* Lambda integration options for the API Gateway.
17
17
*/
18
- lambdaIntegrationOptions ?: apigateway . LambdaIntegrationOptions ;
18
+ readonly lambdaIntegrationOptions ?: apigateway . LambdaIntegrationOptions ;
19
19
20
20
/**
21
21
* VPC to create the API Gateway in.
22
22
*/
23
- vpc : ec2 . IVpc ;
23
+ readonly vpc : ec2 . IVpc ;
24
24
25
25
/**
26
26
* Whether to create a VPC endpoint for the API Gateway.
27
27
*
28
28
* @default - true
29
29
*/
30
- createVpcEndpoint ?: boolean ;
30
+ readonly createVpcEndpoint ?: boolean ;
31
31
32
32
/**
33
33
* The subnets in which to create a VPC endpoint network interface. At most one per availability zone.
34
34
35
35
*/
36
- vpcEndpointSubnetSelection ?: ec2 . SubnetSelection ;
36
+ readonly vpcEndpointSubnetSelection ?: ec2 . SubnetSelection ;
37
37
38
38
/**
39
39
* Name for the API Gateway.
40
40
*
41
41
* @default - `${scope.node.id}-private-api`
42
42
*/
43
- restApiName ?: string ;
43
+ readonly restApiName ?: string ;
44
44
45
45
/**
46
46
* Description for the API Gateway.
47
47
*
48
48
* @default - "Private REST API Gateway"
49
49
*/
50
- description ?: string ;
50
+ readonly description ?: string ;
51
51
52
52
/**
53
53
* Deploy options for the API Gateway.
54
54
*/
55
- deployOptions ?: apigateway . StageOptions ;
55
+ readonly deployOptions ?: apigateway . StageOptions ;
56
56
57
57
/**
58
58
* Policy for the API Gateway.
59
59
*
60
60
* @default - Policy that allows any principal with the same VPC to invoke the API.
61
61
*/
62
- policy ?: iam . PolicyDocument ;
62
+ readonly policy ?: iam . PolicyDocument ;
63
63
}
64
64
65
65
export class PrivateLambdaApiGateway extends Construct {
0 commit comments