Last active
March 8, 2018 13:36
-
-
Save brachi-wernick/eb6d8dc36525026ee960fbd1bdca514f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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