How to use the aws-api-gateway-client.default function in aws-api-gateway-client

To help you get started, we’ve selected a few aws-api-gateway-client examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github AnomalyInnovations / aws-api-gateway-cli-test / index.js View on Github external
#!/usr/bin/env node

var packageJson = require("./package.json");

var AWS = require("aws-sdk");
var AWSCognito = require("amazon-cognito-identity-js");
var apigClientFactory = require("aws-api-gateway-client").default;
var WindowMock = require("window-mock").default;

global.window = { localStorage: new WindowMock().localStorage };
global.navigator = function() {
  return null;
};

var argv = require("yargs")
  .option("username", {
    describe: "Username of the user",
    demandOption: true,
    string: true
  })
  .option("password", {
    describe: "Password of the user",
    demandOption: true
github Coalfire-Research / npk / terraform-selfhost / compute-node / hashcat_wrapper.js View on Github external
/*jshint esversion: 6 */
/*jshint node: true */

"use strict";

var fs = require('fs');
var os = require('os');
var aws = require('aws-sdk');
var pty = require('node-pty');
var apiClientFactory = require('aws-api-gateway-client').default;

var buffer = "";
var retrigger = "";
var ptyProcess = {};
var credentialsReady = 0;

var region = fs.readFileSync('/root/region', 'ascii').trim();
var manifest = JSON.parse(fs.readFileSync('/root/manifest.json'));
var keyspace = parseInt(fs.readFileSync('/root/keyspace'));
var apigateway = fs.readFileSync('/root/apigateway', 'ascii').trim();
var manifestpath = fs.readFileSync('/root/manifestpath', 'ascii').trim();
var instance_id = fs.readFileSync('/root/instance_id', 'ascii').trim();
var instance_count = parseInt(fs.readFileSync('/root/instance_count'));
var instance_number = parseInt(fs.readFileSync('/root/instance_number'));

var apiClient = null;

aws-api-gateway-client

A module for AWS API Gateway client

MIT
Latest version published 4 years ago

Package Health Score

47 / 100
Full package analysis