{"_id":"@aws-sdk/client-elastic-load-balancing-node","_rev":"18-e8d3fa4eb2e8c6b3947058e3c55c3b9a","name":"@aws-sdk/client-elastic-load-balancing-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-elastic-load-balancing-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-elastic-load-balancing-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":"977bd5e0f91199376baecd8f7c384405f75c7081","tarball":"https://registry.npmjs.org/@aws-sdk/client-elastic-load-balancing-node/-/client-elastic-load-balancing-node-0.1.0-preview.2.tgz","fileCount":1004,"integrity":"sha512-dWC+enMkARVwjD1y3bLZID76OEcbgWrfx8P80hCAF9ZW1gKe7QRtSbKWlja1rHq/fGJ+Go9fbBx3neRwrNBIag==","signatures":[{"sig":"MEYCIQC8oi+t202zDZffNIkFz3WS1UrH4orxLAySfCMfw9Mh2QIhAL+QYWvoH4RNqfD3ZjuJi2hWww5Fxc+Fib9HFY2V71Co","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":551432,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJddpD5CRA9TVsSAnZWagAAq48QAJVpK3+2YZP25y7lYlKU\nTY2w58DdhYqk8uhmwL6UoZalF/X9W8Y1csoe1mKrxv9NMVlv1U3nJU9klONM\nzKHScams0ek6qAqzasbOX0w0x33YMjWXaKPnNPH4rflR2xGhl5k1+0Cg66dn\nHy5GfbUMal8ggMwXwlY7DSTB8hra9pr9pEJHSunBetESn379zcGuFIGB/1KK\nwfKmzjsTgtFQGP699KIndq3JKunGPvqh1WVx7Rgqw95lWGXCrER6Inc5O5b0\nKQF3c8Pyq8d/9pAnQnv24av8Q2b8lc2QumjsTmjj5XYm6SaLW6P1e9F0xTO1\nWFUFhdN3PNc9ZG5dj4txPehBnyqzGUbVw/6EOQM8G0c+RfarQBOjTQ00AA/P\nCxoR4I3MJOW1mMB1UXYFeG/Vgsz4M0oUzahqTmzE5AU7zBqdSFBqj/Blrhrh\nKaDT1hjNo840228XXkrsluUseNK5lvK1YfWzjOtpQwdOMZI1W55YPr27TUda\nos4q5WmPhKJsckLkRfGkZNxMOIov1ACY8p+nU+bcjjpsYHlIQRSBZco1aRnA\nM0lbeSHJeh6Y3tw5YXbldulNp1GjPWm+geH0wDcmeKayFBngAC/53pIIUfI7\npfPA6tAlfkeUJetj7B66bzKSqZDHShlLh61yjE7nKts4+DZKKesIqq8GxV8O\n5i6H\r\n=ulgN\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-elastic-load-balancing-node has been renamed to @aws-sdk/client-elastic-load-balancing. Please install the renamed package.","_npmVersion":"6.9.0","description":"Node SDK for Elastic Load Balancing","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/core-handler":"^0.1.0-preview.5","@aws-sdk/signature-v4":"^0.1.0-preview.6","@aws-sdk/query-builder":"^0.1.0-preview.5","@aws-sdk/protocol-query":"^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/xml-body-parser":"^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.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/credential-provider-node":"^0.1.0-preview.6","@aws-sdk/query-error-unmarshaller":"^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-elastic-load-balancing-node_0.1.0-preview.2_1568051448726_0.13699077784509295","host":"s3://npm-registry-packages"}},"0.1.0-preview.3":{"name":"@aws-sdk/client-elastic-load-balancing-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-elastic-load-balancing-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":"6d07769bd66a651773f0946c2dcb9424479f6d97","tarball":"https://registry.npmjs.org/@aws-sdk/client-elastic-load-balancing-node/-/client-elastic-load-balancing-node-0.1.0-preview.3.tgz","fileCount":1004,"integrity":"sha512-NtYpUHxyW4YxELcR89BWKs/rGWXgxVN/ELFNbj/49bIEr2uTpNSWexXTtf6ryXrT9oLqKGMslB3QRPV17yJBMA==","signatures":[{"sig":"MEUCIDepZ+l2Y0ccCIpTx90xsDAEATCkL0CKYnXB6R5l7lc4AiEAjlYmHWtDdhl2ieXvde+a5oNH973O5E/cLgbGNv4IJRQ=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":541776,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdg6cUCRA9TVsSAnZWagAAaM0QAJ4Sw0DbLz2T6Vo4ZwCr\nyqRSw8xtUx+5LC4qIY/c+k5k3azOcxDoTL+829rojKCuHqa2bByhyanboa6W\nxwBmvGoC3gFPZP4oEOyA6EBsGRlZ3PDw57UO8YrDP7eT0Cnzf9lJ89z16Aoq\nuBKC7r8CUu6bk7zYHAl1oj9pn4jpO6B8jppKazx+cMY4fWQnftdV542ETquW\nkq65Mfns7SfXDKzbtBH4gWvDTjJVcx5Scu+McsRmzKbIpP5N0gNaTxrI21jR\nDypILxIsQ2/GxYRTnacppWZ63fJia5RP+cOckYk/yTz2jQI3qATY1vdJA4MQ\nJoK4wIDP3sr9e9m9/eSSE2f69Ej+mxecm74RqwtD3rZgex6OiRO+s/Iq2s8M\n3N7xocRwgJkW4fsKhu4Kak9kAPznduyQmRPk7tDtwsrWylBkaGTNv0195IlE\nWkFwA8yi9MlAu+5EvUzeqTczi4+2tqa8V6X3s8kzB9+mW1UPtkd4hwnaDW6w\nJWgk7m73nOE7EZO/opbI0v8aybGOZLz23uLBjq0aVuZT4UQ1s1PCsDxgR3c/\nzHfQvzqE96i8msWvFq2nN7FJP8NPxIQHzrq1ozEOJ+a+rqfnkI2tMQtJHR0d\nN9w33hfTFux982HKtiJTnmMd3n8lkAk84kPfUcGnhai6Dl+vwCr80XJQ3Gkx\nicx2\r\n=fD40\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./index.js","types":"./index.d.ts","readme":"# @aws-sdk/client-elastic-load-balancing-node\n\n[![NPM version](https://img.shields.io/npm/v/@aws-sdk/client-elastic-load-balancing-node/preview.svg)](https://www.npmjs.com/package/@aws-sdk/client-elastic-load-balancing-node)\n[![NPM downloads](https://img.shields.io/npm/dm/@aws-sdk/client-elastic-load-balancing-node.svg)](https://www.npmjs.com/package/@aws-sdk/client-elastic-load-balancing-node)\n\n## Description\n\n<fullname>Elastic Load Balancing</fullname> <p>A load balancer can distribute incoming traffic across your EC2 instances. This enables you to increase the availability of your application. The load balancer also monitors the health of its registered instances and ensures that it routes traffic only to healthy instances. You configure your load balancer to accept incoming traffic by specifying one or more listeners, which are configured with a protocol and port number for connections from clients to the load balancer and a protocol and port number for connections from the load balancer to the instances.</p> <p>Elastic Load Balancing supports three types of load balancers: Application Load Balancers, Network Load Balancers, and Classic Load Balancers. You can select a load balancer based on your application needs. For more information, see the <a href=\"http://docs.aws.amazon.com/elasticloadbalancing/latest/userguide/\">Elastic Load Balancing User Guide</a>.</p> <p>This reference covers the 2012-06-01 API, which supports Classic Load Balancers. The 2015-12-01 API supports Application Load Balancers and Network Load Balancers.</p> <p>To get started, create a load balancer with one or more listeners using <a>CreateLoadBalancer</a>. Register your instances with the load balancer using <a>RegisterInstancesWithLoadBalancer</a>.</p> <p>All Elastic Load Balancing operations are <i>idempotent</i>, which means that they complete at most one time. If you repeat an operation, it succeeds with a 200 OK response code.</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-elastic-load-balancing-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(`ElasticLoadBalancingClient`) and the commands you need, for example `AddTagsCommand`:\n\n```javascript\n//JavaScript\nconst {\n  ElasticLoadBalancingClient\n} = require(\"@aws-sdk/client-elastic-load-balancing-node/ElasticLoadBalancingClient\");\nconst {\n  AddTagsCommand\n} = require(\"@aws-sdk/client-elastic-load-balancing-node/commands/AddTagsCommand\");\n```\n\n```javascript\n//TypeScript\nimport { ElasticLoadBalancingClient } from \"@aws-sdk/client-elastic-load-balancing-node/ElasticLoadBalancingClient\";\nimport { AddTagsCommand } from \"@aws-sdk/client-elastic-load-balancing-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 elasticLoadBalancing = new ElasticLoadBalancingClient({\n  region: \"region\"\n});\n//clients can be shared by different commands\nconst params = {\n  LoadBalancerNames: [\n    /**a list of string*/\n  ],\n  Tags: [\n    /**a list of structure*/\n  ]\n};\nconst addTagsCommand = new AddTagsCommand(params);\nelasticLoadBalancing\n  .send(addTagsCommand)\n  .then(data => {\n    // do something\n  })\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 elasticLoadBalancing.send(addTagsCommand);\n  // do something\n} catch (error) {\n  // error handling\n}\n```\n\n```javascript\n// callback\nelasticLoadBalancing.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-elastic-load-balancing-node/ElasticLoadBalancing\";\nconst elasticLoadBalancing = new AWS.ElasticLoadBalancing({ region: \"region\" });\nelasticLoadBalancing.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 elasticLoadBalancing.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-elastic-load-balancing-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-elastic-load-balancing-node has been renamed to @aws-sdk/client-elastic-load-balancing. Please install the renamed package.","_npmVersion":"6.9.0","description":"Node SDK for Elastic Load Balancing","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/core-handler":"^0.1.0-preview.5","@aws-sdk/signature-v4":"^0.1.0-preview.7","@aws-sdk/query-builder":"^0.1.0-preview.5","@aws-sdk/protocol-query":"^0.1.0-preview.6","@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/xml-body-parser":"^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/credential-provider-node":"^0.1.0-preview.7","@aws-sdk/query-error-unmarshaller":"^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,"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-elastic-load-balancing-node_0.1.0-preview.3_1568909075656_0.2115457745947451","host":"s3://npm-registry-packages"}},"0.1.0-preview.4":{"name":"@aws-sdk/client-elastic-load-balancing-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-elastic-load-balancing-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":"7cb5d43fda1897b044a5d7117891ea71634a16f5","tarball":"https://registry.npmjs.org/@aws-sdk/client-elastic-load-balancing-node/-/client-elastic-load-balancing-node-0.1.0-preview.4.tgz","fileCount":1004,"integrity":"sha512-dSHxtgwmU6iQMXs3UnwDfpVV0ABYUg8sx+Y6Zi+KBSZZ5F0XtsP/J8oRiqJUJkk6i2i7n9bdl9+i65uJvJ4B0g==","signatures":[{"sig":"MEQCIFCx0dFTh5RwrU6ugDwhicyRyn7jwZUHreRyBkVCUf2LAiAnwg0HETv2SviD7J4wACZzesm+Bnxt//UY2x0WryFlgQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":541763,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJduNCsCRA9TVsSAnZWagAAHA4QAIYQnlc7yEk4aO6oY76M\naTDf9M7ozk9EMk2djLjUHAmVzQgpVLngFKfnqheya89gC7oHaQfLejZF42L9\nfBMebhuuaKuuQMRVoa7acoSn6inUjvZPJfbcbgccpD2wb8dQdMKaK6c3Ryyu\nenn/zzQuEcGOrjQ18Rzzj+89hNeKUYTaAzrxqCHnkxWZ95IBheJuDPUv2JQM\nOFkXo/PAi1rCRfMDMFZFF5lpwML1Kqm8hdZFoHQbeROafMB7zoYe1fMKOq1/\nWDluqCsmygT2zEZRoLKs4YwmxhMXF6xqj6H2CHv4SU+ZH9KJM1w07HKX4Mm9\nfof1sfP1IIa9INakfOJZIp6N4THVMwTW7AAVRzkKKEG0vFmClRWuqkoDMgkS\nwQij+KBs9n1XKcVWthhXZ+R0FdwOKXNYWUES+H//sDrbV+yRq70QzZ9Ym8FV\nZGkdVRZVDidxRzVmbtFvCDSiJa8uGOMzpZghBT+FP78GkRHrcICYLiJuXAKw\nERnD8ypzg9gMOUCe+cpPBpYggtHRtMXdys2+ZUPvFF2nZYRej4VActWCGJZS\njCCQhn/VkHC3+4+XG+H2mTChzxbbFFbQaX2n0l5C1RWMI0sqC5UJFfUjcWdp\nqmOn4aFGds03opCwxJiue6K2es2NPjIj95tY/zqLUcj7ILcNnHXiFcSbBfhr\nWMt4\r\n=dIW3\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./index.js","types":"./index.d.ts","readme":"# @aws-sdk/client-elastic-load-balancing-node\n\n[![NPM version](https://img.shields.io/npm/v/@aws-sdk/client-elastic-load-balancing-node/preview.svg)](https://www.npmjs.com/package/@aws-sdk/client-elastic-load-balancing-node)\n[![NPM downloads](https://img.shields.io/npm/dm/@aws-sdk/client-elastic-load-balancing-node.svg)](https://www.npmjs.com/package/@aws-sdk/client-elastic-load-balancing-node)\n\n## Description\n\n<fullname>Elastic Load Balancing</fullname> <p>A load balancer can distribute incoming traffic across your EC2 instances. This enables you to increase the availability of your application. The load balancer also monitors the health of its registered instances and ensures that it routes traffic only to healthy instances. You configure your load balancer to accept incoming traffic by specifying one or more listeners, which are configured with a protocol and port number for connections from clients to the load balancer and a protocol and port number for connections from the load balancer to the instances.</p> <p>Elastic Load Balancing supports three types of load balancers: Application Load Balancers, Network Load Balancers, and Classic Load Balancers. You can select a load balancer based on your application needs. For more information, see the <a href=\"http://docs.aws.amazon.com/elasticloadbalancing/latest/userguide/\">Elastic Load Balancing User Guide</a>.</p> <p>This reference covers the 2012-06-01 API, which supports Classic Load Balancers. The 2015-12-01 API supports Application Load Balancers and Network Load Balancers.</p> <p>To get started, create a load balancer with one or more listeners using <a>CreateLoadBalancer</a>. Register your instances with the load balancer using <a>RegisterInstancesWithLoadBalancer</a>.</p> <p>All Elastic Load Balancing operations are <i>idempotent</i>, which means that they complete at most one time. If you repeat an operation, it succeeds with a 200 OK response code.</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-elastic-load-balancing-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(`ElasticLoadBalancingClient`) and the commands you need, for example `AddTagsCommand`:\n\n```javascript\n//JavaScript\nconst {\n  ElasticLoadBalancingClient,\n  AddTagsCommand\n} = require(\"@aws-sdk/client-elastic-load-balancing-node\");\n```\n\n```javascript\n//TypeScript\nimport {\n  ElasticLoadBalancingClient,\n  AddTagsCommand\n} from \"@aws-sdk/client-elastic-load-balancing-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 elasticLoadBalancing = new ElasticLoadBalancingClient({\n  region: \"region\"\n});\n//clients can be shared by different commands\nconst params = {\n  LoadBalancerNames: [\n    /**a list of string*/\n  ],\n  Tags: [\n    /**a list of structure*/\n  ]\n};\nconst addTagsCommand = new AddTagsCommand(params);\nelasticLoadBalancing\n  .send(addTagsCommand)\n  .then(data => {\n    // do something\n  })\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 elasticLoadBalancing.send(addTagsCommand);\n  // do something\n} catch (error) {\n  // error handling\n}\n```\n\n```javascript\n// callback\nelasticLoadBalancing.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-elastic-load-balancing-node\";\nconst elasticLoadBalancing = new AWS.ElasticLoadBalancing({ region: \"region\" });\nelasticLoadBalancing.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 elasticLoadBalancing.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-elastic-load-balancing-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-elastic-load-balancing-node has been renamed to @aws-sdk/client-elastic-load-balancing. Please install the renamed package.","_npmVersion":"6.9.0","description":"Node SDK for Elastic Load Balancing","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/core-handler":"^0.1.0-preview.6","@aws-sdk/signature-v4":"^0.1.0-preview.8","@aws-sdk/query-builder":"^0.1.0-preview.6","@aws-sdk/protocol-query":"^0.1.0-preview.7","@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/xml-body-parser":"^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/credential-provider-node":"^0.1.0-preview.8","@aws-sdk/query-error-unmarshaller":"^0.1.0-preview.7","@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-elastic-load-balancing-node_0.1.0-preview.4_1572393131581_0.9076764380510849","host":"s3://npm-registry-packages"}},"0.1.0-preview.5":{"name":"@aws-sdk/client-elastic-load-balancing-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-elastic-load-balancing-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":"27e9937aaae6c81c64237be47f00a75ba80259de","tarball":"https://registry.npmjs.org/@aws-sdk/client-elastic-load-balancing-node/-/client-elastic-load-balancing-node-0.1.0-preview.5.tgz","fileCount":1004,"integrity":"sha512-d5SJpzpuCJBcpy/HMt08SWrPUls97x8eGeCbEycuFuAkQMhU+Fo9ZDhFPrSpvCeUv5noHDOroppYREpTVituOw==","signatures":[{"sig":"MEUCIQCRtS5GCINMA9zp2cSXUmvNxuVzb+lIPM2gilr1DLCg0AIgX30nM7pqM8lK+of4fhiQSikNKO883Ki8qcHQifMioTo=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":542007,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJduePSCRA9TVsSAnZWagAAiIgP/iBlOQFQYezWx6ifhS9L\nb5+Rn15Kwd7+2VFn08XXe6gAdrOY+3SxFhMRdHnZ5S6Lcj8d3Vjf09AYVmQN\nlHx7/t/Q4g/0lXgvEm8LYrTt8SC2j1jt5K8jPlomiS4niNGaStJx6uuNYu3H\nYt3bpkpKaFYqlsrmNJGEQDx5wI+192rckIlDvpRscbYJFMsL6G0VYayFexM3\ngQdL/YKjTHTvPQ0GO7T9cC7HvXVkl1LS/rIrBh9hkSS0cKOn6n3qR3pW/Gg+\noJPaLVbvRuFp8cJHvEXPSljqTJaMHETZrxvPU/PpCA4OQ9IXyuAIL/1EStvG\nkgbBxpephNJCHFyhj2nrkMf4BBYkwLF7I1Zj7RHP/dmBGIOneLVe2b4NC72Z\nm4ztxSvwOF8gBfOltjORVJHGEdC9d/FgoHr3yTRM6TO4ZktLwBSULHQuiPWt\nkBQti8NFkNqZ6I0DlSSktxYXwDLqSNvyA7b6++wf2PvTkiflXbxuYvoxM8r7\nODJQp5Nj9nzShezvQzenYxdq+wbgcLEkwQQGkDccXER0QayOr8HXz6tucQ9e\npLMn3qXS+Dw8hoZeFSud6dVlVhH+ht6QimLbLqYl6tIYmQWayD5z2OLsnjuA\n9tt4fLqP25kPYFKU9Nyi5tBSvo388R2+dzd22f8hpgoaqYa3v1yN8h2cm2LF\nd3o+\r\n=JsEG\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./index.js","types":"./index.d.ts","readme":"# @aws-sdk/client-elastic-load-balancing-node\n\n[![NPM version](https://img.shields.io/npm/v/@aws-sdk/client-elastic-load-balancing-node/preview.svg)](https://www.npmjs.com/package/@aws-sdk/client-elastic-load-balancing-node)\n[![NPM downloads](https://img.shields.io/npm/dm/@aws-sdk/client-elastic-load-balancing-node.svg)](https://www.npmjs.com/package/@aws-sdk/client-elastic-load-balancing-node)\n\n## Description\n\n<fullname>Elastic Load Balancing</fullname> <p>A load balancer can distribute incoming traffic across your EC2 instances. This enables you to increase the availability of your application. The load balancer also monitors the health of its registered instances and ensures that it routes traffic only to healthy instances. You configure your load balancer to accept incoming traffic by specifying one or more listeners, which are configured with a protocol and port number for connections from clients to the load balancer and a protocol and port number for connections from the load balancer to the instances.</p> <p>Elastic Load Balancing supports three types of load balancers: Application Load Balancers, Network Load Balancers, and Classic Load Balancers. You can select a load balancer based on your application needs. For more information, see the <a href=\"http://docs.aws.amazon.com/elasticloadbalancing/latest/userguide/\">Elastic Load Balancing User Guide</a>.</p> <p>This reference covers the 2012-06-01 API, which supports Classic Load Balancers. The 2015-12-01 API supports Application Load Balancers and Network Load Balancers.</p> <p>To get started, create a load balancer with one or more listeners using <a>CreateLoadBalancer</a>. Register your instances with the load balancer using <a>RegisterInstancesWithLoadBalancer</a>.</p> <p>All Elastic Load Balancing operations are <i>idempotent</i>, which means that they complete at most one time. If you repeat an operation, it succeeds with a 200 OK response code.</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-elastic-load-balancing-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(`ElasticLoadBalancingClient`) and the commands you need, for example `AddTagsCommand`:\n\n```javascript\n//JavaScript\nconst {\n  ElasticLoadBalancingClient,\n  AddTagsCommand\n} = require(\"@aws-sdk/client-elastic-load-balancing-node\");\n```\n\n```javascript\n//TypeScript\nimport {\n  ElasticLoadBalancingClient,\n  AddTagsCommand\n} from \"@aws-sdk/client-elastic-load-balancing-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 elasticLoadBalancing = new ElasticLoadBalancingClient({\n  region: \"region\"\n});\n//clients can be shared by different commands\nconst params = {\n  LoadBalancerNames: [\n    /**a list of string*/\n  ],\n  Tags: [\n    /**a list of structure*/\n  ]\n};\nconst addTagsCommand = new AddTagsCommand(params);\nelasticLoadBalancing\n  .send(addTagsCommand)\n  .then(data => {\n    // do something\n  })\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 elasticLoadBalancing.send(addTagsCommand);\n  // do something\n} catch (error) {\n  // error handling\n}\n```\n\n```javascript\n// callback\nelasticLoadBalancing.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-elastic-load-balancing-node\";\nconst elasticLoadBalancing = new AWS.ElasticLoadBalancing({ region: \"region\" });\nelasticLoadBalancing.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 elasticLoadBalancing.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-elastic-load-balancing-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-elastic-load-balancing-node has been renamed to @aws-sdk/client-elastic-load-balancing. Please install the renamed package.","_npmVersion":"6.9.0","description":"Node SDK for Elastic Load Balancing","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/core-handler":"^0.1.0-preview.7","@aws-sdk/signature-v4":"^0.1.0-preview.9","@aws-sdk/query-builder":"^0.1.0-preview.7","@aws-sdk/protocol-query":"^0.1.0-preview.8","@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/xml-body-parser":"^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/credential-provider-node":"^0.1.0-preview.9","@aws-sdk/query-error-unmarshaller":"^0.1.0-preview.8","@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-elastic-load-balancing-node_0.1.0-preview.5_1572463569891_0.4411464328384591","host":"s3://npm-registry-packages"}},"0.1.0-preview.6":{"name":"@aws-sdk/client-elastic-load-balancing-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-elastic-load-balancing-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":"8e82ccc275496002a7741d13bcdd724530b2992a","tarball":"https://registry.npmjs.org/@aws-sdk/client-elastic-load-balancing-node/-/client-elastic-load-balancing-node-0.1.0-preview.6.tgz","fileCount":1004,"integrity":"sha512-WI9C75ihyCuhK6qc8JM0EwSR9VrM7n4UlEvwlAPrMdljqFL/XoOWXWHUmDIXZ1v3s3Xujc68W1Yyt4WVm5vh/w==","signatures":[{"sig":"MEYCIQCYRcuZr5nkRaQqZmIbfwcHoFNSPJRUDiPYfK/HBUrSiQIhALWCPdKvu9vm9H+GFvawTOE2cMSnmDwC8n2+i3bkL19O","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":542279,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd1FQ/CRA9TVsSAnZWagAA3AYP+wWxjq+NptMxEosbX2XF\nKZA2dcGuthMOhHP+BhlGorJjQABH0DA3wzuLUCGY82rAlLFQLk4EfISCNqlA\n7CUEWty3X7FGzzGki9NaKf0i0NfmS/SYwPz9jtFSnZW/MYkZTR2LjL6jxRme\nwgJ8A6DKVtewi5EVWj2bEVVSaVHYk6/gwG+qufNJNm8M7uUxrHBb+UqLXK/O\nFe83lm3QV9anEJbxvci104UjkN5M0q9gg9oVuCzqOh2GfDKJOa7wIZdy0jOp\nIIUFfu9M8hf2MmVxRYOYRYqtubrRmMjJ4QmjXSUZzId8gWvCOY8kSG3F1oZ2\n4C2ySMm+3prQ24YH2z8Z8tUWU77Eu3+LFW1SVIMrIWNgSl3UMmvRXGZ0kmyF\nWdKsmbkWv03kN9VXyIKktBv5t2WDbuae7FmAQbTwA5p7H58j67qOLQuHeYFQ\ndHYG3gFIXxU70sa7E0jySHf/6wN/P0xLLXitpTAZKgKBazVwhWxUOTyU2wPO\nvyVBT1JfMjaRfwTm470wmpHArHhN7ktD4Pqs3VP3zle9amYumcHvtw+Tux2e\nmKNUMvvSpWYC0kMDY02Ky4woN6qbxgZ65A1ptTieal26WQPyL6cKWtdvvr5m\nkgus3ZKHga2BnbtbHqz4Mif+CHLjAGcM1SKD8Ki1ez3CvUF2xyrcdLnjyYB7\nAL7U\r\n=JMx3\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./index.js","types":"./index.d.ts","readme":"# @aws-sdk/client-elastic-load-balancing-node\n\n[![NPM version](https://img.shields.io/npm/v/@aws-sdk/client-elastic-load-balancing-node/preview.svg)](https://www.npmjs.com/package/@aws-sdk/client-elastic-load-balancing-node)\n[![NPM downloads](https://img.shields.io/npm/dm/@aws-sdk/client-elastic-load-balancing-node.svg)](https://www.npmjs.com/package/@aws-sdk/client-elastic-load-balancing-node)\n\n## Description\n\n<fullname>Elastic Load Balancing</fullname> <p>A load balancer can distribute incoming traffic across your EC2 instances. This enables you to increase the availability of your application. The load balancer also monitors the health of its registered instances and ensures that it routes traffic only to healthy instances. You configure your load balancer to accept incoming traffic by specifying one or more listeners, which are configured with a protocol and port number for connections from clients to the load balancer and a protocol and port number for connections from the load balancer to the instances.</p> <p>Elastic Load Balancing supports three types of load balancers: Application Load Balancers, Network Load Balancers, and Classic Load Balancers. You can select a load balancer based on your application needs. For more information, see the <a href=\"http://docs.aws.amazon.com/elasticloadbalancing/latest/userguide/\">Elastic Load Balancing User Guide</a>.</p> <p>This reference covers the 2012-06-01 API, which supports Classic Load Balancers. The 2015-12-01 API supports Application Load Balancers and Network Load Balancers.</p> <p>To get started, create a load balancer with one or more listeners using <a>CreateLoadBalancer</a>. Register your instances with the load balancer using <a>RegisterInstancesWithLoadBalancer</a>.</p> <p>All Elastic Load Balancing operations are <i>idempotent</i>, which means that they complete at most one time. If you repeat an operation, it succeeds with a 200 OK response code.</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-elastic-load-balancing-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(`ElasticLoadBalancingClient`) and the commands you need, for example `AddTagsCommand`:\n\n```javascript\n//JavaScript\nconst {\n  ElasticLoadBalancingClient,\n  AddTagsCommand\n} = require(\"@aws-sdk/client-elastic-load-balancing-node\");\n```\n\n```javascript\n//TypeScript\nimport {\n  ElasticLoadBalancingClient,\n  AddTagsCommand\n} from \"@aws-sdk/client-elastic-load-balancing-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 elasticLoadBalancing = new ElasticLoadBalancingClient({\n  region: \"region\"\n});\n//clients can be shared by different commands\nconst params = {\n  LoadBalancerNames: [\n    /**a list of string*/\n  ],\n  Tags: [\n    /**a list of structure*/\n  ]\n};\nconst addTagsCommand = new AddTagsCommand(params);\nelasticLoadBalancing\n  .send(addTagsCommand)\n  .then(data => {\n    // do something\n  })\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 elasticLoadBalancing.send(addTagsCommand);\n  // do something\n} catch (error) {\n  // error handling\n}\n```\n\n```javascript\n// callback\nelasticLoadBalancing.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-elastic-load-balancing-node\";\nconst elasticLoadBalancing = new AWS.ElasticLoadBalancing({ region: \"region\" });\nelasticLoadBalancing.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 elasticLoadBalancing.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-elastic-load-balancing-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-elastic-load-balancing-node has been renamed to @aws-sdk/client-elastic-load-balancing. Please install the renamed package.","_npmVersion":"6.9.0","description":"Node SDK for Elastic Load Balancing","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/core-handler":"^0.1.0-preview.7","@aws-sdk/signature-v4":"^0.1.0-preview.10","@aws-sdk/query-builder":"^0.1.0-preview.7","@aws-sdk/protocol-query":"^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/xml-body-parser":"^0.1.0-preview.9","@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/credential-provider-node":"^0.1.0-preview.10","@aws-sdk/query-error-unmarshaller":"^0.1.0-preview.8","@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-elastic-load-balancing-node_0.1.0-preview.6_1574196286560_0.7242308171119924","host":"s3://npm-registry-packages"}}},"time":{"created":"2019-09-09T17:50:48.543Z","modified":"2025-03-27T18:38:25.440Z","0.1.0-preview.2":"2019-09-09T17:50:48.915Z","0.1.0-preview.3":"2019-09-19T16:04:35.778Z","0.1.0-preview.4":"2019-10-29T23:52:11.800Z","0.1.0-preview.5":"2019-10-30T19:26:10.009Z","0.1.0-preview.6":"2019-11-19T20:44:46.809Z"},"author":{"url":"https://aws.amazon.com/javascript/","name":"AWS SDK for JavaScript Team"},"license":"Apache-2.0","description":"Node SDK for Elastic Load Balancing","maintainers":[{"email":"osa-3p@amazon.com","name":"amzn-oss"},{"email":"aws-sdk-js-automation@amazon.com","name":"aws-sdk-bot"}],"readme":"","readmeFilename":""}