typescript-aws-apigateway-helper
TypeScript icon, indicating that this package has built-in type declarations

2.0.49 • Public • Published

typescript-aws-apigateway-helper

Typescript helper functions for AWS API Gateway

CI/CD codecov NPM Version Downloads

Install

npm install typescript-aws-apigateway-helper@latest

Usage

Default - running in Lambda in your own account

const logger = new Logger(LogLevel.Trace);

const helper = new APIGatewayHelper(logger);

const response = await helper.CreateApiKeyAsync(
  'apiKey',
  'description',
  'value',
);

Running in separate account or not in Lambda

import * as APIGateway from '@aws-sdk/client-api-gateway';

const logger = new Logger(LogLevel.Trace);

const options: APIGateway.APIGatewayClientConfig = {
  accessKeyId: '{access_key}',
  secretAccessKey: '{secret_key}',
  region: 'us-east-1',
};

const repository = new APIGateway.APIGateway(options);

const helper = new APIGatewayHelper(logger, repository);

const response = await helper.CreateApiKeyAsync(
  'apiKey',
  'description',
  'value',
);

Notes

If no options are supplied, will default to us-east-1 as the region

Development

Clone the latest and run

npm run prep

to install packages and prep the git hooks

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
2.0.492latest

Version History

VersionDownloads (Last 7 Days)Published
2.0.492
2.0.480
2.0.471
2.0.461
2.0.452
2.0.441
2.0.431
2.0.421
2.0.411
2.0.401
2.0.391
2.0.311
2.0.151
1.0.2001
2.0.142
2.0.20
1.0.1781
1.0.1651
1.0.1381
1.0.1171
1.0.1041
1.0.891
1.0.731
1.0.511
1.0.491
1.0.471
1.0.361
1.0.351
1.0.272
1.0.252
1.0.241
1.0.231
1.0.211
1.0.162
1.0.151
1.0.140
1.0.101
1.0.61
1.0.41
1.0.30
1.0.11

Package Sidebar

Install

npm i typescript-aws-apigateway-helper

Weekly Downloads

42

Version

2.0.49

License

MIT

Unpacked Size

48.2 kB

Total Files

21

Last publish

Collaborators

  • kbrashears5