Skip to content

Instantly share code, notes, and snippets.

@brachi-wernick
Last active March 8, 2018 13:36
Show Gist options
  • Save brachi-wernick/eb6d8dc36525026ee960fbd1bdca514f to your computer and use it in GitHub Desktop.
Save brachi-wernick/eb6d8dc36525026ee960fbd1bdca514f to your computer and use it in GitHub Desktop.
gateway.putIntegration(new PutIntegrationRequest()
.withCredentials(lambdaExecutionRole)
.withIntegrationHttpMethod("POST")
.withHttpMethod("POST")
.withType(IntegrationType.AWS)
.withRestApiId(targetRestApiId)
.withResourceId(rootResourceId)
.withPassthroughBehavior("WHEN_NO_MATCH")
.withUri(String.format(URI_TEMPLATE, targetFunction.getFunctionArn())));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment