AWS swagger importer
$ npm install --save aws-swagger-import
const awsSwaggerImport = require('aws-swagger-import');
awsSwaggerImport('swagger.json', {name: 'foo', awsProfile: 'aws-profile'}).then(() => {
// done
});
Type: string
JSON swagger definition file.
Required
Type: string
Name of the API Gateway to import to.
Type: string
Alias or version of the lambda functions that should be invoked by the gateway.
Type: string
AWS Account ID that will be used in the swagger definition file when linking lambda functions.
Type: string
AWS Profile. The user related to the profile should have admin access to API Gateway.
Type: string
Default: us-west-1
AWS region.
Type: string
Default: ~/.aws/credentials
Filename to use when loading credentials.
- aws-swagger-cli - The CLI of this module
MIT © Sam Verschueren