Last active
March 25, 2021 03:54
-
-
Save shaykav/a0f654bb333fc5a8e9aab8cbf4c29c3f to your computer and use it in GitHub Desktop.
This file contains 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
import { ApiGatewayManagementApi } from 'aws-sdk'; | |
export const createGateway = (requestContext: any) => | |
new ApiGatewayManagementApi({ | |
apiVersion: 'latest', | |
endpoint: `https://${requestContext.apiId} | |
.execute-api.us-east-1.amazonaws.com/${requestContext.stage}` | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment