How to use the ApiGatewayManagementApi function from aws-sdk
Find comprehensive JavaScript aws-sdk.ApiGatewayManagementApi code examples handpicked from public code repositorys.
7 8 9 10 11 12 13 14 15 16 17 18
'use strict'; const AWS = require('aws-sdk'); const DynamoDB = new AWS.DynamoDB.DocumentClient(); const SSM = new AWS.SSM(); const APIGatewayManagement = new AWS.ApiGatewayManagementApi({apiVersion: '2018-11-29'}); const readSessionFromSSM = function (callback) { let param = { "Name": process.env.SESSION_PARAMETER
7
22
0
48 49 50 51 52 53 54 55 56
// this.client.on('ready', () => console.log('REDIS Ready')); // this.client.on('end', () => console.log('REDIS ended')); this.client = new MemoryDB() this.gateway = new AWS.ApiGatewayManagementApi({ endpoint: event.requestContext.domainName + '/' + event.requestContext.stage }) }
0
0
0
+ 3 other calls in file
86 87 88 89 90 91 92 93 94
connectionData = await ddb.scan({ TableName: TABLE_NAME, ProjectionExpression: 'connectionId' }).promise(); } catch (e) { return { statusCode: 500, body: e.stack }; } const apigwManagementApi = new AWS.ApiGatewayManagementApi({ apiVersion: '2018-11-29', endpoint: event.requestContext.domainName + '/' + event.requestContext.stage });
0
0
0
GitHub: rmc3408/aws
18 19 20 21 22 23 24 25 26 27
messages: messagesArray, }; await Dynamo.write(newRecord, tableName); const apiEndSend = new AWS.ApiGatewayManagementApi({ endpoint: `${domainName}/${stage}`, }); await apiEndSend
0
0
0
19 20 21 22 23 24 25 26 27 28 29
var apiGatewayManagementApi; let totalQuestions = new Array(); exports.handler = async (event) => { apiGatewayManagementApi = new AWS.ApiGatewayManagementApi( { apiVersion: '2018-11-29', endpoint: event.requestContext.domainName + '/' + event.requestContext.stage });
0
0
0
aws-sdk.S3 is the most popular function in aws-sdk (7245 examples)