apigateway-sdk

0.1.0 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i apigateway-sdk

Weekly Downloads

1

Version

0.1.0

License

MIT

Last publish

Collaborators

  • samverschueren