{"_id":"@aws-sdk/client-auto-scaling-browser","_rev":"19-ad45dd2717ad065ef450d6e1b6b75ea4","name":"@aws-sdk/client-auto-scaling-browser","dist-tags":{"latest":"0.1.0-preview.2","preview":"0.1.0-preview.6"},"versions":{"0.1.0-preview.2":{"name":"@aws-sdk/client-auto-scaling-browser","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-auto-scaling-browser@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":"9852fc94bf313c06c3ef9c6ca774d7ec1808d6b4","tarball":"https://registry.npmjs.org/@aws-sdk/client-auto-scaling-browser/-/client-auto-scaling-browser-0.1.0-preview.2.tgz","fileCount":1566,"integrity":"sha512-A+JuOnCuB6sKlCIxX8DQq8mSTm+pQBZtfnWIrab1HxAze9Lxt9F9Tr9s6FNV4Nt6ErbBS7+0q6kQQPBI+wN6rQ==","signatures":[{"sig":"MEUCIBGGcwDtc14ba2xtBQH/QmsMBG2eYDB1a++p1EOSxG5nAiEAhMRdmeUk6b67HUlaSxwXytZ0RmtpmlSzZRiSsccXm6A=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":932455,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJddpM3CRA9TVsSAnZWagAA6GMP/1doLAaMRjklLG0B/9et\nBYne9j11CATJvzqbX2IuVFjISaD4tp5EbfYZNOez3JGCDERSKKDAE57aRJeQ\naAJlM8mWxPeKwm5fIWUQBg2Begs48cYTPMYgipXaMwnrE8bkwc6o1gU2yyqK\nFxDHXgih8AQTchwd13OSHmr2Y9KP7ganJmQc32i7UFvrpNKvSNxxMvrhf/he\nFzd8GgVKx+IKqtijdAq0EAZE9OiZd34l1kPVBo7P0Gmi1Qq+eiZnGILFTCTm\n/OLztj3iw1snrxwOV/5t12AHKtutj/a/LvCucsVWY5NFF9Sha2Wyvg/u2rsA\ndwt5662o0ozy8UD/B1OKKA4Um9YdkoO3J0LjEdwXzSE8BoUav+bNgN6a8w5b\nKLGjOW6qzcW5C2l9LFHqMxF3BwZ2HvhLFnmV5PXDGQpW2ks/RCr7x8Cwdsou\nBpSJlLS3Xpz4GlJJZJsh9vRuUKnOquonsdURshOtcLoJs7SuXg20mmbH74Bo\nIAZ2qzeR/b15TSt0W38trJtTip6SEhpe3IWH5CGANjXquBFZgXiL/8bAyr8G\n/VxAfZ9ObwpBhVZdhwYFx2JvdSau9Q9OcsqnstNIMnCIbiS2xrGlinNnBqZM\nz7BYuqtSx9/kmkwGOwVqFia9c33FdBlTWYWoIpxBK+iA1CS1FBSCHHVTo4iE\nty1j\r\n=mBBB\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":"karma start karma.conf","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-auto-scaling-browser has been renamed to @aws-sdk/client-auto-scaling. Please install the renamed package.","_npmVersion":"6.9.0","description":"Browser SDK for Auto Scaling","directories":{},"_nodeVersion":"10.1.0","dependencies":{"tslib":"^1.8.0","@aws-sdk/types":"^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/config-resolver":"^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-crypto/sha256-browser":"^0.1.0-preview.1","@aws-sdk/util-utf8-browser":"^0.1.0-preview.3","@aws-sdk/fetch-http-handler":"^0.1.0-preview.5","@aws-sdk/signing-middleware":"^0.1.0-preview.6","@aws-sdk/url-parser-browser":"^0.1.0-preview.5","@aws-sdk/util-base64-browser":"^0.1.0-preview.3","@aws-sdk/middleware-serializer":"^0.1.0-preview.5","@aws-sdk/util-user-agent-browser":"^0.1.0-preview.6","@aws-sdk/query-error-unmarshaller":"^0.1.0-preview.6","@aws-sdk/stream-collector-browser":"^0.1.0-preview.5","@aws-sdk/util-body-length-browser":"^0.1.0-preview.3","@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","karma":"^4.1.0","rimraf":"^2.6.2","typedoc":"^0.14.2","puppeteer":"^1.0.0","typescript":"~3.4.0","@types/jest":"^24.0.12","jasmine-core":"^3.4.0","karma-jasmine":"^2.0.1","karma-coverage":"^1.1.1","karma-typescript":"^4.0.0","karma-chrome-launcher":"^3.0.0","@aws-sdk/karma-credential-loader":"^0.1.0-preview.6","@aws-sdk/client-documentation-generator":"^0.1.0-preview.3"},"_npmOperationalInternal":{"tmp":"tmp/client-auto-scaling-browser_0.1.0-preview.2_1568052023027_0.5878669236974285","host":"s3://npm-registry-packages"}},"0.1.0-preview.3":{"name":"@aws-sdk/client-auto-scaling-browser","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-auto-scaling-browser@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":"5d984c87a7589e76b9b2655ff7ac6f1a243f5b32","tarball":"https://registry.npmjs.org/@aws-sdk/client-auto-scaling-browser/-/client-auto-scaling-browser-0.1.0-preview.3.tgz","fileCount":1566,"integrity":"sha512-Hzpr8jWKy6XzKA3ldCXmevC8Zk2+Ezx7lAV3m/4Rae/me5K8PUIOD6v7aG1I55nc7qsPZba19lR1UFuK24skrg==","signatures":[{"sig":"MEUCIBwVFPIY+GA2UQY7tmP41pH70Wbntww8UtPQrd3nxYqWAiEA0FUrRgtJdnS3BMENzLLKoySDsvOcerVTnwIbTBMgOLw=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":932675,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdg6LmCRA9TVsSAnZWagAAiRsP/0bmwAYPapywF/EkRWFi\nQ1HvyxH55T3+1ssShEnDaXoYKKv4+Tmkw/8du4KQw5cTsljiBJdDL3nVVYBf\nO4xNCqPdtXmp1LaiLbSGCciTHYek6N33KUhpU7SFbu5nQNF/UYUKy8cspfuh\ngKS626aUPj8D7bidDXZpx+MDDivkc7JwY8m/PuDwvLAleMJHXER+XCJHVdfE\nMYCGOOVkNLqOSIBHjNTWzorE5YF89K3RPCB1ClWF4dKmqTcY+isET9y6bf1X\nvBNf1pi3mRfx/E+jFmWG0XCBEkiFYo9Cp5Tg8xiTED+0Er4/KXEI3moo6L7v\nCBA3tIPMeAF9BQ6HjcPP+T7QrBZJ2c62wPNNIe1YoWhKm+SHMIpLf4Mc2rlt\njAvgB/GQn5/59jeXsQKVAKvpL2uaUVoZ4QfWCCz4dTUoFEEXPrDb34RfRs8q\nhcuYBTiS+Jr72GjlEvwVUAITri4iv7VHPhnJFfCsF6PIPHKkA1uUIaRwvEmM\nsVQjy/bqUD26FD6xaRwGr0rBuKYQW/UQ3FE2u6s2ENfKCHgYIHkQdeMyvJjL\ndnc+wZHkWkfDHhfuCUuxxa8n6w8D/vILJpMIwr3cOI/X/oSku7Ro+40haeWW\n8q/REg6pTfqgx/pmH0qLxv+vWF+XEa200lacQYXgB+5/Ua4xyaeL7mCvT44C\nQlUi\r\n=9lKE\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./index.js","types":"./index.d.ts","readme":"# @aws-sdk/client-auto-scaling-browser\n\n[![NPM version](https://img.shields.io/npm/v/@aws-sdk/client-auto-scaling-browser/preview.svg)](https://www.npmjs.com/package/@aws-sdk/client-auto-scaling-browser)\n[![NPM downloads](https://img.shields.io/npm/dm/@aws-sdk/client-auto-scaling-browser.svg)](https://www.npmjs.com/package/@aws-sdk/client-auto-scaling-browser)\n\n## Description\n\n<fullname>Amazon EC2 Auto Scaling</fullname> <p>Amazon EC2 Auto Scaling is designed to automatically launch or terminate EC2 instances based on user-defined policies, schedules, and health checks. Use this service with AWS Auto Scaling, Amazon CloudWatch, and Elastic Load Balancing.</p> <p>For more information, including information about granting IAM users required permissions for Amazon EC2 Auto Scaling actions, see the <a href=\"https://docs.aws.amazon.com/autoscaling/ec2/userguide/what-is-amazon-ec2-auto-scaling.html\">Amazon EC2 Auto Scaling User Guide</a>.</p>\n\n## Installing\n\nTo install the this package using NPM, simply type the following into a terminal window:\n\n```\nnpm install @aws-sdk/client-auto-scaling-browser\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(`AutoScalingClient`) and the commands you need, for example `AttachInstancesCommand`:\n\n```javascript\n//JavaScript\nconst {\n  AutoScalingClient\n} = require(\"@aws-sdk/client-auto-scaling-browser/AutoScalingClient\");\nconst {\n  AttachInstancesCommand\n} = require(\"@aws-sdk/client-auto-scaling-browser/commands/AttachInstancesCommand\");\n```\n\n```javascript\n//TypeScript\nimport { AutoScalingClient } from \"@aws-sdk/client-auto-scaling-browser/AutoScalingClient\";\nimport { AttachInstancesCommand } from \"@aws-sdk/client-auto-scaling-browser/commands/AttachInstancesCommand\";\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 autoScaling = new AutoScalingClient({region: 'region'});\n//clients can be shared by different commands\nconst params = {\n  AutoScalingGroupName: /**a string value*/,\n};\nconst attachInstancesCommand = new AttachInstancesCommand(params);\nautoScaling.send(attachInstancesCommand).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 autoScaling.send(attachInstancesCommand);\n  // do something\n} catch (error) {\n  // error handling\n}\n```\n\n```javascript\n// callback\nautoScaling.send(attachInstancesCommand, (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-auto-scaling-browser/AutoScaling\";\nconst autoScaling = new AWS.AutoScaling({ region: \"region\" });\nautoScaling.attachInstances(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 autoScaling.send(attachInstancesCommand);\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-auto-scaling-browser' 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":"karma start karma.conf","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-auto-scaling-browser has been renamed to @aws-sdk/client-auto-scaling. Please install the renamed package.","_npmVersion":"6.9.0","description":"Browser SDK for Auto Scaling","directories":{},"_nodeVersion":"10.1.0","dependencies":{"tslib":"^1.8.0","@aws-sdk/types":"^0.1.0-preview.5","@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/config-resolver":"^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-crypto/sha256-browser":"^0.1.0-preview.1","@aws-sdk/util-utf8-browser":"^0.1.0-preview.3","@aws-sdk/fetch-http-handler":"^0.1.0-preview.5","@aws-sdk/signing-middleware":"^0.1.0-preview.7","@aws-sdk/url-parser-browser":"^0.1.0-preview.5","@aws-sdk/util-base64-browser":"^0.1.0-preview.3","@aws-sdk/middleware-serializer":"^0.1.0-preview.5","@aws-sdk/util-user-agent-browser":"^0.1.0-preview.6","@aws-sdk/query-error-unmarshaller":"^0.1.0-preview.6","@aws-sdk/stream-collector-browser":"^0.1.0-preview.5","@aws-sdk/util-body-length-browser":"^0.1.0-preview.3","@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","karma":"^4.1.0","rimraf":"^2.6.2","typedoc":"^0.14.2","puppeteer":"^1.0.0","typescript":"~3.4.0","@types/jest":"^24.0.12","jasmine-core":"^3.4.0","karma-jasmine":"^2.0.1","karma-coverage":"^1.1.1","karma-typescript":"^4.0.0","karma-chrome-launcher":"^3.0.0","@aws-sdk/karma-credential-loader":"^0.1.0-preview.7","@aws-sdk/client-documentation-generator":"^0.1.0-preview.3"},"_npmOperationalInternal":{"tmp":"tmp/client-auto-scaling-browser_0.1.0-preview.3_1568908005422_0.36384307968906837","host":"s3://npm-registry-packages"}},"0.1.0-preview.4":{"name":"@aws-sdk/client-auto-scaling-browser","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-auto-scaling-browser@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":"fa5e6146b3c3f258cc61d8d421c660d35c1a0298","tarball":"https://registry.npmjs.org/@aws-sdk/client-auto-scaling-browser/-/client-auto-scaling-browser-0.1.0-preview.4.tgz","fileCount":1566,"integrity":"sha512-mJaCy3+EqPkTS7m3e9esT688B61p8JkwzA/QxyQIwOsUqQ4cjQV4xvm9tg78X6cuLch/vdGtKPsx8AmgMJ2/rw==","signatures":[{"sig":"MEQCIBbmvKWWWfuKMJkZ/RkPF+szm5Kw603byfDe0whCcPzuAiAiHjudr9geLYJWXpurKtB96jbRNdneyFPdbeLryw6qTw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":932687,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJduNKYCRA9TVsSAnZWagAAJUAP/jgttZX8C2VTEKclD0OU\nhlfEdmGRs0V/TenZ7c+qjbta5gw+yccLLeo4WGy4COIPs7QKzj2cnFO6K/O9\n08UItFr/eY0LkorvLlY0DF2+qyG1aOnFIkJB0afCbvKBWbavwTCSBJ2EKctx\n+HBv5VUI0DT++rCMmlV84s/hhcRstASACu9gUfuzBa2h9LUhUy2y9X3/w4jz\nFdSpEaFklqr9Rqn/YRdMe4/v7GEqzfueNVmrjNWy1lrBSSq5UyEOy3/0waiP\n36PBUJ9+mSO1yUp2gwPpLmnmutSdC8hLnaX3/zxGoOok3NRJ++7nBYAJtcIl\nZ40dD9SY+DU96UVrA6nLLwgkHDosmOIhwUzxIZCFxLjxjHZ6l+pcaQSbASBa\niSk3dn2nbBVmQ6LkNjzx4wzkty+G79bcb91d1NMN/9SrcNlB3vs7QzU/TNAF\nHs06onhtyj/3o1D3T97p1+x1hI1HpawhAAqrAoKt7i3nTiGDZ7HrdnVJ5WTu\n9o7lXTMZHIf8ea/ieZqwoVf2fASlD09EUFdmofkh3p57EFMwAA9mGTLMDRnK\n4bezh/BNaln4s+wgGL+pdew0QP6ytG1Hyce0ihYLzM72SN6Vw1EW5Ol/BN9O\n4bRxiAWeRBvfiJrFvSDmfUtP9tDt8IIJ0D1KbNAIwI0bqrKvOy0OLDSzC7zp\ntc6f\r\n=nJKe\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./index.js","types":"./index.d.ts","readme":"# @aws-sdk/client-auto-scaling-browser\n\n[![NPM version](https://img.shields.io/npm/v/@aws-sdk/client-auto-scaling-browser/preview.svg)](https://www.npmjs.com/package/@aws-sdk/client-auto-scaling-browser)\n[![NPM downloads](https://img.shields.io/npm/dm/@aws-sdk/client-auto-scaling-browser.svg)](https://www.npmjs.com/package/@aws-sdk/client-auto-scaling-browser)\n\n## Description\n\n<fullname>Amazon EC2 Auto Scaling</fullname> <p>Amazon EC2 Auto Scaling is designed to automatically launch or terminate EC2 instances based on user-defined policies, schedules, and health checks. Use this service with AWS Auto Scaling, Amazon CloudWatch, and Elastic Load Balancing.</p> <p>For more information, including information about granting IAM users required permissions for Amazon EC2 Auto Scaling actions, see the <a href=\"https://docs.aws.amazon.com/autoscaling/ec2/userguide/what-is-amazon-ec2-auto-scaling.html\">Amazon EC2 Auto Scaling User Guide</a>.</p>\n\n## Installing\n\nTo install the this package using NPM, simply type the following into a terminal window:\n\n```\nnpm install @aws-sdk/client-auto-scaling-browser\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(`AutoScalingClient`) and the commands you need, for example `AttachInstancesCommand`:\n\n```javascript\n//JavaScript\nconst {\n  AutoScalingClient,\n  AttachInstancesCommand\n} = require(\"@aws-sdk/client-auto-scaling-browser\");\n```\n\n```javascript\n//TypeScript\nimport {\n  AutoScalingClient,\n  AttachInstancesCommand\n} from \"@aws-sdk/client-auto-scaling-browser\";\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 autoScaling = new AutoScalingClient({region: 'region'});\n//clients can be shared by different commands\nconst params = {\n  AutoScalingGroupName: /**a string value*/,\n};\nconst attachInstancesCommand = new AttachInstancesCommand(params);\nautoScaling.send(attachInstancesCommand).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 autoScaling.send(attachInstancesCommand);\n  // do something\n} catch (error) {\n  // error handling\n}\n```\n\n```javascript\n// callback\nautoScaling.send(attachInstancesCommand, (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-auto-scaling-browser\";\nconst autoScaling = new AWS.AutoScaling({ region: \"region\" });\nautoScaling.attachInstances(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 autoScaling.send(attachInstancesCommand);\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-auto-scaling-browser' 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":"karma start karma.conf","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-auto-scaling-browser has been renamed to @aws-sdk/client-auto-scaling. Please install the renamed package.","_npmVersion":"6.9.0","description":"Browser SDK for Auto Scaling","directories":{},"_nodeVersion":"10.1.0","dependencies":{"tslib":"^1.8.0","@aws-sdk/types":"^0.1.0-preview.6","@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/config-resolver":"^0.1.0-preview.6","@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-crypto/sha256-browser":"^0.1.0-preview.1","@aws-sdk/util-utf8-browser":"^0.1.0-preview.3","@aws-sdk/fetch-http-handler":"^0.1.0-preview.6","@aws-sdk/signing-middleware":"^0.1.0-preview.8","@aws-sdk/url-parser-browser":"^0.1.0-preview.6","@aws-sdk/util-base64-browser":"^0.1.0-preview.3","@aws-sdk/middleware-serializer":"^0.1.0-preview.6","@aws-sdk/util-user-agent-browser":"^0.1.0-preview.7","@aws-sdk/query-error-unmarshaller":"^0.1.0-preview.7","@aws-sdk/stream-collector-browser":"^0.1.0-preview.6","@aws-sdk/util-body-length-browser":"^0.1.0-preview.3","@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","karma":"^4.1.0","rimraf":"^2.6.2","typedoc":"^0.14.2","puppeteer":"^1.0.0","typescript":"~3.4.0","@types/jest":"^24.0.12","jasmine-core":"^3.4.0","karma-jasmine":"^2.0.1","karma-coverage":"^1.1.1","karma-typescript":"^4.0.0","karma-chrome-launcher":"^3.0.0","@aws-sdk/karma-credential-loader":"^0.1.0-preview.8","@aws-sdk/client-documentation-generator":"^0.1.0-preview.3"},"_npmOperationalInternal":{"tmp":"tmp/client-auto-scaling-browser_0.1.0-preview.4_1572393624370_0.11706383346682059","host":"s3://npm-registry-packages"}},"0.1.0-preview.5":{"name":"@aws-sdk/client-auto-scaling-browser","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-auto-scaling-browser@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":"4efc1bfa9d606dc5bfa395f3ef32ee81cc6033f3","tarball":"https://registry.npmjs.org/@aws-sdk/client-auto-scaling-browser/-/client-auto-scaling-browser-0.1.0-preview.5.tgz","fileCount":1566,"integrity":"sha512-ZGOzSC99FoqPUOJFJmTONvW+FXcJirtTwVpHVM5nfRtAWtHfq7xjb1+5sG5ZGoslenVvYLGgBxlnIKOmMqoYfA==","signatures":[{"sig":"MEQCIA9E6rHhoHMF08te4ucAicWY+wMxFYeX9jPn/N5DPr3uAiBKJ3j6iK1eWZiuKh5D8Q2WntAzo8Ku+jCTWxh2Pz9YPw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":932931,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdueYgCRA9TVsSAnZWagAAwRYP/3WMQIqUMk7VBNvrj8a5\nMKnRhOmr7KLSqN09jF3vNJetyyHDPBWwiFQsNpdKd1ozBB1v1ffVFEvHU4wl\ndUlJ5AkbBE2etanvCLRDe5nP3w3IJyR+WktMEIjnvpEG/XbXrmqWNCCiyMlp\nbHw9SCJXPR31ztnwYmWe037s9yyk0VudediybsDkTXwXFO4bnC86tgL70E8w\nGGXEIe9ukMTDwngB2yfDrk3xu8/TTyIzaUbAHTt/pEbikK0XnHrOTAc2DKeN\nHc0BRFM8yK5c58I+6820P14kVMB0wISAK9f9AVcs7hS62f+vNxZ0857UaoZc\n6dt52Aof4bTW7YMOt2jOnNhjvnm8cZ7g5caR9p2oUDam8+3ac6AiSC8v8QDL\ncEpbQ6hhcDLdL0srcXckM+q/bT0yvNvhMMqwGx6Wa3cWsB0u5OeYRJfbWguA\nYxYmsd09eJTrcdfnSQKBkBIO1tB+YJJJvCmplTfv0FdswT2CpWurL3NihQTR\npweXR0N+kBfW9//qHiyydyBRWs1BxaKtpf5UrPhrMT3mTxIJNXP2BnL/s8WN\nSoiFabNwF99dMU1FV6hxoiOMfn1xpMOAABoWcUBtMysAcfH7kpfnsDNA6RK7\n32QkLjNZDMaj6yLV13uEmV2Z6FbKu6IMA+ozBmTf1XTwO3XWIi17HY0McrdJ\nxR4m\r\n=UKVH\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./index.js","types":"./index.d.ts","readme":"# @aws-sdk/client-auto-scaling-browser\n\n[![NPM version](https://img.shields.io/npm/v/@aws-sdk/client-auto-scaling-browser/preview.svg)](https://www.npmjs.com/package/@aws-sdk/client-auto-scaling-browser)\n[![NPM downloads](https://img.shields.io/npm/dm/@aws-sdk/client-auto-scaling-browser.svg)](https://www.npmjs.com/package/@aws-sdk/client-auto-scaling-browser)\n\n## Description\n\n<fullname>Amazon EC2 Auto Scaling</fullname> <p>Amazon EC2 Auto Scaling is designed to automatically launch or terminate EC2 instances based on user-defined policies, schedules, and health checks. Use this service with AWS Auto Scaling, Amazon CloudWatch, and Elastic Load Balancing.</p> <p>For more information, including information about granting IAM users required permissions for Amazon EC2 Auto Scaling actions, see the <a href=\"https://docs.aws.amazon.com/autoscaling/ec2/userguide/what-is-amazon-ec2-auto-scaling.html\">Amazon EC2 Auto Scaling User Guide</a>.</p>\n\n## Installing\n\nTo install the this package using NPM, simply type the following into a terminal window:\n\n```\nnpm install @aws-sdk/client-auto-scaling-browser\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(`AutoScalingClient`) and the commands you need, for example `AttachInstancesCommand`:\n\n```javascript\n//JavaScript\nconst {\n  AutoScalingClient,\n  AttachInstancesCommand\n} = require(\"@aws-sdk/client-auto-scaling-browser\");\n```\n\n```javascript\n//TypeScript\nimport {\n  AutoScalingClient,\n  AttachInstancesCommand\n} from \"@aws-sdk/client-auto-scaling-browser\";\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 autoScaling = new AutoScalingClient({region: 'region'});\n//clients can be shared by different commands\nconst params = {\n  AutoScalingGroupName: /**a string value*/,\n};\nconst attachInstancesCommand = new AttachInstancesCommand(params);\nautoScaling.send(attachInstancesCommand).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 autoScaling.send(attachInstancesCommand);\n  // do something\n} catch (error) {\n  // error handling\n}\n```\n\n```javascript\n// callback\nautoScaling.send(attachInstancesCommand, (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-auto-scaling-browser\";\nconst autoScaling = new AWS.AutoScaling({ region: \"region\" });\nautoScaling.attachInstances(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 autoScaling.send(attachInstancesCommand);\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-auto-scaling-browser' 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":"karma start karma.conf","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-auto-scaling-browser has been renamed to @aws-sdk/client-auto-scaling. Please install the renamed package.","_npmVersion":"6.9.0","description":"Browser SDK for Auto Scaling","directories":{},"_nodeVersion":"10.1.0","dependencies":{"tslib":"^1.8.0","@aws-sdk/types":"^0.1.0-preview.7","@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/config-resolver":"^0.1.0-preview.7","@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-crypto/sha256-browser":"^0.1.0-preview.1","@aws-sdk/util-utf8-browser":"^0.1.0-preview.3","@aws-sdk/fetch-http-handler":"^0.1.0-preview.7","@aws-sdk/signing-middleware":"^0.1.0-preview.9","@aws-sdk/url-parser-browser":"^0.1.0-preview.7","@aws-sdk/util-base64-browser":"^0.1.0-preview.3","@aws-sdk/middleware-serializer":"^0.1.0-preview.7","@aws-sdk/util-user-agent-browser":"^0.1.0-preview.8","@aws-sdk/query-error-unmarshaller":"^0.1.0-preview.8","@aws-sdk/stream-collector-browser":"^0.1.0-preview.7","@aws-sdk/util-body-length-browser":"^0.1.0-preview.3","@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","karma":"^4.1.0","rimraf":"^2.6.2","typedoc":"^0.14.2","puppeteer":"^1.0.0","typescript":"~3.4.0","@types/jest":"^24.0.12","jasmine-core":"^3.4.0","karma-jasmine":"^2.0.1","karma-coverage":"^1.1.1","karma-typescript":"^4.0.0","karma-chrome-launcher":"^3.0.0","@aws-sdk/karma-credential-loader":"^0.1.0-preview.9","@aws-sdk/client-documentation-generator":"^0.1.0-preview.3"},"_npmOperationalInternal":{"tmp":"tmp/client-auto-scaling-browser_0.1.0-preview.5_1572464160009_0.26085350954401787","host":"s3://npm-registry-packages"}},"0.1.0-preview.6":{"name":"@aws-sdk/client-auto-scaling-browser","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-auto-scaling-browser@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":"a63c44e8c80842f930cb5bd3b0dfb5fe184178ad","tarball":"https://registry.npmjs.org/@aws-sdk/client-auto-scaling-browser/-/client-auto-scaling-browser-0.1.0-preview.6.tgz","fileCount":1566,"integrity":"sha512-fzMxOhnFZEXHMtKOUoY7Yh49ZOOvDbPhwjMhJoz4x8ZH9qtcLHE2aTxX5TtAsXVgicHIvGyW4qviWHUBakDPqw==","signatures":[{"sig":"MEQCIBrkktMgQ2VLSFsvBu5tOpfwhTC3ogABT35wtwZFH9REAiBGUSOoX6Q2zC3WuHYyfuWNTLYSaynHUil1uw4AeRNpnw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":933202,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd1FUhCRA9TVsSAnZWagAACfoQAKQWJe7dPKDYRfVdeBEF\nLTwBBBMJ2xC9xI9PUFK8whVSGIB1IXLnRHAQhl5yC2vzpCn8/EbYthEnu4wG\nFFQsyJJPpczE+yxR+OQ3BP1V2tLay8+fzb0Kb6A57koKNiLp3X9fmZZ/nRAR\nDPP3WtqKyDhKIy/kldKZk7RWDjSaQbvcYkIVrzjVPwXqH87MYJFsEl2e651r\nJ2P1+Nae9lmpIywG5qVxp3bURtdLAQVUqCeh8JmN5ywVRIdLN+U0VTR5UJm+\nifkQsWAcFNb1Apq0tp6cEU3T8HVOglUAzBlyMCtgUjdfAaaMhc6jXxnmIP4H\na+8ODWK0+1hFLJkHad18UsDR+mupM1+tBsgJjQrLsrE7aSD1j6jXCOxw2TGI\nCEM2mJkspQXl46PnbUJytejXJIBdkM7IsB1XUOmxPkxPEI4JuYM2AZE9gPNA\nwGYEa4vwYycHJU28+xGjvfABu+VJNf2iKX1+xwXI1hU10TSXsGL9OCgddwZN\nC2M065oVbHeEFOR5CVKVKerEM4BfN8yhi0XZsu0GCZi7vSIT+NXr7EaPacji\n5JCCDlrSASEg6Fttb71vQ0KZuWJdBTATHDxH7cYynUCTsPczABwIYhihsqKW\n846Rda/RBaNmnqTGWIbjC6vBRilc8itNWad9hurrTpPTEiCuaBOUMa1355iU\n1ZTi\r\n=6zfo\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./index.js","types":"./index.d.ts","readme":"# @aws-sdk/client-auto-scaling-browser\n\n[![NPM version](https://img.shields.io/npm/v/@aws-sdk/client-auto-scaling-browser/preview.svg)](https://www.npmjs.com/package/@aws-sdk/client-auto-scaling-browser)\n[![NPM downloads](https://img.shields.io/npm/dm/@aws-sdk/client-auto-scaling-browser.svg)](https://www.npmjs.com/package/@aws-sdk/client-auto-scaling-browser)\n\n## Description\n\n<fullname>Amazon EC2 Auto Scaling</fullname> <p>Amazon EC2 Auto Scaling is designed to automatically launch or terminate EC2 instances based on user-defined policies, schedules, and health checks. Use this service with AWS Auto Scaling, Amazon CloudWatch, and Elastic Load Balancing.</p> <p>For more information, including information about granting IAM users required permissions for Amazon EC2 Auto Scaling actions, see the <a href=\"https://docs.aws.amazon.com/autoscaling/ec2/userguide/what-is-amazon-ec2-auto-scaling.html\">Amazon EC2 Auto Scaling User Guide</a>.</p>\n\n## Installing\n\nTo install the this package using NPM, simply type the following into a terminal window:\n\n```\nnpm install @aws-sdk/client-auto-scaling-browser\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(`AutoScalingClient`) and the commands you need, for example `AttachInstancesCommand`:\n\n```javascript\n//JavaScript\nconst {\n  AutoScalingClient,\n  AttachInstancesCommand\n} = require(\"@aws-sdk/client-auto-scaling-browser\");\n```\n\n```javascript\n//TypeScript\nimport {\n  AutoScalingClient,\n  AttachInstancesCommand\n} from \"@aws-sdk/client-auto-scaling-browser\";\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 autoScaling = new AutoScalingClient({region: 'region'});\n//clients can be shared by different commands\nconst params = {\n  AutoScalingGroupName: /**a string value*/,\n};\nconst attachInstancesCommand = new AttachInstancesCommand(params);\nautoScaling.send(attachInstancesCommand).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 autoScaling.send(attachInstancesCommand);\n  // do something\n} catch (error) {\n  // error handling\n}\n```\n\n```javascript\n// callback\nautoScaling.send(attachInstancesCommand, (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-auto-scaling-browser\";\nconst autoScaling = new AWS.AutoScaling({ region: \"region\" });\nautoScaling.attachInstances(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 autoScaling.send(attachInstancesCommand);\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-auto-scaling-browser' 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":"karma start karma.conf","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-auto-scaling-browser has been renamed to @aws-sdk/client-auto-scaling. Please install the renamed package.","_npmVersion":"6.9.0","description":"Browser SDK for Auto Scaling","directories":{},"_nodeVersion":"10.16.3","dependencies":{"tslib":"^1.8.0","@aws-sdk/types":"^0.1.0-preview.7","@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/config-resolver":"^0.1.0-preview.7","@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-crypto/sha256-browser":"^0.1.0-preview.1","@aws-sdk/util-utf8-browser":"^0.1.0-preview.3","@aws-sdk/fetch-http-handler":"^0.1.0-preview.8","@aws-sdk/signing-middleware":"^0.1.0-preview.10","@aws-sdk/url-parser-browser":"^0.1.0-preview.7","@aws-sdk/util-base64-browser":"^0.1.0-preview.3","@aws-sdk/middleware-serializer":"^0.1.0-preview.7","@aws-sdk/util-user-agent-browser":"^0.1.0-preview.9","@aws-sdk/query-error-unmarshaller":"^0.1.0-preview.8","@aws-sdk/stream-collector-browser":"^0.1.0-preview.7","@aws-sdk/util-body-length-browser":"^0.1.0-preview.3","@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","karma":"^4.1.0","rimraf":"^2.6.2","typedoc":"^0.14.2","puppeteer":"^1.0.0","typescript":"~3.4.0","@types/jest":"^24.0.12","jasmine-core":"^3.4.0","karma-jasmine":"^2.0.1","karma-coverage":"^1.1.1","karma-typescript":"^4.0.0","karma-chrome-launcher":"^3.0.0","@aws-sdk/karma-credential-loader":"^0.1.0-preview.10","@aws-sdk/client-documentation-generator":"^0.1.0-preview.3"},"_npmOperationalInternal":{"tmp":"tmp/client-auto-scaling-browser_0.1.0-preview.6_1574196513548_0.5434806418194971","host":"s3://npm-registry-packages"}}},"time":{"created":"2019-09-09T18:00:22.858Z","modified":"2025-03-27T18:36:05.546Z","0.1.0-preview.2":"2019-09-09T18:00:23.232Z","0.1.0-preview.3":"2019-09-19T15:46:45.672Z","0.1.0-preview.4":"2019-10-30T00:00:24.539Z","0.1.0-preview.5":"2019-10-30T19:36:00.175Z","0.1.0-preview.6":"2019-11-19T20:48:33.673Z"},"author":{"url":"https://aws.amazon.com/javascript/","name":"AWS SDK for JavaScript Team"},"license":"Apache-2.0","description":"Browser SDK for Auto Scaling","maintainers":[{"email":"osa-3p@amazon.com","name":"amzn-oss"},{"email":"aws-sdk-js-automation@amazon.com","name":"aws-sdk-bot"}],"readme":"","readmeFilename":""}