aws-apigatewaymanagementapi

Implement AWS.ApiGatewayManagementApi on AWS Lambda

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
aws-apigatewaymanagementapi
200.1.05 years ago5 years agoMinified + gzip package size for aws-apigatewaymanagementapi in KB

Readme

AWS.ApiGatewayManagementApi()
This module adds the missing ApiGatewayManagementApi() constructor to aws-sdk version 2.290.0 included by current AWS Lambda default container so that the Amazon API Gateway Management API service exposed without having to include the full aws-sdk module in the lambda build.
How to use
const ensureApiGatewayManagementApi = require('aws-apigatewaymanagementapi')
const AWS = require('aws-sdk');

ensureApiGatewayManagementApi(AWS) 

// Done, you can now use it, for example:
const managementApi = new AWS.ApiGatewayManagementApi({
  apiVersion: '2018-11-29',
});
Forward compatible
If the local aws-sdk includes ApiGatewayManagementApi then this modules does nothing.