2.0.49 • Published 3 years ago

typescript-aws-apigateway-helper v2.0.49

Weekly downloads
53
License
MIT
Repository
github
Last release
3 years ago

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

2.0.49

3 years ago

2.0.48

3 years ago

2.0.47

4 years ago

2.0.46

4 years ago

2.0.45

4 years ago

2.0.44

4 years ago

2.0.42

4 years ago

2.0.43

4 years ago

2.0.40

4 years ago

2.0.41

4 years ago

2.0.31

4 years ago

2.0.39

4 years ago

1.0.200

4 years ago

2.0.15

4 years ago

2.0.14

4 years ago

2.0.2

4 years ago

1.0.178

5 years ago

1.0.165

5 years ago

1.0.138

5 years ago

1.0.117

5 years ago

1.0.104

5 years ago

1.0.89

5 years ago

1.0.73

5 years ago

1.0.51

5 years ago

1.0.49

5 years ago

1.0.47

5 years ago

1.0.36

5 years ago

1.0.35

5 years ago

1.0.27

5 years ago

1.0.16

5 years ago

1.0.21

5 years ago

1.0.15

5 years ago

1.0.25

5 years ago

1.0.14

5 years ago

1.0.24

5 years ago

1.0.23

5 years ago

1.0.10

5 years ago

1.0.6

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.1

5 years ago