https://github.com/guerrerocarlos/aws-apigatewaymanagementapi
AWS Lambda's aws-sdk patch for ApiGatewayManagementApi
https://github.com/guerrerocarlos/aws-apigatewaymanagementapi
Last synced: about 1 month ago
JSON representation
AWS Lambda's aws-sdk patch for ApiGatewayManagementApi
- Host: GitHub
- URL: https://github.com/guerrerocarlos/aws-apigatewaymanagementapi
- Owner: guerrerocarlos
- Created: 2019-04-29T16:24:10.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2019-04-29T17:01:26.000Z (about 6 years ago)
- Last Synced: 2025-04-17T17:58:41.127Z (about 2 months ago)
- Language: JavaScript
- Homepage:
- Size: 2.93 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# AWS.ApiGatewayManagementApi()
This module adds the missing `ApiGatewayManagementApi()` constructor to `aws-sdk` [version 2.290.0](https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html) included by current **AWS Lambda** default container so that the [Amazon API Gateway Management API](https://docs.aws.amazon.com/AWSJavaScriptSDK/latest/AWS/ApiGatewayManagementApi.html) service exposed without having to include the full [`aws-sdk`](https://www.npmjs.com/package/aws-sdk) module in the lambda build.
# How to use
```js
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.
# Disclosure
The implementation is basically a Copy & Paste from [aws-sdk](https://github.com/aws/aws-sdk-js)