Skip to content

Commit

Permalink
Feat: Add Method and Lambda Integration for "/" (#8)
Browse files Browse the repository at this point in the history
* feat: root method integration
  • Loading branch information
ThunderSon authored and DaveYesland committed Aug 23, 2019
1 parent 1743c37 commit 9676eac
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion IPRotate.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,26 @@ def startAPIGateway(self):
parentId=get_resource_response['items'][0]['id'],
pathPart='{proxy+}'
)

self.awsclient.put_method(
restApiId=self.create_api_response['id'],
resourceId=get_resource_response['items'][0]['id'],
httpMethod='ANY',
authorizationType='NONE'
)

self.awsclient.put_integration(
restApiId=self.create_api_response['id'],
resourceId=get_resource_response['items'][0]['id'],
type='HTTP_PROXY',
httpMethod='ANY',
integrationHttpMethod='ANY',
uri=self.getTargetProtocol()+'://'+self.target_host.text + '/',
connectionType='INTERNET'
)

self.awsclient.put_method(
restApiId=self.create_api_response['id'],
restApiId=self.create_api_response['id'],
resourceId=create_resource_response['id'],
httpMethod='ANY',
authorizationType='NONE',
Expand Down

0 comments on commit 9676eac

Please sign in to comment.