npm.io
0.1.0 • Published 10 years ago

apigateway-sdk

Licence
MIT
Version
0.1.0
Deps
2
Vulns
1
Weekly
0

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

Keywords