Skip to content

Instantly share code, notes, and snippets.

@shaykav
Last active March 25, 2021 03:54
Show Gist options
  • Save shaykav/a0f654bb333fc5a8e9aab8cbf4c29c3f to your computer and use it in GitHub Desktop.
Save shaykav/a0f654bb333fc5a8e9aab8cbf4c29c3f to your computer and use it in GitHub Desktop.
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