<commit_before># grunt-aws-swaggerimport

> Grunt plugin to configure AWS API Gateway via a Swagger config and configure
> lambda permissions for API gateway.

#### Originally seeded from: [grunt-aws-apigateway](https://github.com/spreaker/grunt-aws-apigateway)

## Getting Started
This plugin requires Grunt.

If you haven't used [Grunt](http://gruntjs.com/) before, be sure to check out the [Getting Started](http://gruntjs.com/getting-started) guide, as it explains how to create a [Gruntfile](http://gruntjs.com/sample-gruntfile) as well as install and use Grunt plugins. Once you're familiar with that process, you may install this plugin with this command:

```shell
npm install grunt-aws-swaggerimport --save-dev
```

Once the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:

```js
grunt.loadNpmTasks('grunt-aws-swaggerimport');
```

## The "import_swagger" task

### Overview
In your project's Gruntfile, add a section named `import_swagger` to the data object passed into `grunt.initConfig()`.

```js
grunt.initConfig({
  import_swagger: {
    options: {
      accessKeyId: 'your-aws-access-key-id',
      secretAccessKey: 'your-aws-secret-access-key',
      region: 'your-aws-region', // Default: us-east-1
    },
    your_target: {<commit_msg>Add features to readme<commit_after># grunt-aws-swaggerimport

> Grunt plugin to configure AWS API Gateway via a Swagger config and configure
> lambda permissions for API gateway.

#### Originally seeded from: [grunt-aws-apigateway](https://github.com/spreaker/grunt-aws-apigateway)

## Features

  - Imports a [Swagger](http://swagger.io/) config into an AWS API Gateway
  - Can either load as a newly created API, or update an existing one.
  - Can either be loaded from a file, or imported inline from a Javascript object
  - Can deploy the API to a stage, including setting stage variables.

## Getting Started
This plugin requires Grunt.

If you haven't used [Grunt](http://gruntjs.com/) before, be sure to check out the [Getting Started](http://gruntjs.com/getting-started) guide, as it explains how to create a [Gruntfile](http://gruntjs.com/sample-gruntfile) as well as install and use Grunt plugins. Once you're familiar with that process, you may install this plugin with this command:

```shell
npm install grunt-aws-swaggerimport --save-dev
```

Once the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:

```js
grunt.loadNpmTasks('grunt-aws-swaggerimport');
```

## The "import_swagger" task

### Overview
In your project's Gruntfile, add a section named `import_swagger` to the data object passed into `grunt.initConfig()`.

```js
grunt.initConfig({
  import_swagger: {
    options: {
      accessKeyId: 'your-aws-access-key-id',
      secretAccessKey: 'your-aws-secret-access-key',
      region: 'your-aws-region', // Default: us-east-1
    },
    your_target: {
{'fraction_non_alphanumeric': 0.11069354287666552, 'fraction_numerical': 0.0006832934745473181, 'mean_word_length': 4.256732495511669, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '278443', 'n_tokens_mistral': 912, 'n_tokens_neox': 873, 'n_words': 317}