{"_id":"@aws-sdk/client-waf-regional-node","_rev":"18-2d0395328ab8c4b2735f0f4721a41a76","name":"@aws-sdk/client-waf-regional-node","dist-tags":{"latest":"0.1.0-preview.2","preview":"0.1.0-preview.6"},"versions":{"0.1.0-preview.2":{"name":"@aws-sdk/client-waf-regional-node","version":"0.1.0-preview.2","author":{"url":"https://aws.amazon.com/javascript/","name":"AWS SDK for JavaScript Team"},"license":"Apache-2.0","_id":"@aws-sdk/client-waf-regional-node@0.1.0-preview.2","maintainers":[{"name":"trivikr-aws","email":"trivikr@amazon.com"},{"name":"aws-sdk-bot","email":"aws-sdk-js@amazon.com"},{"name":"zheallan","email":"zheallan@amazon.com"},{"name":"amzn-oss","email":"osa-3p@amazon.com"}],"dist":{"shasum":"24b90a334261186b93f7b5df54546d80f14b7837","tarball":"https://registry.npmjs.org/@aws-sdk/client-waf-regional-node/-/client-waf-regional-node-0.1.0-preview.2.tgz","fileCount":2282,"integrity":"sha512-p0SHQ8zDj1tiB13C/Ohl7MUzVtb5xSV/vPwb/cuqftNZ9a09MPyW+TA71yXBLrNQotbc5Jdqcikqcw6JpnvidA==","signatures":[{"sig":"MEUCIQDScjvNDw4M8VPmszWzCEHnFo9z23bvjPp2qg6/cQMPbgIgTYrmYw20IvYtKx2kid+jbAabNMCcezqRWXFs+OeH2w8=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1509929,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJddpLiCRA9TVsSAnZWagAA8f8P+gNJbOlcyBj9pJ17Fl6a\nz/EYDDFdtvEIlmrlciz8+WZzlf+fuuqerwLKw/ZJ3V4Yhy4QY2e9llG3MT/w\nllKzyhMn/4bp1IrohdRQuj5KjMdo4oXze20U/Y9EVPkJPjCMvsTabR7R+1A4\nNbzHtoNT6Rw9vbyIqZtffuP2CYByD1ZaVUZQauiJLGZv9YEiOE3fSvNChqR3\nfGhLnJY6QuxYx0FAVDZyfT3FNlVPggAn3Pn9HvMSxbkGt1Em3vLgyuch+bsG\nkquVNJnD/UtuVnuUH5mwmdFlBjafrvdUohQd70vIrHPbwcuLVHrAYal3OYNa\nBgJ2FZtiNqKTLG3vqc2YC2XU90vo0fLdUjKjUIKKplmmGwhrDXHhsRMGpFUX\nFF4nPvOrmy3hPuFOYT06QK83pHyojnX3T4vGuOh0Ma6VewQP9hFAddhI9jzn\nSSaPITUmK0HuLlXTo36iDAMJ/oVotfF05Qw0SLsmHYIoBhIKo1D0spBNVpMq\nUefGqIC5yo1oIB+cj8SraynD6a2pvg1FTyJCR9WYqbTIzKB2mavHZtN1s2v1\nrI+p2IbvO7q3Wfp9R+2PZAWecaoj2RBi6/uPj4jWNSBdqIIzQEqpecweYwMe\nSaN8oSFUYZfY65GQigvJYxbg6rfN5FyRfWCOtZju2V/Saii4/7e1lPujAtZb\ng8az\r\n=XVqO\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./index.js","types":"./index.d.ts","scripts":{"test":"exit 0","clean":"npm run remove-definitions && npm run remove-maps && npm run remove-js","pretest":"tsc","remove-js":"rimraf *.js && rimraf ./commands/*.js && rimraf ./model/*.js && rimraf ./types/*.js","smoke-test":"npm run pretest && node ./test/smoke/index.spec.js","remove-maps":"rimraf *.js.map && rimraf ./commands/*.js.map && rimraf ./model/*.js.map && rimraf ./types/*.js.map","prepublishOnly":"tsc","remove-definitions":"rimraf *.d.ts && rimraf ./commands/*.d.ts && rimraf ./model/*.d.ts rimraf ./types/*.d.ts","build-documentation":"npm run clean && typedoc ./","remove-documentation":"rimraf ./docs"},"_npmUser":{"name":"aws-sdk-bot","email":"aws-sdk-js@amazon.com"},"deprecated":"The package @aws-sdk/client-waf-regional-node has been renamed to @aws-sdk/client-waf-regional. Please install the renamed package.","_npmVersion":"6.9.0","description":"Node SDK for AWS WAF Regional","directories":{},"_nodeVersion":"10.1.0","dependencies":{"tslib":"^1.8.0","@aws-sdk/types":"^0.1.0-preview.5","@aws-sdk/hash-node":"^0.1.0-preview.5","@aws-sdk/json-parser":"^0.1.0-preview.5","@aws-sdk/core-handler":"^0.1.0-preview.5","@aws-sdk/json-builder":"^0.1.0-preview.5","@aws-sdk/signature-v4":"^0.1.0-preview.6","@aws-sdk/util-utf8-node":"^0.1.0-preview.3","@aws-sdk/config-resolver":"^0.1.0-preview.5","@aws-sdk/region-provider":"^0.1.0-preview.5","@aws-sdk/url-parser-node":"^0.1.0-preview.5","@aws-sdk/middleware-stack":"^0.1.0-preview.6","@aws-sdk/retry-middleware":"^0.1.0-preview.5","@aws-sdk/util-base64-node":"^0.1.0-preview.3","@aws-sdk/node-http-handler":"^0.1.0-preview.6","@aws-sdk/protocol-json-rpc":"^0.1.0-preview.6","@aws-sdk/signing-middleware":"^0.1.0-preview.6","@aws-sdk/util-user-agent-node":"^0.1.0-preview.6","@aws-sdk/middleware-serializer":"^0.1.0-preview.5","@aws-sdk/stream-collector-node":"^0.1.0-preview.5","@aws-sdk/util-body-length-node":"^0.1.0-preview.4","@aws-sdk/json-error-unmarshaller":"^0.1.0-preview.6","@aws-sdk/credential-provider-node":"^0.1.0-preview.6","@aws-sdk/middleware-content-length":"^0.1.0-preview.5","@aws-sdk/middleware-header-default":"^0.1.0-preview.5"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^24.7.1","rimraf":"^2.6.2","typedoc":"^0.14.2","typescript":"~3.4.0","@types/jest":"^24.0.12","@types/node":"^10.0.0","@aws-sdk/client-documentation-generator":"^0.1.0-preview.3"},"_npmOperationalInternal":{"tmp":"tmp/client-waf-regional-node_0.1.0-preview.2_1568051937724_0.6641380132713595","host":"s3://npm-registry-packages"}},"0.1.0-preview.3":{"name":"@aws-sdk/client-waf-regional-node","version":"0.1.0-preview.3","author":{"url":"https://aws.amazon.com/javascript/","name":"AWS SDK for JavaScript Team"},"license":"Apache-2.0","_id":"@aws-sdk/client-waf-regional-node@0.1.0-preview.3","maintainers":[{"name":"amzn-oss","email":"osa-3p@amazon.com"},{"name":"aws-sdk-bot","email":"aws-sdk-js@amazon.com"},{"name":"trivikr-aws","email":"trivikr@amazon.com"},{"name":"zheallan","email":"zheallan@amazon.com"}],"dist":{"shasum":"e2720e30924deb7c7981406dfed3329454d5668c","tarball":"https://registry.npmjs.org/@aws-sdk/client-waf-regional-node/-/client-waf-regional-node-0.1.0-preview.3.tgz","fileCount":2282,"integrity":"sha512-9QQqBzUENGwZ2/kghZPDQxSl5jv4pZocwl/sMIQM6Qtgs37O/EJ/yuRatae+PHXO+bjWR2PC0+Zsq4bObs1ucg==","signatures":[{"sig":"MEUCIEGBkOCXY4/VTqHGhZNGZwJ93gyeD7QOhQ2ZNxaiX1SqAiEA3aAx0mulvEmnRRpx1mtKeaO5VzfriAlLm/UE9KOEKLQ=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1493456,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdg6kpCRA9TVsSAnZWagAAqiAQAIw5HECZY/9rEa6BCxih\nycOnhLRzgxqG9Jdrpsv0SKCHKT4tfNENRgk9oOQNlCxHt6sh6QY6AJuZM9ll\niMlwDptgabs/QnQTaCSsm3f9XIiBtFRAvWf9PZrWtjpQzKKNQjVO6ODqqqCR\nbum339r9mnt9fHN9iMNi/DHOTqf+828lQOiyHaA2V/2YDm/QZEUOpqdNl2Bj\nWugy3SBPp0HtwrHN4BV/kwy8DHDT3l/WlRGaDHppQzpk0ZhIz9YBrrv5gy7V\n6mBt4LmBhmk+JM+MhhJFHXobJWEmmlGWeJ5gNPn5KxxDOkA2b7IR3mtw6VV7\n/9AqAio2timcJbUWFUCeBXmbi4B8OVkkrP+aVGnF5Y9hccgCUWE7N6KhjKkO\nl74jKk6KEB6M5iYWMY1gJGjOsRAcO/ROGhwkBMFJdAF8NwPBSq6o/YA3FH7x\nJ3cwsyoDXkYJ+Jg6Rw2IE+8ZVGi7e4CVrOneZ7ihoIwvy0knkV+5Z9g8a8z9\nG3HChNh8nPMzTZ7A6Pc9TB7OmBIbmo9m3kH5ZZRzEu/cMjGGOvydep/Ip2sg\n2hF4/+FWVieP2EW1/SoHo9nGPZS0cXdALilJ/F+sZ8Cv457wqTGtuZRYoth4\nz34ggEMHEy6jDJipRNr167VlhUh1IH5veBYln9ahE3+8KARBohR5Xx4Nracm\n9idK\r\n=D5O8\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./index.js","types":"./index.d.ts","readme":"# @aws-sdk/client-waf-regional-node\n\n[![NPM version](https://img.shields.io/npm/v/@aws-sdk/client-waf-regional-node/preview.svg)](https://www.npmjs.com/package/@aws-sdk/client-waf-regional-node)\n[![NPM downloads](https://img.shields.io/npm/dm/@aws-sdk/client-waf-regional-node.svg)](https://www.npmjs.com/package/@aws-sdk/client-waf-regional-node)\n\n## Description\n\n<p>This is the <i>AWS WAF Regional API Reference</i> for using AWS WAF with Elastic Load Balancing (ELB) Application Load Balancers. The AWS WAF actions and data types listed in the reference are available for protecting Application Load Balancers. You can use these actions and data types by means of the endpoints listed in <a href=\"https://docs.aws.amazon.com/general/latest/gr/rande.html#waf_region\">AWS Regions and Endpoints</a>. This guide is for developers who need detailed information about the AWS WAF API actions, data types, and errors. For detailed information about AWS WAF features and an overview of how to use the AWS WAF API, see the <a href=\"https://docs.aws.amazon.com/waf/latest/developerguide/\">AWS WAF Developer Guide</a>.</p>\n\n## Installing\n\nTo install the this package using NPM, simply type the following into a terminal window:\n\n```\nnpm install @aws-sdk/client-waf-regional-node\n```\n\n## Getting Started\n\n### Import\n\nThe AWS SDK is modulized by clients and commands in CommonJS modules. To send a request, you only need to import the client(`WAFRegionalClient`) and the commands you need, for example `AssociateWebACLCommand`:\n\n```javascript\n//JavaScript\nconst {\n  WAFRegionalClient\n} = require(\"@aws-sdk/client-waf-regional-node/WAFRegionalClient\");\nconst {\n  AssociateWebACLCommand\n} = require(\"@aws-sdk/client-waf-regional-node/commands/AssociateWebACLCommand\");\n```\n\n```javascript\n//TypeScript\nimport { WAFRegionalClient } from \"@aws-sdk/client-waf-regional-node/WAFRegionalClient\";\nimport { AssociateWebACLCommand } from \"@aws-sdk/client-waf-regional-node/commands/AssociateWebACLCommand\";\n```\n\n### Usage\n\nTo send a request, you:\n\n- Initiate client with configuration (e.g. credentials, region). For more information you can refer to the [API reference][].\n- Initiate command with input parameters.\n- Call `send` operation on client with command object as input.\n- If you are using a custom http handler, you may call `destroy()` to close open connections.\n\n```javascript\nconst wAFRegional = new WAFRegionalClient({region: 'region'});\n//clients can be shared by different commands\nconst params = {\n  WebACLId: /**a string value*/,\n  ResourceArn: /**a string value*/,\n};\nconst associateWebACLCommand = new AssociateWebACLCommand(params);\nwAFRegional.send(associateWebACLCommand).then(data => {\n    // do something\n}).catch(error => {\n    // error handling\n})\n```\n\nIn addition to using promises, there are 2 other ways to send a request:\n\n```javascript\n// async/await\ntry {\n  const data = await wAFRegional.send(associateWebACLCommand);\n  // do something\n} catch (error) {\n  // error handling\n}\n```\n\n```javascript\n// callback\nwAFRegional.send(associateWebACLCommand, (err, data) => {\n  //do something\n});\n```\n\nThe SDK can also send requests using the simplified callback style from version 2 of the SDK.\n\n```javascript\nimport * as AWS from \"@aws-sdk/@aws-sdk/client-waf-regional-node/WAFRegional\";\nconst wAFRegional = new AWS.WAFRegional({ region: \"region\" });\nwAFRegional.associateWebACL(params, (err, data) => {\n  //do something\n});\n```\n\n### Troubleshooting\n\nWhen the service returns an exception, the error will include the exception information, as well as response metadata (e.g. request id).\n\n```javascript\ntry {\n  const data = await wAFRegional.send(associateWebACLCommand);\n  // do something\n} catch (error) {\n  const metadata = error.$metadata;\n  console.log(\n    `requestId: ${metadata.requestId}\ncfId: ${metadata.cfId}\nextendedRequestId: ${metadata.extendedRequestId}`\n  );\n  /*\nThe keys within exceptions are also parsed. You can access them by specifying exception names:\n    if(error.name === 'SomeServiceException') {\n        const value = error.specialKeyInException;\n    }\n*/\n}\n```\n\n## Getting Help\n\nPlease use these community resources for getting help. We use the GitHub issues for tracking bugs and feature requests and have limited bandwidth to address them.\n\n- Ask a question on [StackOverflow](https://stackoverflow.com/questions/tagged/aws-sdk-js) and tag it with `aws-sdk-js`\n- Come join the AWS JavaScript community on [gitter](https://gitter.im/aws/aws-sdk-js-v3)\n- If it turns out that you may have found a bug, please [open an issue](https://github.com/aws/aws-sdk-js-v3/issues)\n\n## Contributing\n\nThis client code is generated automatically. Any modifications will be overwritten the next time the `@aws-sdk/@aws-sdk/client-waf-regional-node' package is updated. To contribute to SDK you can checkout our [code generator package][].\n\n## License\n\nThis SDK is distributed under the\n[Apache License, Version 2.0](http://www.apache.org/licenses/LICENSE-2.0),\nsee LICENSE for more information.\n\n[code generator package]: https://github.com/aws/aws-sdk-js-v3/tree/master/packages/service-types-generator\n[api reference]: https://docs.aws.amazon.com/AWSJavaScriptSDK/latest/\n","scripts":{"test":"exit 0","clean":"npm run remove-definitions && npm run remove-maps && npm run remove-js","pretest":"tsc","remove-js":"rimraf *.js && rimraf ./commands/*.js && rimraf ./model/*.js && rimraf ./types/*.js","smoke-test":"npm run pretest && node ./test/smoke/index.spec.js","remove-maps":"rimraf *.js.map && rimraf ./commands/*.js.map && rimraf ./model/*.js.map && rimraf ./types/*.js.map","prepublishOnly":"tsc","remove-definitions":"rimraf *.d.ts && rimraf ./commands/*.d.ts && rimraf ./model/*.d.ts rimraf ./types/*.d.ts","build-documentation":"npm run clean && typedoc ./","remove-documentation":"rimraf ./docs"},"_npmUser":{"name":"aws-sdk-bot","email":"aws-sdk-js@amazon.com"},"deprecated":"The package @aws-sdk/client-waf-regional-node has been renamed to @aws-sdk/client-waf-regional. Please install the renamed package.","_npmVersion":"6.9.0","description":"Node SDK for AWS WAF Regional","directories":{},"_nodeVersion":"10.1.0","dependencies":{"tslib":"^1.8.0","@aws-sdk/types":"^0.1.0-preview.5","@aws-sdk/hash-node":"^0.1.0-preview.6","@aws-sdk/json-parser":"^0.1.0-preview.5","@aws-sdk/core-handler":"^0.1.0-preview.5","@aws-sdk/json-builder":"^0.1.0-preview.5","@aws-sdk/signature-v4":"^0.1.0-preview.7","@aws-sdk/util-utf8-node":"^0.1.0-preview.4","@aws-sdk/config-resolver":"^0.1.0-preview.5","@aws-sdk/region-provider":"^0.1.0-preview.5","@aws-sdk/url-parser-node":"^0.1.0-preview.6","@aws-sdk/middleware-stack":"^0.1.0-preview.6","@aws-sdk/retry-middleware":"^0.1.0-preview.5","@aws-sdk/util-base64-node":"^0.1.0-preview.4","@aws-sdk/node-http-handler":"^0.1.0-preview.6","@aws-sdk/protocol-json-rpc":"^0.1.0-preview.6","@aws-sdk/signing-middleware":"^0.1.0-preview.7","@aws-sdk/util-user-agent-node":"^0.1.0-preview.7","@aws-sdk/middleware-serializer":"^0.1.0-preview.5","@aws-sdk/stream-collector-node":"^0.1.0-preview.6","@aws-sdk/util-body-length-node":"^0.1.0-preview.5","@aws-sdk/json-error-unmarshaller":"^0.1.0-preview.6","@aws-sdk/credential-provider-node":"^0.1.0-preview.7","@aws-sdk/middleware-content-length":"^0.1.0-preview.5","@aws-sdk/middleware-header-default":"^0.1.0-preview.5"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^24.7.1","rimraf":"^2.6.2","typedoc":"^0.14.2","typescript":"~3.4.0","@types/jest":"^24.0.12","@types/node":"^10.0.0","@aws-sdk/client-documentation-generator":"^0.1.0-preview.3"},"_npmOperationalInternal":{"tmp":"tmp/client-waf-regional-node_0.1.0-preview.3_1568909608381_0.43484409928411827","host":"s3://npm-registry-packages"}},"0.1.0-preview.4":{"name":"@aws-sdk/client-waf-regional-node","version":"0.1.0-preview.4","author":{"url":"https://aws.amazon.com/javascript/","name":"AWS SDK for JavaScript Team"},"license":"Apache-2.0","_id":"@aws-sdk/client-waf-regional-node@0.1.0-preview.4","maintainers":[{"name":"amzn-oss","email":"osa-3p@amazon.com"},{"name":"aws-sdk-bot","email":"aws-sdk-js@amazon.com"},{"name":"trivikr-aws","email":"trivikr@amazon.com"},{"name":"zheallan","email":"zheallan@amazon.com"}],"dist":{"shasum":"1aa1525e8cc86790ab333cc45bc1e69b4cdc9492","tarball":"https://registry.npmjs.org/@aws-sdk/client-waf-regional-node/-/client-waf-regional-node-0.1.0-preview.4.tgz","fileCount":2282,"integrity":"sha512-3qyKRkjpgos5uyfQnUtjxOj8ySB5aMDNqqoX3aecTP6qxnUO5b0V1ndNHDuE7wdmyj0SyhtzJvLpM5CnC36Ufw==","signatures":[{"sig":"MEUCIDMOqmhvBz+311WCHaZzqzTXt9La34UwrBSueqRpqkqCAiEAtZJSTv7eTJZpCfzhzcuOmfPGav07rfc1pkmkEsFdP30=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1493474,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJduNJiCRA9TVsSAnZWagAAZJsP/iFBvmCN+MZZJvLEALcO\nLx1O2MuI2Q8KX9QYwoPR4rv7LszPtXHx8+u1oegvoGjTW0TK5zs2rBMKo0yc\nDRiwdXdnp+PPSnVGqdiWkrHZI30OfG2B4WqImix1jnb/HClP73IuRTerSyy4\noHzpOXmLrz6tWgf2Vq+4Gpm+WdGHtoHmEdOYXZuYxk4mWHQ3zb3F2nMCCojj\nAnKUQBd2aFpgTlr0CAhm5eWpfGgpMg2FkyxzdxnMiXK3nxduhn3IIGxxxidi\nStlg/jOZPzxvYVeK88d98KYDl6xMEhH04BDyVNYDIhsY1vIktXut0e9Q4uLA\n72/UdW/ZvYHIBp1z8IBtq3dc8VI219RhWtASVvp9E4b+bALC5rXA2ufmWGdD\nvs42IFvFyPekgQMXF5XvX6r6h+0tSL8eONW98rdKP6UFJRO6TjfJdjh44sGQ\nW6IP/+vcAmdv/QtV3LQZLkC/0ds2FpiSExQkPUf0j6gJTXSZWq58ZWN/kHqv\nAKzTB45UlXLrLTjCVP23G8kpRJg1/Im9Td4aMZFR+9aIONDxcF9UjS7GJATp\ndbXMViXavpR4EBLTuwmsDR8PqbykfVCjznVBOsZ2mbPEz/1pXAOxPUw5Zsly\nz6kV1zyinkl8wc56NvxqjTaUXjmbHTrRymUNk45D4XdaUrbKm7DxmPcmOyMm\npoFO\r\n=acg+\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./index.js","types":"./index.d.ts","readme":"# @aws-sdk/client-waf-regional-node\n\n[![NPM version](https://img.shields.io/npm/v/@aws-sdk/client-waf-regional-node/preview.svg)](https://www.npmjs.com/package/@aws-sdk/client-waf-regional-node)\n[![NPM downloads](https://img.shields.io/npm/dm/@aws-sdk/client-waf-regional-node.svg)](https://www.npmjs.com/package/@aws-sdk/client-waf-regional-node)\n\n## Description\n\n<p>This is the <i>AWS WAF Regional API Reference</i> for using AWS WAF with Elastic Load Balancing (ELB) Application Load Balancers. The AWS WAF actions and data types listed in the reference are available for protecting Application Load Balancers. You can use these actions and data types by means of the endpoints listed in <a href=\"https://docs.aws.amazon.com/general/latest/gr/rande.html#waf_region\">AWS Regions and Endpoints</a>. This guide is for developers who need detailed information about the AWS WAF API actions, data types, and errors. For detailed information about AWS WAF features and an overview of how to use the AWS WAF API, see the <a href=\"https://docs.aws.amazon.com/waf/latest/developerguide/\">AWS WAF Developer Guide</a>.</p>\n\n## Installing\n\nTo install the this package using NPM, simply type the following into a terminal window:\n\n```\nnpm install @aws-sdk/client-waf-regional-node\n```\n\n## Getting Started\n\n### Import\n\nThe AWS SDK is modulized by clients and commands in CommonJS modules. To send a request, you only need to import the client(`WAFRegionalClient`) and the commands you need, for example `AssociateWebACLCommand`:\n\n```javascript\n//JavaScript\nconst {\n  WAFRegionalClient,\n  AssociateWebACLCommand\n} = require(\"@aws-sdk/client-waf-regional-node\");\n```\n\n```javascript\n//TypeScript\nimport {\n  WAFRegionalClient,\n  AssociateWebACLCommand\n} from \"@aws-sdk/client-waf-regional-node\";\n```\n\n### Usage\n\nTo send a request, you:\n\n- Initiate client with configuration (e.g. credentials, region). For more information you can refer to the [API reference][].\n- Initiate command with input parameters.\n- Call `send` operation on client with command object as input.\n- If you are using a custom http handler, you may call `destroy()` to close open connections.\n\n```javascript\nconst wAFRegional = new WAFRegionalClient({region: 'region'});\n//clients can be shared by different commands\nconst params = {\n  WebACLId: /**a string value*/,\n  ResourceArn: /**a string value*/,\n};\nconst associateWebACLCommand = new AssociateWebACLCommand(params);\nwAFRegional.send(associateWebACLCommand).then(data => {\n    // do something\n}).catch(error => {\n    // error handling\n})\n```\n\nIn addition to using promises, there are 2 other ways to send a request:\n\n```javascript\n// async/await\ntry {\n  const data = await wAFRegional.send(associateWebACLCommand);\n  // do something\n} catch (error) {\n  // error handling\n}\n```\n\n```javascript\n// callback\nwAFRegional.send(associateWebACLCommand, (err, data) => {\n  //do something\n});\n```\n\nThe SDK can also send requests using the simplified callback style from version 2 of the SDK.\n\n```javascript\nimport * as AWS from \"@aws-sdk/client-waf-regional-node\";\nconst wAFRegional = new AWS.WAFRegional({ region: \"region\" });\nwAFRegional.associateWebACL(params, (err, data) => {\n  //do something\n});\n```\n\n### Troubleshooting\n\nWhen the service returns an exception, the error will include the exception information, as well as response metadata (e.g. request id).\n\n```javascript\ntry {\n  const data = await wAFRegional.send(associateWebACLCommand);\n  // do something\n} catch (error) {\n  const metadata = error.$metadata;\n  console.log(\n    `requestId: ${metadata.requestId}\ncfId: ${metadata.cfId}\nextendedRequestId: ${metadata.extendedRequestId}`\n  );\n  /*\nThe keys within exceptions are also parsed. You can access them by specifying exception names:\n    if(error.name === 'SomeServiceException') {\n        const value = error.specialKeyInException;\n    }\n*/\n}\n```\n\n## Getting Help\n\nPlease use these community resources for getting help. We use the GitHub issues for tracking bugs and feature requests and have limited bandwidth to address them.\n\n- Ask a question on [StackOverflow](https://stackoverflow.com/questions/tagged/aws-sdk-js) and tag it with `aws-sdk-js`\n- Come join the AWS JavaScript community on [gitter](https://gitter.im/aws/aws-sdk-js-v3)\n- If it turns out that you may have found a bug, please [open an issue](https://github.com/aws/aws-sdk-js-v3/issues)\n\n## Contributing\n\nThis client code is generated automatically. Any modifications will be overwritten the next time the `@aws-sdk/@aws-sdk/client-waf-regional-node' package is updated. To contribute to SDK you can checkout our [code generator package][].\n\n## License\n\nThis SDK is distributed under the\n[Apache License, Version 2.0](http://www.apache.org/licenses/LICENSE-2.0),\nsee LICENSE for more information.\n\n[code generator package]: https://github.com/aws/aws-sdk-js-v3/tree/master/packages/service-types-generator\n[api reference]: https://docs.aws.amazon.com/AWSJavaScriptSDK/latest/\n","scripts":{"test":"exit 0","clean":"npm run remove-definitions && npm run remove-maps && npm run remove-js","pretest":"tsc","remove-js":"rimraf *.js && rimraf ./commands/*.js && rimraf ./model/*.js && rimraf ./types/*.js","smoke-test":"npm run pretest && node ./test/smoke/index.spec.js","remove-maps":"rimraf *.js.map && rimraf ./commands/*.js.map && rimraf ./model/*.js.map && rimraf ./types/*.js.map","prepublishOnly":"tsc","remove-definitions":"rimraf *.d.ts && rimraf ./commands/*.d.ts && rimraf ./model/*.d.ts rimraf ./types/*.d.ts","build-documentation":"npm run clean && typedoc ./","remove-documentation":"rimraf ./docs"},"_npmUser":{"name":"aws-sdk-bot","email":"aws-sdk-js@amazon.com"},"deprecated":"The package @aws-sdk/client-waf-regional-node has been renamed to @aws-sdk/client-waf-regional. Please install the renamed package.","_npmVersion":"6.9.0","description":"Node SDK for AWS WAF Regional","directories":{},"_nodeVersion":"10.1.0","dependencies":{"tslib":"^1.8.0","@aws-sdk/types":"^0.1.0-preview.6","@aws-sdk/hash-node":"^0.1.0-preview.7","@aws-sdk/json-parser":"^0.1.0-preview.6","@aws-sdk/core-handler":"^0.1.0-preview.6","@aws-sdk/json-builder":"^0.1.0-preview.6","@aws-sdk/signature-v4":"^0.1.0-preview.8","@aws-sdk/util-utf8-node":"^0.1.0-preview.4","@aws-sdk/config-resolver":"^0.1.0-preview.6","@aws-sdk/region-provider":"^0.1.0-preview.6","@aws-sdk/url-parser-node":"^0.1.0-preview.7","@aws-sdk/middleware-stack":"^0.1.0-preview.7","@aws-sdk/retry-middleware":"^0.1.0-preview.6","@aws-sdk/util-base64-node":"^0.1.0-preview.4","@aws-sdk/node-http-handler":"^0.1.0-preview.7","@aws-sdk/protocol-json-rpc":"^0.1.0-preview.7","@aws-sdk/signing-middleware":"^0.1.0-preview.8","@aws-sdk/util-user-agent-node":"^0.1.0-preview.8","@aws-sdk/middleware-serializer":"^0.1.0-preview.6","@aws-sdk/stream-collector-node":"^0.1.0-preview.7","@aws-sdk/util-body-length-node":"^0.1.0-preview.5","@aws-sdk/json-error-unmarshaller":"^0.1.0-preview.7","@aws-sdk/credential-provider-node":"^0.1.0-preview.8","@aws-sdk/middleware-content-length":"^0.1.0-preview.6","@aws-sdk/middleware-header-default":"^0.1.0-preview.6"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^24.7.1","rimraf":"^2.6.2","typedoc":"^0.14.2","typescript":"~3.4.0","@types/jest":"^24.0.12","@types/node":"^10.0.0","@aws-sdk/client-documentation-generator":"^0.1.0-preview.3"},"_npmOperationalInternal":{"tmp":"tmp/client-waf-regional-node_0.1.0-preview.4_1572393569896_0.3876283746938105","host":"s3://npm-registry-packages"}},"0.1.0-preview.5":{"name":"@aws-sdk/client-waf-regional-node","version":"0.1.0-preview.5","author":{"url":"https://aws.amazon.com/javascript/","name":"AWS SDK for JavaScript Team"},"license":"Apache-2.0","_id":"@aws-sdk/client-waf-regional-node@0.1.0-preview.5","maintainers":[{"name":"amzn-oss","email":"osa-3p@amazon.com"},{"name":"aws-sdk-bot","email":"aws-sdk-js@amazon.com"},{"name":"trivikr-aws","email":"trivikr@amazon.com"},{"name":"zheallan","email":"zheallan@amazon.com"}],"dist":{"shasum":"cbb6c2b007c8c545a76ab19ed0376d2e7640a4b1","tarball":"https://registry.npmjs.org/@aws-sdk/client-waf-regional-node/-/client-waf-regional-node-0.1.0-preview.5.tgz","fileCount":2282,"integrity":"sha512-mTZXAswUQcrOzhbrrnRyw8wCBQRdKLgoYz9ZXgA0WQYMHSHaCnwHuqx1seNYaqFDJXjx2tWdi/I4m1aPEpzxBQ==","signatures":[{"sig":"MEQCIGseQoK53mKfmEU2bfx9Z8AMj8XSOZIR6a4+g/KvccI8AiB/llWwwIOPCQ3CpbR+fVFOTmQuVmudB3DwYR2v9OmCJQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1493718,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdueXmCRA9TVsSAnZWagAAzS0P/3E3LuuVYgUWYgO+xfyy\nkOZhYc6qbHxhn+yxBNXplhR0MhzgHrxMhyhMjG5qjflu9NySSrl1uDUB2q0R\n4AR8lEv6Ze7395UE+wfrQLz1k2WVtI82BbPjiJe8WR0sx7ctEeQWoXV2ivsL\nisdFpqhr9dXJYsiq/dGXLtxmPdj0jtp2mLewvaB6a0A6JfedRvhqo7BrQOSr\nZ7Wq5vW7+oZeTZZhBfuq9iBqKEMhu0VUhIvjOQfq4aFU3q1mT37JlmX/JINW\nY+rGlVc5iq5wU4+O8Y7tJRbKeG5iShKscs6zsT3MvlrR7r0xiP/UeCkXykiE\nIP9Wgx5u9zDVuAi2JHYxQs7m1fCgSIjfIvyL0bn9DFmFUylkRx5H/IKnVzKP\nvtdR1GTncn8irahOjYR6+TuCUs4JkWMYhQn+unCAkpmkQvZOJ48OejgV7qRN\npFJYDPkoR8VnrG/rmkMYFa1bllVu5ZQzAxzQ5vauVtD8QZioRe8QmtV+ZSDw\nqTAKA2W7hpdVx9oqvsawcXTRzc1mOkdhrIIYiSlnQOyN0elQSiv+F1/63ch2\nbfMzYTK5IVbXkqvZIErwlAG8YszS3qe8X0JbtRtMMlQ02yBnnZy1wU09Nw+Y\n/Rb87Ws7pK7zXKqh0LClH2zR0e8xNEMNpXHGIFFqSRJ3i9lFiawndYRXYmsY\n+KiY\r\n=5CWt\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./index.js","types":"./index.d.ts","readme":"# @aws-sdk/client-waf-regional-node\n\n[![NPM version](https://img.shields.io/npm/v/@aws-sdk/client-waf-regional-node/preview.svg)](https://www.npmjs.com/package/@aws-sdk/client-waf-regional-node)\n[![NPM downloads](https://img.shields.io/npm/dm/@aws-sdk/client-waf-regional-node.svg)](https://www.npmjs.com/package/@aws-sdk/client-waf-regional-node)\n\n## Description\n\n<p>This is the <i>AWS WAF Regional API Reference</i> for using AWS WAF with Elastic Load Balancing (ELB) Application Load Balancers. The AWS WAF actions and data types listed in the reference are available for protecting Application Load Balancers. You can use these actions and data types by means of the endpoints listed in <a href=\"https://docs.aws.amazon.com/general/latest/gr/rande.html#waf_region\">AWS Regions and Endpoints</a>. This guide is for developers who need detailed information about the AWS WAF API actions, data types, and errors. For detailed information about AWS WAF features and an overview of how to use the AWS WAF API, see the <a href=\"https://docs.aws.amazon.com/waf/latest/developerguide/\">AWS WAF Developer Guide</a>.</p>\n\n## Installing\n\nTo install the this package using NPM, simply type the following into a terminal window:\n\n```\nnpm install @aws-sdk/client-waf-regional-node\n```\n\n## Getting Started\n\n### Import\n\nThe AWS SDK is modulized by clients and commands in CommonJS modules. To send a request, you only need to import the client(`WAFRegionalClient`) and the commands you need, for example `AssociateWebACLCommand`:\n\n```javascript\n//JavaScript\nconst {\n  WAFRegionalClient,\n  AssociateWebACLCommand\n} = require(\"@aws-sdk/client-waf-regional-node\");\n```\n\n```javascript\n//TypeScript\nimport {\n  WAFRegionalClient,\n  AssociateWebACLCommand\n} from \"@aws-sdk/client-waf-regional-node\";\n```\n\n### Usage\n\nTo send a request, you:\n\n- Initiate client with configuration (e.g. credentials, region). For more information you can refer to the [API reference][].\n- Initiate command with input parameters.\n- Call `send` operation on client with command object as input.\n- If you are using a custom http handler, you may call `destroy()` to close open connections.\n\n```javascript\nconst wAFRegional = new WAFRegionalClient({region: 'region'});\n//clients can be shared by different commands\nconst params = {\n  WebACLId: /**a string value*/,\n  ResourceArn: /**a string value*/,\n};\nconst associateWebACLCommand = new AssociateWebACLCommand(params);\nwAFRegional.send(associateWebACLCommand).then(data => {\n    // do something\n}).catch(error => {\n    // error handling\n})\n```\n\nIn addition to using promises, there are 2 other ways to send a request:\n\n```javascript\n// async/await\ntry {\n  const data = await wAFRegional.send(associateWebACLCommand);\n  // do something\n} catch (error) {\n  // error handling\n}\n```\n\n```javascript\n// callback\nwAFRegional.send(associateWebACLCommand, (err, data) => {\n  //do something\n});\n```\n\nThe SDK can also send requests using the simplified callback style from version 2 of the SDK.\n\n```javascript\nimport * as AWS from \"@aws-sdk/client-waf-regional-node\";\nconst wAFRegional = new AWS.WAFRegional({ region: \"region\" });\nwAFRegional.associateWebACL(params, (err, data) => {\n  //do something\n});\n```\n\n### Troubleshooting\n\nWhen the service returns an exception, the error will include the exception information, as well as response metadata (e.g. request id).\n\n```javascript\ntry {\n  const data = await wAFRegional.send(associateWebACLCommand);\n  // do something\n} catch (error) {\n  const metadata = error.$metadata;\n  console.log(\n    `requestId: ${metadata.requestId}\ncfId: ${metadata.cfId}\nextendedRequestId: ${metadata.extendedRequestId}`\n  );\n  /*\nThe keys within exceptions are also parsed. You can access them by specifying exception names:\n    if(error.name === 'SomeServiceException') {\n        const value = error.specialKeyInException;\n    }\n*/\n}\n```\n\n## Getting Help\n\nPlease use these community resources for getting help. We use the GitHub issues for tracking bugs and feature requests and have limited bandwidth to address them.\n\n- Ask a question on [StackOverflow](https://stackoverflow.com/questions/tagged/aws-sdk-js) and tag it with `aws-sdk-js`\n- Come join the AWS JavaScript community on [gitter](https://gitter.im/aws/aws-sdk-js-v3)\n- If it turns out that you may have found a bug, please [open an issue](https://github.com/aws/aws-sdk-js-v3/issues)\n\n## Contributing\n\nThis client code is generated automatically. Any modifications will be overwritten the next time the `@aws-sdk/@aws-sdk/client-waf-regional-node' package is updated. To contribute to SDK you can checkout our [code generator package][].\n\n## License\n\nThis SDK is distributed under the\n[Apache License, Version 2.0](http://www.apache.org/licenses/LICENSE-2.0),\nsee LICENSE for more information.\n\n[code generator package]: https://github.com/aws/aws-sdk-js-v3/tree/master/packages/service-types-generator\n[api reference]: https://docs.aws.amazon.com/AWSJavaScriptSDK/latest/\n","scripts":{"test":"exit 0","clean":"npm run remove-definitions && npm run remove-maps && npm run remove-js","pretest":"tsc","remove-js":"rimraf *.js && rimraf ./commands/*.js && rimraf ./model/*.js && rimraf ./types/*.js","smoke-test":"npm run pretest && node ./test/smoke/index.spec.js","remove-maps":"rimraf *.js.map && rimraf ./commands/*.js.map && rimraf ./model/*.js.map && rimraf ./types/*.js.map","prepublishOnly":"tsc","remove-definitions":"rimraf *.d.ts && rimraf ./commands/*.d.ts && rimraf ./model/*.d.ts rimraf ./types/*.d.ts","build-documentation":"npm run clean && typedoc ./","remove-documentation":"rimraf ./docs"},"_npmUser":{"name":"aws-sdk-bot","email":"aws-sdk-js@amazon.com"},"deprecated":"The package @aws-sdk/client-waf-regional-node has been renamed to @aws-sdk/client-waf-regional. Please install the renamed package.","_npmVersion":"6.9.0","description":"Node SDK for AWS WAF Regional","directories":{},"_nodeVersion":"10.1.0","dependencies":{"tslib":"^1.8.0","@aws-sdk/types":"^0.1.0-preview.7","@aws-sdk/hash-node":"^0.1.0-preview.8","@aws-sdk/json-parser":"^0.1.0-preview.7","@aws-sdk/core-handler":"^0.1.0-preview.7","@aws-sdk/json-builder":"^0.1.0-preview.7","@aws-sdk/signature-v4":"^0.1.0-preview.9","@aws-sdk/util-utf8-node":"^0.1.0-preview.4","@aws-sdk/config-resolver":"^0.1.0-preview.7","@aws-sdk/region-provider":"^0.1.0-preview.7","@aws-sdk/url-parser-node":"^0.1.0-preview.8","@aws-sdk/middleware-stack":"^0.1.0-preview.8","@aws-sdk/retry-middleware":"^0.1.0-preview.7","@aws-sdk/util-base64-node":"^0.1.0-preview.4","@aws-sdk/node-http-handler":"^0.1.0-preview.8","@aws-sdk/protocol-json-rpc":"^0.1.0-preview.8","@aws-sdk/signing-middleware":"^0.1.0-preview.9","@aws-sdk/util-user-agent-node":"^0.1.0-preview.9","@aws-sdk/middleware-serializer":"^0.1.0-preview.7","@aws-sdk/stream-collector-node":"^0.1.0-preview.8","@aws-sdk/util-body-length-node":"^0.1.0-preview.5","@aws-sdk/json-error-unmarshaller":"^0.1.0-preview.8","@aws-sdk/credential-provider-node":"^0.1.0-preview.9","@aws-sdk/middleware-content-length":"^0.1.0-preview.7","@aws-sdk/middleware-header-default":"^0.1.0-preview.7"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^24.7.1","rimraf":"^2.6.2","typedoc":"^0.14.2","typescript":"~3.4.0","@types/jest":"^24.0.12","@types/node":"^10.0.0","@aws-sdk/client-documentation-generator":"^0.1.0-preview.3"},"_npmOperationalInternal":{"tmp":"tmp/client-waf-regional-node_0.1.0-preview.5_1572464102603_0.619889609734106","host":"s3://npm-registry-packages"}},"0.1.0-preview.6":{"name":"@aws-sdk/client-waf-regional-node","version":"0.1.0-preview.6","author":{"url":"https://aws.amazon.com/javascript/","name":"AWS SDK for JavaScript Team"},"license":"Apache-2.0","_id":"@aws-sdk/client-waf-regional-node@0.1.0-preview.6","maintainers":[{"name":"amzn-oss","email":"osa-3p@amazon.com"},{"name":"aws-sdk-bot","email":"aws-sdk-js@amazon.com"},{"name":"trivikr-aws","email":"trivikr@amazon.com"},{"name":"zheallan","email":"zheallan@amazon.com"}],"dist":{"shasum":"3db2652f8909fd6cbfd0dce528100372b8badceb","tarball":"https://registry.npmjs.org/@aws-sdk/client-waf-regional-node/-/client-waf-regional-node-0.1.0-preview.6.tgz","fileCount":2282,"integrity":"sha512-pTtsO0WPhgh/RdbuBX01I5/yWbOxGLPTdyatOTYdLyu/N+R6Y6RmHwEbOcSkywlPi9vBoi2nGs4CaScKA+kKCg==","signatures":[{"sig":"MEYCIQCRnmIx0zhK+XGRDRlOXxPlUZdSAx05MhtR4MmT8QpLWAIhAM2sPljg9n9SH9qrJYuecbGcoCRydIPP8NoZoiSf7n7z","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1493990,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd1FUFCRA9TVsSAnZWagAA2fQP/29dbqOhiAdqqVo0cukF\nOsDwCDw6CVMAEuVJ+lId2wiyG6Mm1EgaHeJdsZ270Lkt4fmsE71fKk4Ea2KW\nxJnPttavpO8wDdbS75eEjP66RXG7TuWV0lR690tHAZXVp7A+1YROOdKye/AE\n7SP3f7afxanPretEyHluuv6cwENOiz0LTeu3vHbrIwqAvDshlpbH5aHlUtC/\nh8K9QgiYA+Mp9Faf/nZ5g+y2YLYplTygB2tTU0gtHGbEthKrxZ84PbtcTv3v\ne6NZpDdQI5CxkQNpsSoxh0TXIeWr81ThREtio+uuEFj9gTvb0Y3WD3GN4rZf\n/KCksClBlBmMbSM7u4a4ZiTsKizQEImTDCM7RQZk/00SHP4w1tu77tQMRF1W\nKee7dTuH1vHBbapqPxggLFkzoxop5SzNy+lY+Cd6yhC0PGfhn3PCrqwh3bGH\niMY5vjE7yLx+Sj0+2Sp0l40WZ0kE/Fv9nrBD0fmTQIskjkLbSIWzHr1JhWFf\nuGvivt9pjDq2QcBRFPPT0hBFIk6kAuG50bXWFp0kfZrqFkGwlieKdJAztqcw\nGpVjZulnJql8Ljz9D4sV3tLk3pEDmfewmHt2WTyupLugqE3+fGLQKklxz+3I\nKbvZVIBDr7MrQj2GbBJijYa3uRGcRSqOdOVwqgGptAkeuha23vgUGN2x1BVC\nI74b\r\n=ZG37\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./index.js","types":"./index.d.ts","readme":"# @aws-sdk/client-waf-regional-node\n\n[![NPM version](https://img.shields.io/npm/v/@aws-sdk/client-waf-regional-node/preview.svg)](https://www.npmjs.com/package/@aws-sdk/client-waf-regional-node)\n[![NPM downloads](https://img.shields.io/npm/dm/@aws-sdk/client-waf-regional-node.svg)](https://www.npmjs.com/package/@aws-sdk/client-waf-regional-node)\n\n## Description\n\n<p>This is the <i>AWS WAF Regional API Reference</i> for using AWS WAF with Elastic Load Balancing (ELB) Application Load Balancers. The AWS WAF actions and data types listed in the reference are available for protecting Application Load Balancers. You can use these actions and data types by means of the endpoints listed in <a href=\"https://docs.aws.amazon.com/general/latest/gr/rande.html#waf_region\">AWS Regions and Endpoints</a>. This guide is for developers who need detailed information about the AWS WAF API actions, data types, and errors. For detailed information about AWS WAF features and an overview of how to use the AWS WAF API, see the <a href=\"https://docs.aws.amazon.com/waf/latest/developerguide/\">AWS WAF Developer Guide</a>.</p>\n\n## Installing\n\nTo install the this package using NPM, simply type the following into a terminal window:\n\n```\nnpm install @aws-sdk/client-waf-regional-node\n```\n\n## Getting Started\n\n### Import\n\nThe AWS SDK is modulized by clients and commands in CommonJS modules. To send a request, you only need to import the client(`WAFRegionalClient`) and the commands you need, for example `AssociateWebACLCommand`:\n\n```javascript\n//JavaScript\nconst {\n  WAFRegionalClient,\n  AssociateWebACLCommand\n} = require(\"@aws-sdk/client-waf-regional-node\");\n```\n\n```javascript\n//TypeScript\nimport {\n  WAFRegionalClient,\n  AssociateWebACLCommand\n} from \"@aws-sdk/client-waf-regional-node\";\n```\n\n### Usage\n\nTo send a request, you:\n\n- Initiate client with configuration (e.g. credentials, region). For more information you can refer to the [API reference][].\n- Initiate command with input parameters.\n- Call `send` operation on client with command object as input.\n- If you are using a custom http handler, you may call `destroy()` to close open connections.\n\n```javascript\nconst wAFRegional = new WAFRegionalClient({region: 'region'});\n//clients can be shared by different commands\nconst params = {\n  WebACLId: /**a string value*/,\n  ResourceArn: /**a string value*/,\n};\nconst associateWebACLCommand = new AssociateWebACLCommand(params);\nwAFRegional.send(associateWebACLCommand).then(data => {\n    // do something\n}).catch(error => {\n    // error handling\n})\n```\n\nIn addition to using promises, there are 2 other ways to send a request:\n\n```javascript\n// async/await\ntry {\n  const data = await wAFRegional.send(associateWebACLCommand);\n  // do something\n} catch (error) {\n  // error handling\n}\n```\n\n```javascript\n// callback\nwAFRegional.send(associateWebACLCommand, (err, data) => {\n  //do something\n});\n```\n\nThe SDK can also send requests using the simplified callback style from version 2 of the SDK.\n\n```javascript\nimport * as AWS from \"@aws-sdk/client-waf-regional-node\";\nconst wAFRegional = new AWS.WAFRegional({ region: \"region\" });\nwAFRegional.associateWebACL(params, (err, data) => {\n  //do something\n});\n```\n\n### Troubleshooting\n\nWhen the service returns an exception, the error will include the exception information, as well as response metadata (e.g. request id).\n\n```javascript\ntry {\n  const data = await wAFRegional.send(associateWebACLCommand);\n  // do something\n} catch (error) {\n  const metadata = error.$metadata;\n  console.log(\n    `requestId: ${metadata.requestId}\ncfId: ${metadata.cfId}\nextendedRequestId: ${metadata.extendedRequestId}`\n  );\n  /*\nThe keys within exceptions are also parsed. You can access them by specifying exception names:\n    if(error.name === 'SomeServiceException') {\n        const value = error.specialKeyInException;\n    }\n*/\n}\n```\n\n## Getting Help\n\nPlease use these community resources for getting help. We use the GitHub issues for tracking bugs and feature requests and have limited bandwidth to address them.\n\n- Ask a question on [StackOverflow](https://stackoverflow.com/questions/tagged/aws-sdk-js) and tag it with `aws-sdk-js`\n- Come join the AWS JavaScript community on [gitter](https://gitter.im/aws/aws-sdk-js-v3)\n- If it turns out that you may have found a bug, please [open an issue](https://github.com/aws/aws-sdk-js-v3/issues)\n\n## Contributing\n\nThis client code is generated automatically. Any modifications will be overwritten the next time the `@aws-sdk/@aws-sdk/client-waf-regional-node' package is updated. To contribute to SDK you can checkout our [code generator package][].\n\n## License\n\nThis SDK is distributed under the\n[Apache License, Version 2.0](http://www.apache.org/licenses/LICENSE-2.0),\nsee LICENSE for more information.\n\n[code generator package]: https://github.com/aws/aws-sdk-js-v3/tree/master/packages/service-types-generator\n[api reference]: https://docs.aws.amazon.com/AWSJavaScriptSDK/latest/\n","scripts":{"test":"exit 0","clean":"npm run remove-definitions && npm run remove-maps && npm run remove-js","pretest":"tsc","remove-js":"rimraf *.js && rimraf ./commands/*.js && rimraf ./model/*.js && rimraf ./types/*.js","smoke-test":"npm run pretest && node ./test/smoke/index.spec.js","remove-maps":"rimraf *.js.map && rimraf ./commands/*.js.map && rimraf ./model/*.js.map && rimraf ./types/*.js.map","prepublishOnly":"tsc","remove-definitions":"rimraf *.d.ts && rimraf ./commands/*.d.ts && rimraf ./model/*.d.ts rimraf ./types/*.d.ts","build-documentation":"npm run clean && typedoc ./","remove-documentation":"rimraf ./docs"},"_npmUser":{"name":"aws-sdk-bot","email":"aws-sdk-js@amazon.com"},"deprecated":"The package @aws-sdk/client-waf-regional-node has been renamed to @aws-sdk/client-waf-regional. Please install the renamed package.","_npmVersion":"6.9.0","description":"Node SDK for AWS WAF Regional","directories":{},"_nodeVersion":"10.16.3","dependencies":{"tslib":"^1.8.0","@aws-sdk/types":"^0.1.0-preview.7","@aws-sdk/hash-node":"^0.1.0-preview.8","@aws-sdk/json-parser":"^0.1.0-preview.7","@aws-sdk/core-handler":"^0.1.0-preview.7","@aws-sdk/json-builder":"^0.1.0-preview.7","@aws-sdk/signature-v4":"^0.1.0-preview.10","@aws-sdk/util-utf8-node":"^0.1.0-preview.4","@aws-sdk/config-resolver":"^0.1.0-preview.7","@aws-sdk/region-provider":"^0.1.0-preview.7","@aws-sdk/url-parser-node":"^0.1.0-preview.8","@aws-sdk/middleware-stack":"^0.1.0-preview.9","@aws-sdk/retry-middleware":"^0.1.0-preview.7","@aws-sdk/util-base64-node":"^0.1.0-preview.4","@aws-sdk/node-http-handler":"^0.1.0-preview.8","@aws-sdk/protocol-json-rpc":"^0.1.0-preview.8","@aws-sdk/signing-middleware":"^0.1.0-preview.10","@aws-sdk/util-user-agent-node":"^0.1.0-preview.10","@aws-sdk/middleware-serializer":"^0.1.0-preview.7","@aws-sdk/stream-collector-node":"^0.1.0-preview.9","@aws-sdk/util-body-length-node":"^0.1.0-preview.5","@aws-sdk/json-error-unmarshaller":"^0.1.0-preview.8","@aws-sdk/credential-provider-node":"^0.1.0-preview.10","@aws-sdk/middleware-content-length":"^0.1.0-preview.7","@aws-sdk/middleware-header-default":"^0.1.0-preview.7"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^24.7.1","rimraf":"^2.6.2","typedoc":"^0.14.2","typescript":"~3.4.0","@types/jest":"^24.0.12","@types/node":"^10.0.0","@aws-sdk/client-documentation-generator":"^0.1.0-preview.3"},"_npmOperationalInternal":{"tmp":"tmp/client-waf-regional-node_0.1.0-preview.6_1574196484819_0.1945146244628615","host":"s3://npm-registry-packages"}}},"time":{"created":"2019-09-09T17:58:57.555Z","modified":"2025-03-27T18:47:31.674Z","0.1.0-preview.2":"2019-09-09T17:58:57.978Z","0.1.0-preview.3":"2019-09-19T16:13:28.640Z","0.1.0-preview.4":"2019-10-29T23:59:30.169Z","0.1.0-preview.5":"2019-10-30T19:35:02.765Z","0.1.0-preview.6":"2019-11-19T20:48:05.027Z"},"author":{"url":"https://aws.amazon.com/javascript/","name":"AWS SDK for JavaScript Team"},"license":"Apache-2.0","description":"Node SDK for AWS WAF Regional","maintainers":[{"email":"osa-3p@amazon.com","name":"amzn-oss"},{"email":"aws-sdk-js-automation@amazon.com","name":"aws-sdk-bot"}],"readme":"","readmeFilename":""}