2.0.49 • Published 2 years ago

typescript-aws-apigateway-helper v2.0.49

Weekly downloads
53
License
MIT
Repository
github
Last release
2 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

2 years ago

2.0.48

2 years ago

2.0.47

2 years ago

2.0.46

3 years ago

2.0.45

3 years ago

2.0.44

3 years ago

2.0.42

3 years ago

2.0.43

3 years ago

2.0.40

3 years ago

2.0.41

3 years ago

2.0.31

3 years ago

2.0.39

3 years ago

1.0.200

3 years ago

2.0.15

3 years ago

2.0.14

3 years ago

2.0.2

3 years ago

1.0.178

3 years ago

1.0.165

3 years ago

1.0.138

4 years ago

1.0.117

4 years ago

1.0.104

4 years ago

1.0.89

4 years ago

1.0.73

4 years ago

1.0.51

4 years ago

1.0.49

4 years ago

1.0.47

4 years ago

1.0.36

4 years ago

1.0.35

4 years ago

1.0.27

4 years ago

1.0.16

4 years ago

1.0.21

4 years ago

1.0.15

4 years ago

1.0.25

4 years ago

1.0.14

4 years ago

1.0.24

4 years ago

1.0.23

4 years ago

1.0.10

4 years ago

1.0.6

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.1

4 years ago