Skip to content

Instantly share code, notes, and snippets.

@gregorypierce
Created August 12, 2020 18:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gregorypierce/337af82b095ba7239a0a8064c07479a2 to your computer and use it in GitHub Desktop.
Save gregorypierce/337af82b095ba7239a0a8064c07479a2 to your computer and use it in GitHub Desktop.
// create the API that the Lamnda function will be attached for
// setup as a regional api
//
this.api = new apigw.RestApi( this, "spec_restapi", {
restApiName: props.name,
deploy: true,
deployOptions: {
stageName: props.stageName,
tracingEnabled: true,
},
endpointTypes: [apigw.EndpointType.EDGE]
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment