private createApigwVpcEndpoint()

in lib/networking.ts [36:53]


    private createApigwVpcEndpoint(): ec2.VpcEndpoint {
        let vpce = new ec2.InterfaceVpcEndpoint(this, 'ApigwVpce', {
            service: {
                name: `com.amazonaws.${this.props.region}.execute-api`,
                port: 443
            },
            vpc: this.vpc,
            open: true,
            privateDnsEnabled: true
        });

        let vpceId = vpce.node.defaultChild as ec2.CfnVPCEndpoint
        vpceId.overrideLogicalId('ApigwVpce')

        this.output('ApigwVpceId', vpce.vpcEndpointId);

        return vpce;
    }