{"_id":"@aws-sdk/client-elasticsearch-service-node","_rev":"18-2f6716cf08055471111afff1f2194b86","name":"@aws-sdk/client-elasticsearch-service-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-elasticsearch-service-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-elasticsearch-service-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":"97a756566d1d40c265d4ad78a7303fbd235cd20c","tarball":"https://registry.npmjs.org/@aws-sdk/client-elasticsearch-service-node/-/client-elasticsearch-service-node-0.1.0-preview.2.tgz","fileCount":860,"integrity":"sha512-nlrEKn5c/uiumSW7hGXebBKLmZ8Cx36iqKcAl0BTzI0L62Kn6hEaZE3XKXzsknjahSxjH9QqYxWySIF7msXVSg==","signatures":[{"sig":"MEUCIQDJbCOIJXYZXRHfHoN9KKjwKYiQfI1xj5pkzI8Zsld62QIgI9DWZvSTxlRUkIApm2X9glz3MS/1nGttL0BLZU9Fqy4=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":533756,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJddpEbCRA9TVsSAnZWagAAgQAP/1Ri+7yhh4EF83Ei3rLs\n3Oj6t1yYGYhDdEt/rAvNnRlPReNauiR8uvzZ0vBF88Zgv5MQ4nn19cKqIVMw\n9My7OJkPYGsB2HCLiMvZGdH2M9+zW+00i6k7HdE4hux9bYa3CPWP9i+dkWfU\nRrKsc0a2Olk8U5Ya7n04xWeY5NYkvPvIbBHpILDgpsGVV+XTMtmZ4S4C30vK\nDVyjRoK7XLcFoqesH+4zi+Mrd3fvgPixikFUOLwGf0AtMIhVIGJsFWUErdRQ\nMNHpZhNe39e+z8tiZCr3i+bTBLxSNlYQjuHaJepnQGm28ilm80ffD1WNAixV\n49sEt2OWnUF9z1AuJ3XgQrJmmvQMlkE/R9MFUdpys4cicTo7PV4Tp7vwRO/T\n0B+QRbtrxlElP2/5pzao1yDGBcE+Lk/9uzAJomkZSBFZBCulTlLXMowH7bSw\nI3LLSZu/LVpFNFy5PuRK6ai+BS6HLV/Sdl1Qe+8AQHa2dbhk3to9kKCGub7t\n9kn5QqRATsQDQbWWMaW2cHgP5IhKYmXv4SMHhO3rD+r5kdy0z7L7dFbYlwCZ\nw/OmeJOmJJAD3ho2k7QcT83gD8o51FNf/UQXJvQAzp28ZedrPdQ5SI9PdLbb\nDoBdPmycDUlhpz595lF7c333T+6DPAl4uAZJdXZ1kHRjVWk6xyn42MMhO6PW\nZwSD\r\n=7YoB\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-elasticsearch-service-node has been renamed to @aws-sdk/client-elasticsearch-service. Please install the renamed package.","_npmVersion":"6.9.0","description":"Node SDK for Amazon Elasticsearch Service","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/protocol-rest":"^0.1.0-preview.7","@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/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-elasticsearch-service-node_0.1.0-preview.2_1568051478612_0.4622527603932287","host":"s3://npm-registry-packages"}},"0.1.0-preview.3":{"name":"@aws-sdk/client-elasticsearch-service-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-elasticsearch-service-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":"3bbfb47f0aaeda9b1ecc4eadfa2d6ebf3ce4ca10","tarball":"https://registry.npmjs.org/@aws-sdk/client-elasticsearch-service-node/-/client-elasticsearch-service-node-0.1.0-preview.3.tgz","fileCount":860,"integrity":"sha512-AEiRWjZm6BbOGRFWi5n3KKzieCIwBkgsk7e4zPLyD2q0AvzqYaBWk+2poXgqz7ne5cYc91ecgecxdVy5x8sN/Q==","signatures":[{"sig":"MEUCID8YIxDJK1W5xham2feG5KpnRc6cJ4DkRFGwk3tuUYcaAiEA0XojwmWBHhRIuJfVfMfiEBqX4yaibRH/bb8/ylyJgzk=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":525347,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdg6crCRA9TVsSAnZWagAALggP/ReLXXwlh+2txrLvKlS5\ncMzQJyGVFUGeLwHUhYW+03T1w7XhNbS7Fsnla4uKwrzN48kzm7An7SHb44Ux\njzwVty1aZV28Bv3dDuFiqQwF0yWAHlghZREMLsyYL3le2HYqkued2Bp+lRUC\nA+rneGsApnj7OZLb6J10hhGfw7HPX6/7RlT4GBT/MGnciFvBymwTDEMl1cEU\nqGzrQho0Ah83dGPk1hkahTWOmWKsw863gmKyuqbwvLDA5iRLxIavTWvbyLXz\neYYNo0PXW4mNJoOX2lbIh7bBanAHG7eIolrhd+TWYZFgNZdw6guWpqjDctPn\nhSHkrnM/NlLs65iXKW2k16fBS3ECB5v1J3FlmwjGxTIbGjIDKYWBXQQhnmOJ\nmlkoFbAo7Otq0bkMBD9Yr9C+tWVZELn5p1h0zNr6AkeG8Ha4BNeqGTbmGk9k\nAMtuE6fgDUZU9zQZ/W5h7Xdvv556lSaSNIfh2cKDE+Wp8RXulsdq08PkBELi\nz4veMp+tibyCIBJqGsHgGx1Zegzm6EITRzLoc2WEFlb9m7JOoOiaApcFCj60\njinwFrisrfMWMO/abQ1ucs+4e6VV3qwkV9U0W/IW3POeQ7yGCeZPwx4QvydR\n/D00OVHGciY09RuCxDFEMKeENpnKDMUnMrRoyN3N1dcUH4WpGWQQrh/ygrMV\nZ+iU\r\n=tw2c\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./index.js","types":"./index.d.ts","readme":"# @aws-sdk/client-elasticsearch-service-node\n\n[![NPM version](https://img.shields.io/npm/v/@aws-sdk/client-elasticsearch-service-node/preview.svg)](https://www.npmjs.com/package/@aws-sdk/client-elasticsearch-service-node)\n[![NPM downloads](https://img.shields.io/npm/dm/@aws-sdk/client-elasticsearch-service-node.svg)](https://www.npmjs.com/package/@aws-sdk/client-elasticsearch-service-node)\n\n## Description\n\n<fullname>Amazon Elasticsearch Configuration Service</fullname> <p>Use the Amazon Elasticsearch configuration API to create, configure, and manage Elasticsearch domains.</p> <p>The endpoint for configuration service requests is region-specific: es.<i>region</i>.amazonaws.com. For example, es.us-east-1.amazonaws.com. For a current list of supported regions and endpoints, see <a href=\"http://docs.aws.amazon.com/general/latest/gr/rande.html#elasticsearch-service-regions\" target=\"_blank\">Regions and Endpoints</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-elasticsearch-service-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(`ElasticsearchServiceClient`) and the commands you need, for example `AddTagsCommand`:\n\n```javascript\n//JavaScript\nconst {\n  ElasticsearchServiceClient\n} = require(\"@aws-sdk/client-elasticsearch-service-node/ElasticsearchServiceClient\");\nconst {\n  AddTagsCommand\n} = require(\"@aws-sdk/client-elasticsearch-service-node/commands/AddTagsCommand\");\n```\n\n```javascript\n//TypeScript\nimport { ElasticsearchServiceClient } from \"@aws-sdk/client-elasticsearch-service-node/ElasticsearchServiceClient\";\nimport { AddTagsCommand } from \"@aws-sdk/client-elasticsearch-service-node/commands/AddTagsCommand\";\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 elasticsearchService = new ElasticsearchServiceClient({region: 'region'});\n//clients can be shared by different commands\nconst params = {\n  ARN: /**a string value*/,\n  TagList: [ /**a list of structure*/ ],\n};\nconst addTagsCommand = new AddTagsCommand(params);\nelasticsearchService.send(addTagsCommand).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 elasticsearchService.send(addTagsCommand);\n  // do something\n} catch (error) {\n  // error handling\n}\n```\n\n```javascript\n// callback\nelasticsearchService.send(addTagsCommand, (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-elasticsearch-service-node/ElasticsearchService\";\nconst elasticsearchService = new AWS.ElasticsearchService({ region: \"region\" });\nelasticsearchService.addTags(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 elasticsearchService.send(addTagsCommand);\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-elasticsearch-service-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-elasticsearch-service-node has been renamed to @aws-sdk/client-elasticsearch-service. Please install the renamed package.","_npmVersion":"6.9.0","description":"Node SDK for Amazon Elasticsearch Service","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/protocol-rest":"^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/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-elasticsearch-service-node_0.1.0-preview.3_1568909099420_0.3166172454931415","host":"s3://npm-registry-packages"}},"0.1.0-preview.4":{"name":"@aws-sdk/client-elasticsearch-service-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-elasticsearch-service-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":"677eb5fd46c3ae1ab7be36357b1c8ec4d4bac923","tarball":"https://registry.npmjs.org/@aws-sdk/client-elasticsearch-service-node/-/client-elasticsearch-service-node-0.1.0-preview.4.tgz","fileCount":860,"integrity":"sha512-37VyN4lRsfGLpmU0VOzbqgHtw7U8HNIFFLXWGnlAFcexsMrMvcmtgE+he5bmCmDOZUjlOls4H6877MTA1diARA==","signatures":[{"sig":"MEYCIQCjKv3zbDU3XZRBQ2t5wCmM8coJxgwBAmSTo8B5I5bgywIhAIHAA2K6BTeS2XhOv/wYzV3dOq/uRc7S2A8t6tbhHwOk","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":525336,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJduNC9CRA9TVsSAnZWagAA00cP/ja8kG3YmIne1vRx36tR\n9cc7I/ZgIz5a4LhRJuywwSopA0f66GdjqKAIr55wmIP3YLhQTtYpn6S55DUi\nxantpvD+SdJX/0gN5Zh5r9vxyJwkja/E6YvWblIVIzMQh1HYYGSd4sVtuy7U\nC1x45c7rRa36Y5SggpKdphACLvXKEPcDaKx4k7JslOehCnSMSshTMC0n7YUo\nG+C9wvEEZwrFfR+29VgIDS4WORzdwJk7aKglMwK+esPPJUkXumQTwsTAfocF\nDhGSohgj9KMXBpjzwhzWc509SN9o2uZ4mCmfQDkSr137+vk6gsonIl2zfrU0\nbiQ8ypRbl6HU3McaqgM5UpWbwr6vKug/93eYPcQgHBV65U6kSKsdJYrKGqJi\n21YzO9WXNnBjZeyGaDxlWzmkc7YasLfg4be8CFw7KrDabxcys1hWB3ofYMcv\nG2lmPbEc71oiTQZZ1Xwt99ICBhMi/RBahJeem6j/UEg32+E/5nJVOQR3NblH\nlihjKk96Wq6voE5KIU4uGrW/sx/sLKAXN4uCBcye67UVNJdtiC8YwXUL7tm3\nK+KiVG657fym+B8iElxfAWR+JqeOUH/MKc7ciJ+4Ohb15Cd3F/lul+Sv/5dC\n4dMp9B3gpsQ3KsrIYHNG/Y52kQxE1t0H2QUOlyXx9cMZ7EH1ul1aCRgAUxDa\nvu1y\r\n=om8S\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./index.js","types":"./index.d.ts","readme":"# @aws-sdk/client-elasticsearch-service-node\n\n[![NPM version](https://img.shields.io/npm/v/@aws-sdk/client-elasticsearch-service-node/preview.svg)](https://www.npmjs.com/package/@aws-sdk/client-elasticsearch-service-node)\n[![NPM downloads](https://img.shields.io/npm/dm/@aws-sdk/client-elasticsearch-service-node.svg)](https://www.npmjs.com/package/@aws-sdk/client-elasticsearch-service-node)\n\n## Description\n\n<fullname>Amazon Elasticsearch Configuration Service</fullname> <p>Use the Amazon Elasticsearch configuration API to create, configure, and manage Elasticsearch domains.</p> <p>The endpoint for configuration service requests is region-specific: es.<i>region</i>.amazonaws.com. For example, es.us-east-1.amazonaws.com. For a current list of supported regions and endpoints, see <a href=\"http://docs.aws.amazon.com/general/latest/gr/rande.html#elasticsearch-service-regions\" target=\"_blank\">Regions and Endpoints</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-elasticsearch-service-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(`ElasticsearchServiceClient`) and the commands you need, for example `AddTagsCommand`:\n\n```javascript\n//JavaScript\nconst {\n  ElasticsearchServiceClient,\n  AddTagsCommand\n} = require(\"@aws-sdk/client-elasticsearch-service-node\");\n```\n\n```javascript\n//TypeScript\nimport {\n  ElasticsearchServiceClient,\n  AddTagsCommand\n} from \"@aws-sdk/client-elasticsearch-service-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 elasticsearchService = new ElasticsearchServiceClient({region: 'region'});\n//clients can be shared by different commands\nconst params = {\n  ARN: /**a string value*/,\n  TagList: [ /**a list of structure*/ ],\n};\nconst addTagsCommand = new AddTagsCommand(params);\nelasticsearchService.send(addTagsCommand).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 elasticsearchService.send(addTagsCommand);\n  // do something\n} catch (error) {\n  // error handling\n}\n```\n\n```javascript\n// callback\nelasticsearchService.send(addTagsCommand, (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-elasticsearch-service-node\";\nconst elasticsearchService = new AWS.ElasticsearchService({ region: \"region\" });\nelasticsearchService.addTags(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 elasticsearchService.send(addTagsCommand);\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-elasticsearch-service-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-elasticsearch-service-node has been renamed to @aws-sdk/client-elasticsearch-service. Please install the renamed package.","_npmVersion":"6.9.0","description":"Node SDK for Amazon Elasticsearch Service","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/protocol-rest":"^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/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-elasticsearch-service-node_0.1.0-preview.4_1572393149352_0.7451374794380778","host":"s3://npm-registry-packages"}},"0.1.0-preview.5":{"name":"@aws-sdk/client-elasticsearch-service-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-elasticsearch-service-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":"9860caa4bccecf2c5502d9b9f27982413ec31d82","tarball":"https://registry.npmjs.org/@aws-sdk/client-elasticsearch-service-node/-/client-elasticsearch-service-node-0.1.0-preview.5.tgz","fileCount":860,"integrity":"sha512-nHSBWsDhLAzGpElFsJuP9FBYST9ej1c+ntpiIZODAmHRj4ed53RfubJCJ9FdPyBCABkThvh3ZLK+XP2zLkI8TA==","signatures":[{"sig":"MEQCIHUc9fIeIrMUEoayZ/qZYlPssI0JwMlp9zJqruNHsOqDAiB6ZQvt3yxdo203VpvJ3LgLWH6QOQtygOWOnZwu+HlCRw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":525580,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJduePsCRA9TVsSAnZWagAA1QcP/ROh52WD/RgMmvFoeFIU\nECVHXGwsejXkB+bGzsFnzFzoMgtxpVHFcDOO13zpEdI4JTxg3QiDRHSDxM81\ndo89DoQymxaPppf/cysEZ/fkIQW+dKID3Sc/x/+LxwsRHXY4jVZqizfdGMxV\ngsqmIWpszSncAMb9bCkbcCjkRLgxviqFN0nqpr9cxQYewfrGehi059du0QoF\naoGR00fkzCCHr5pBy1vTkpYoZ+yZGUlTubyY6hQbVeiqgbkJoMX1ybhvqk9B\nejdA55V/7tphTwmh8yZNAoNKO7l6to7fKDu4z8NWtwA8pWwMrrmZIAxNZNWO\nq91PKQI5i2xljEvEIUuaU5G6+uQOHNG/GVIh1MALVMbQul88UWe2dag0mpvC\nTx7vZoTPSu+RbniZXVOg6ZFVpMsAnt5NqWQM3sMKqCOixNFewXZ2jckihNrE\nyHUWW1qqpIVpTP/jxismnv0oJd+0Iw9CL+RcJJ5KgtRlv6fR3RFaQ9ZczbwZ\nUjJe+4/QIjLVAfw1Y27FFYqsu1f7dRVgHJw1ZbQFTQwBKQl8xMBOu+ZJ9r9n\nlWgO8XDPC8SAgMeu/LpiKdDt3nAih9aP3GkNWcWDlqBwnmsMcyZ2bWwlRtvq\nLXax95UormMNnAR6hM5eBANh4kmO2tRCYdiuMCYtpfDlm2lwI7pxuzXB1dKf\nPgk/\r\n=G6ma\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./index.js","types":"./index.d.ts","readme":"# @aws-sdk/client-elasticsearch-service-node\n\n[![NPM version](https://img.shields.io/npm/v/@aws-sdk/client-elasticsearch-service-node/preview.svg)](https://www.npmjs.com/package/@aws-sdk/client-elasticsearch-service-node)\n[![NPM downloads](https://img.shields.io/npm/dm/@aws-sdk/client-elasticsearch-service-node.svg)](https://www.npmjs.com/package/@aws-sdk/client-elasticsearch-service-node)\n\n## Description\n\n<fullname>Amazon Elasticsearch Configuration Service</fullname> <p>Use the Amazon Elasticsearch configuration API to create, configure, and manage Elasticsearch domains.</p> <p>The endpoint for configuration service requests is region-specific: es.<i>region</i>.amazonaws.com. For example, es.us-east-1.amazonaws.com. For a current list of supported regions and endpoints, see <a href=\"http://docs.aws.amazon.com/general/latest/gr/rande.html#elasticsearch-service-regions\" target=\"_blank\">Regions and Endpoints</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-elasticsearch-service-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(`ElasticsearchServiceClient`) and the commands you need, for example `AddTagsCommand`:\n\n```javascript\n//JavaScript\nconst {\n  ElasticsearchServiceClient,\n  AddTagsCommand\n} = require(\"@aws-sdk/client-elasticsearch-service-node\");\n```\n\n```javascript\n//TypeScript\nimport {\n  ElasticsearchServiceClient,\n  AddTagsCommand\n} from \"@aws-sdk/client-elasticsearch-service-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 elasticsearchService = new ElasticsearchServiceClient({region: 'region'});\n//clients can be shared by different commands\nconst params = {\n  ARN: /**a string value*/,\n  TagList: [ /**a list of structure*/ ],\n};\nconst addTagsCommand = new AddTagsCommand(params);\nelasticsearchService.send(addTagsCommand).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 elasticsearchService.send(addTagsCommand);\n  // do something\n} catch (error) {\n  // error handling\n}\n```\n\n```javascript\n// callback\nelasticsearchService.send(addTagsCommand, (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-elasticsearch-service-node\";\nconst elasticsearchService = new AWS.ElasticsearchService({ region: \"region\" });\nelasticsearchService.addTags(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 elasticsearchService.send(addTagsCommand);\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-elasticsearch-service-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-elasticsearch-service-node has been renamed to @aws-sdk/client-elasticsearch-service. Please install the renamed package.","_npmVersion":"6.9.0","description":"Node SDK for Amazon Elasticsearch Service","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/protocol-rest":"^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/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-elasticsearch-service-node_0.1.0-preview.5_1572463596007_0.5224637266887007","host":"s3://npm-registry-packages"}},"0.1.0-preview.6":{"name":"@aws-sdk/client-elasticsearch-service-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-elasticsearch-service-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":"e9dc4bd3f15b839ea5fe138678e537c96aa9e791","tarball":"https://registry.npmjs.org/@aws-sdk/client-elasticsearch-service-node/-/client-elasticsearch-service-node-0.1.0-preview.6.tgz","fileCount":860,"integrity":"sha512-SLLDUKJ/PkUXh60BJ0FUcj7l2NI5eIhVEAHazVJvr5kc/bqYcj9116FxckyhnB3Yd3cTiKHAleBJPQK2uzdCsw==","signatures":[{"sig":"MEUCIQDBTERxs1XyJ0kPndYh7uLJASLI+ApSS75Q6wSfYtvOBgIgOxSlMqKvIiGzkn8yIk00UpMHiT4M7h94YJkAxaDN0lE=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":525853,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd1FRGCRA9TVsSAnZWagAAQo0P/RUpS5r4v688UrPdcwOv\nLHIHelamxbLIRXp4oZDQE5yX1SDzKXGeOvCDC7XIaca6jun88Yy7ae5lZfqM\nJpxCd690pUP/15ifRJo3IH1hyh2GB4IbPcsmDxL/pijbWx6T5Xd0GH29BSEc\nJad5bzhKMILG6t+h84XU1/avzs+zzPytXSqBmr/HgoV87OUgTvVaI7iweljc\na3iDLwOcaNdHF6jgjZfOARCotBgJ2j+8NDnzXWEgZyT2koj5x9YOLN/Shx6X\nC+knACEFskB3OUDFFBN9oWNqAXVIACYxEP0JSqgznI1gyWB5UWPw+dqo8/6e\nkootR+oYoOYvc+6JgA9iFT4OBhMgNcSLAHt+dMBMzzqwO6joucaiYrLrUQWX\nWLYZB/vMB6rm8UwvOmut8YWlB0lD9Iiun/Dg51p0dVmGxNqwEW5ximhwaJBi\nB/yc/EpeqmIZX3bNWNURT7bN4NqQ/oBuWyDJwu4TAwzcUshZ5iG3Re5IFdkN\nY0GF7mMIBEmhjKmtH4x7sTh+Zp2jfvtCA+Fjo9QvOGUSpFUa+eLzw+PuDXGu\naFQZ9Bh+tMdC4R2OGzh2E6xYipLTqYsFyx0g2ValmhRm0KopNPeWZZ0yJFnI\nMdbuCMzhzFsDsM3z/tpJP84jAFc/q2zxe+53wknXm2W1apaN4BOkjsrMTDnb\nohG9\r\n=QvEB\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./index.js","types":"./index.d.ts","readme":"# @aws-sdk/client-elasticsearch-service-node\n\n[![NPM version](https://img.shields.io/npm/v/@aws-sdk/client-elasticsearch-service-node/preview.svg)](https://www.npmjs.com/package/@aws-sdk/client-elasticsearch-service-node)\n[![NPM downloads](https://img.shields.io/npm/dm/@aws-sdk/client-elasticsearch-service-node.svg)](https://www.npmjs.com/package/@aws-sdk/client-elasticsearch-service-node)\n\n## Description\n\n<fullname>Amazon Elasticsearch Configuration Service</fullname> <p>Use the Amazon Elasticsearch configuration API to create, configure, and manage Elasticsearch domains.</p> <p>The endpoint for configuration service requests is region-specific: es.<i>region</i>.amazonaws.com. For example, es.us-east-1.amazonaws.com. For a current list of supported regions and endpoints, see <a href=\"http://docs.aws.amazon.com/general/latest/gr/rande.html#elasticsearch-service-regions\" target=\"_blank\">Regions and Endpoints</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-elasticsearch-service-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(`ElasticsearchServiceClient`) and the commands you need, for example `AddTagsCommand`:\n\n```javascript\n//JavaScript\nconst {\n  ElasticsearchServiceClient,\n  AddTagsCommand\n} = require(\"@aws-sdk/client-elasticsearch-service-node\");\n```\n\n```javascript\n//TypeScript\nimport {\n  ElasticsearchServiceClient,\n  AddTagsCommand\n} from \"@aws-sdk/client-elasticsearch-service-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 elasticsearchService = new ElasticsearchServiceClient({region: 'region'});\n//clients can be shared by different commands\nconst params = {\n  ARN: /**a string value*/,\n  TagList: [ /**a list of structure*/ ],\n};\nconst addTagsCommand = new AddTagsCommand(params);\nelasticsearchService.send(addTagsCommand).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 elasticsearchService.send(addTagsCommand);\n  // do something\n} catch (error) {\n  // error handling\n}\n```\n\n```javascript\n// callback\nelasticsearchService.send(addTagsCommand, (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-elasticsearch-service-node\";\nconst elasticsearchService = new AWS.ElasticsearchService({ region: \"region\" });\nelasticsearchService.addTags(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 elasticsearchService.send(addTagsCommand);\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-elasticsearch-service-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-elasticsearch-service-node has been renamed to @aws-sdk/client-elasticsearch-service. Please install the renamed package.","_npmVersion":"6.9.0","description":"Node SDK for Amazon Elasticsearch Service","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/protocol-rest":"^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/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-elasticsearch-service-node_0.1.0-preview.6_1574196294191_0.7016212253998517","host":"s3://npm-registry-packages"}}},"time":{"created":"2019-09-09T17:51:18.437Z","modified":"2025-03-27T18:42:32.379Z","0.1.0-preview.2":"2019-09-09T17:51:18.786Z","0.1.0-preview.3":"2019-09-19T16:04:59.605Z","0.1.0-preview.4":"2019-10-29T23:52:29.618Z","0.1.0-preview.5":"2019-10-30T19:26:36.180Z","0.1.0-preview.6":"2019-11-19T20:44:54.365Z"},"author":{"url":"https://aws.amazon.com/javascript/","name":"AWS SDK for JavaScript Team"},"license":"Apache-2.0","description":"Node SDK for Amazon Elasticsearch Service","maintainers":[{"email":"osa-3p@amazon.com","name":"amzn-oss"},{"email":"aws-sdk-js-automation@amazon.com","name":"aws-sdk-bot"}],"readme":"","readmeFilename":""}