Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(aws-apigateway): "LambdaRestApi" and "addProxy" routes #867

Merged
merged 1 commit into from
Oct 8, 2018

Commits on Oct 6, 2018

  1. feat(aws-apigateway): "LambdaRestApi" and "addProxy" routes

    `LambdaRestApi` is a higher level construct for defining 
    Lambda-backed REST APIs:
    
        const backend = new lambda.Function(...);
    	const api = new apigw.LambdaRestApi({
          handler: backend,
          proxyPath: '/'
        });
    
    `resource.addProxy` allows mounting a {proxy+} route
    on a path, including an "ANY" method integration:
    
        const api = new apigw.RestApi(this, 'api');
        api.root.addProxy({
          defaultIntegration: new apigw.HttpIntegration('http://foo/bar')
        });
    Elad Ben-Israel committed Oct 6, 2018
    Configuration menu
    Copy the full SHA
    ac2482e View commit details
    Browse the repository at this point in the history