# api-gateway-copy-method

> "Copy a method in AWS API gateway."

Latest version **0.0.3** (published 2015-10-26) · ISC license · 0 weekly downloads

## Install

```sh
npm install api-gateway-copy-method
pnpm add api-gateway-copy-method
yarn add api-gateway-copy-method
bun add api-gateway-copy-method
```

Provides the command `api-gateway-copy-method`.

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.3 |
| Published | 2015-10-26 |
| First published | 2015-10-26 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 4 |
| Known vulnerabilities | 0 (+6 in 2 direct dependencies) |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Steve Faulkner |
| Maintainers | southpolesteve |

## Links

- npm: https://www.npmjs.com/package/api-gateway-copy-method
- Repository: https://github.com/bustlelabs/api-gateway-copy-method
- Homepage: https://github.com/bustlelabs/api-gateway-copy-method#readme
- Issues: https://github.com/bustlelabs/api-gateway-copy-method/issues
- npm.io page: https://npm.io/package/api-gateway-copy-method

## Dependencies (4)

- [aws4](https://npm.io/package/aws4.md) ^1.1.0
- [lodash](https://npm.io/package/lodash.md) ^3.10.1
- [aws-sdk](https://npm.io/package/aws-sdk.md) ^2.2.11
- [bluebird](https://npm.io/package/bluebird.md) ^2.10.2

## Recent versions

- 0.0.3 (latest) — 2015-10-26
- 0.0.2 — 2015-10-26
- 0.0.1 — 2015-10-26

## README

AWS API Gateway does not have a feature that allows you to copy settings from one method to another. This cli fixes that. Super useful when you have many similar methods like OPTIONS requests for CORS.

Install: `npm install -g api-gateway-copy-method`

Usage: `api-gateway-copy-method <apiName> <sourcePath> <sourceMethod> <destPath> <destMethod>`

Example: `api-gateway-copy-method "Blog API" /posts/{id} GET /blogPosts/{id} GET`

Important Notes:
1. destPath must already exist in the UI
2. destMethod must not exist. An error will be thrown if it does.
3. cacheNamespace is NOT copied between methods. First off, this is not settable in the current AWS web UI. Second it seems unlikely you would want to share cache namespaces between methods.

---
_Source: https://npm.io/package/api-gateway-copy-method · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
