@@ -10,56 +10,56 @@ export interface PrivateLambdaApiGatewayProps {
1010 /**
1111 * Lambda function to integrate with the API Gateway.
1212 */
13- lambdaFunction : lambda . IFunction ;
13+ readonly lambdaFunction : lambda . IFunction ;
1414
1515 /**
1616 * Lambda integration options for the API Gateway.
1717 */
18- lambdaIntegrationOptions ?: apigateway . LambdaIntegrationOptions ;
18+ readonly lambdaIntegrationOptions ?: apigateway . LambdaIntegrationOptions ;
1919
2020 /**
2121 * VPC to create the API Gateway in.
2222 */
23- vpc : ec2 . IVpc ;
23+ readonly vpc : ec2 . IVpc ;
2424
2525 /**
2626 * Whether to create a VPC endpoint for the API Gateway.
2727 *
2828 * @default - true
2929 */
30- createVpcEndpoint ?: boolean ;
30+ readonly createVpcEndpoint ?: boolean ;
3131
3232 /**
3333 * The subnets in which to create a VPC endpoint network interface. At most one per availability zone.
3434
3535 */
36- vpcEndpointSubnetSelection ?: ec2 . SubnetSelection ;
36+ readonly vpcEndpointSubnetSelection ?: ec2 . SubnetSelection ;
3737
3838 /**
3939 * Name for the API Gateway.
4040 *
4141 * @default - `${scope.node.id}-private-api`
4242 */
43- restApiName ?: string ;
43+ readonly restApiName ?: string ;
4444
4545 /**
4646 * Description for the API Gateway.
4747 *
4848 * @default - "Private REST API Gateway"
4949 */
50- description ?: string ;
50+ readonly description ?: string ;
5151
5252 /**
5353 * Deploy options for the API Gateway.
5454 */
55- deployOptions ?: apigateway . StageOptions ;
55+ readonly deployOptions ?: apigateway . StageOptions ;
5656
5757 /**
5858 * Policy for the API Gateway.
5959 *
6060 * @default - Policy that allows any principal with the same VPC to invoke the API.
6161 */
62- policy ?: iam . PolicyDocument ;
62+ readonly policy ?: iam . PolicyDocument ;
6363}
6464
6565export class PrivateLambdaApiGateway extends Construct {
0 commit comments