# aws-sdk-agent

> Create AWS SDK class with HTTP keep-alive

Latest version **1.1.0** (published 2019-03-28) · MIT license · 0 weekly downloads

## Install

```sh
npm install aws-sdk-agent
pnpm add aws-sdk-agent
yarn add aws-sdk-agent
bun add aws-sdk-agent
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.0 |
| Published | 2019-03-28 |
| First published | 2019-03-28 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 12.4 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| Author | Hidetaka Okamoto |
| Maintainers | hideokamoto |
| Keywords | aws |

## Links

- npm: https://www.npmjs.com/package/aws-sdk-agent
- npm.io page: https://npm.io/package/aws-sdk-agent

## Dependencies (1)

- [aws-sdk](https://npm.io/package/aws-sdk.md) ^2.430.0

## Alternatives

- [@opentelemetry/exporter-zipkin](https://npm.io/package/@opentelemetry/exporter-zipkin.md) — 14.8M weekly downloads
- [pusher-js](https://npm.io/package/pusher-js.md) — 2.0M weekly downloads
- [browserify](https://npm.io/package/browserify.md) — 1.7M weekly downloads
- [sqs-consumer](https://npm.io/package/sqs-consumer.md) — 1.7M weekly downloads
- [@sanity/eventsource](https://npm.io/package/@sanity/eventsource.md) — 930.8K weekly downloads

## Recent versions

- 1.1.0 (latest) — 2019-03-28

## README

# AWS SDK with enable HTTP keep-alive
This is the AWS SDK wrapper with HTTP keep-alive
Ref: https://medium.com/theburningmonk-com/lambda-optimization-tip-enable-http-keep-alive-5c55810f70fe

## Getting started

```bash
$ npm i -S aws-sdk-agent
```

## Usage

```javascript
const createAWSAgent = require('aws-sdk-agent')
const AWS = createAWSAgent()

const client = new AWS.DynamoDB.DocumentClient()
client.scan({
  TableName: 'MyTable'
}).promise()
```

```typescript
import createAWSAgent from 'aws-sdk-agent'

const AWS = createAWSAgent()
const client = new AWS.DynamoDB.DocumentClient()
client.scan({
  TableName: 'MyTable'
}).promise()
```

## with option

You can overwrite agent option.

```javascript
const AWS = createAWSAgent({
  keepAlive: true,
  maxSockets: 50,
  rejectUnauthorized: true
})
```

Parameter can see here.
https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/node/https.d.ts#L14-L17

---
_Source: https://npm.io/package/aws-sdk-agent · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
