in lib/apis.ts [36:54]
private createApi(type: string): apigateway.SpecRestApi {
let specAsset = new Asset(this, `${type}-asset`, {
path: `spec/${type}.yaml`,
});
let specTransformed = cdk.Fn.transform('AWS::Include', { 'Location': specAsset.s3ObjectUrl });
let api = new apigateway.SpecRestApi(this, type, {
apiDefinition: apigateway.ApiDefinition.fromInline(specTransformed),
endpointTypes: [apigateway.EndpointType.PRIVATE],
deployOptions: {
stageName: this.stageName
}
});
api.node.addDependency(this.props.networking.apigwVpce);
return api;
}