apigateway-sdk

Retrieve the JavaScript AWS API Gateway SDK.

Usage no npm install needed!

<script type="module">
  import apigatewaySdk from 'https://cdn.skypack.dev/apigateway-sdk';
</script>

README

apigateway-sdk Build Status

Retrieve the JavaScript AWS API Gateway SDK.

Install

$ npm install --save apigateway-sdk

Usage

const apiSdk = require('apigateway-sdk');

apiSdk.config.update({accessKeyId: 'akid', secretAccessKey: 'secret'});

apiSdk({id: '123', stage: 'v1'}).then(data => {
    fs.writeFileSync('apigateway.zip', data);
});

API

apiSdk(options)

Returns a promise for the Buffer.

options

id

Type: string

The API Gateway ID of which you want to download the SDK for.

stage

Type: string

The stage name of which you want to download the SDK for.

apiSdk.config

Returns the aws-sdk config object in order to configure the AWS SDK.

License

MIT © Sam Verschueren