{"_id":"@aws-sdk/client-sqs-browser","_rev":"19-812adce973b32c5ad1ccad41763034d2","name":"@aws-sdk/client-sqs-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-sqs-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-sqs-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":"6cf1bfc63e5a62ef473a81d0e67d88332ce96b7d","tarball":"https://registry.npmjs.org/@aws-sdk/client-sqs-browser/-/client-sqs-browser-0.1.0-preview.2.tgz","fileCount":660,"integrity":"sha512-zz57SI9FgEDYFGqcSRPLG5fV9LSvadJjC1ifbg/V8No7LmMCa0Db2jTfD6hcp+Bm6CwkVbb9X4I2YGbeX/eLUA==","signatures":[{"sig":"MEYCIQD8RhVb6y7ohUgHTZ+xj3+XzcDrGuCV2daJq+g1jJ+84wIhAL/zJHxLq1NRgHNunBupHOXAJzVfkAowjSA1h6bL9uzQ","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":400975,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJddpSRCRA9TVsSAnZWagAADQkP/2UI7DLSOT1HiG9moHel\nIV0S7AY4ZDZvU4Hpibwb8t3A4H2a4qoU4P4WJd4KFqdJ49tLQmMzIz82I8tp\nMMuuNcl3Tgj+xsi212gU8qxQPqk0zr5R8409LO4/pybhliWSTg2wpRQj/Fbu\nabZce9H1MjDD25/J0787s3Y9XiyGTRndt4L3xrSwc4JISL0Ultk+nGclMAM/\nfmn/nlHTw5ApWi83ihevVUZCcvxhgRtvF2LNXMGp/8o+64iPFvLKdMfH14rv\n08f3FYirm8nN+Rx+e41Po1f8QA7l92QkSQQgRGXOSckNkgBtTrbTpf/+/1GP\nmJ6OXFiIBJiITdAc2jWMSvyCSENz1stn15T309nHizl/RyedGiaTkBeu0pty\nxcFKdvn1PpvPv7Ous39fIQqEvThmXDXFr2mn6yH1hY0meEjzsB0Cr/xbRa0h\nflqk+BpsFuerLbSjJO5WnmqzQ3LgRvN8azKX9wwgNRi3QpkRnPR/JWWecMN+\nbR3hsZeNIebpzrG13TuIRUCOtKQxD/lKVOdt5IWxCnYH5Fc7KFLPEgZk9Dij\nrD37vG05q8rgr9sjEYVNr8NYK65Xr+KVVFZ4A9Wxs5kTe2oWX8zgmS5CRm2k\ndIC/dUcj7QiLNey4S1VR1x4brqNM8VSNXqB0ul6bVxekdnSuh0S/bByv3GH2\n8CHK\r\n=sCf0\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-sqs-browser has been renamed to @aws-sdk/client-sqs. Please install the renamed package.","_npmVersion":"6.9.0","description":"Browser SDK for Amazon Simple Queue Service","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-sqs-browser_0.1.0-preview.2_1568052368980_0.8478854616062894","host":"s3://npm-registry-packages"}},"0.1.0-preview.3":{"name":"@aws-sdk/client-sqs-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-sqs-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":"39d4ed22b029bd03ed4e0124437f1d46a616dad5","tarball":"https://registry.npmjs.org/@aws-sdk/client-sqs-browser/-/client-sqs-browser-0.1.0-preview.3.tgz","fileCount":660,"integrity":"sha512-VvAzBl8WfCjKcETAYvewKnliaHqesnpwB7XRcOnQOrjJXdrdthDRPjM7r7jk5j5WHTkX/6t05wi/e8zhTwLqyA==","signatures":[{"sig":"MEUCIQDFl/efwLHBkd5ThESO3w8lifG2Z9l54jrTKfhU+u+1fwIgNg8Cp+EYEOaFz1NAnALZ89lQqW5hMl5hZ9ial9dZM+U=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":401195,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdg6WXCRA9TVsSAnZWagAAqK8P/idHEA7F6ZIpsB9OSImR\n99cEtLHZyvHP998xj5oS5nMdI7pWeiuNMvlI4sUIGyAMSvk2t7gkFP3wTCD/\nEvYcP0bCx+jrgZytKBYBsJD0kHN/CLhdtWeDTyPMn/OIZVVZsSLJ9eShhWFc\nktd2OolrpIsbIN9RooeLOy+fx+0VqYALGxqtUZp0nQbdG5FN5f2rkBUNelLC\nGWmXKbwtpYvycVGDX/OydAE80FYkaHDqebGC8P8nV3eUT7yNiigL9J2CNLeM\nluEEHh5B6NhIf1EZSbJczoNBquFA+iaWjjVm3NyyXqO10A4GVS0SXcac4LNB\nscOvYeVxjxJVkQ86Y5Ue7Mh3F0OTehs9PCjOkx37dQOc09K8tF7bYCJFrrIM\ny12ZiFOqz1E11vcyncLXs4mKQ7Gc7KK81Zor0gUrYYZivjHH08PviWYTch2s\neetg+3Qy7kyj7rDp2ro4w1uprFGxbkwZsYioH/oxBPQ3ZzckMIPSS4liAaOD\n+4xb+WY99MSYwTGV5OV3c9lJpoc9bc3wR1h1v/JQI9ONQ3PmznvFJ9IbfCbt\nrzKud3s6Fv9f8QpIcIGDGULeKQZCn3nI4y/rR+0YnbXq0Cd1AVf7uZCb8jxO\nJRe5a/9HN/hUXOjA1M9ju6G2pBLSrgGbMmk9vAPDY/Pz9ySl9a+m4FKi+M17\neB4F\r\n=OWW0\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./index.js","types":"./index.d.ts","readme":"# @aws-sdk/client-sqs-browser\n\n[![NPM version](https://img.shields.io/npm/v/@aws-sdk/client-sqs-browser/preview.svg)](https://www.npmjs.com/package/@aws-sdk/client-sqs-browser)\n[![NPM downloads](https://img.shields.io/npm/dm/@aws-sdk/client-sqs-browser.svg)](https://www.npmjs.com/package/@aws-sdk/client-sqs-browser)\n\n## Description\n\n<p>Welcome to the <i>Amazon Simple Queue Service API Reference</i>.</p> <p>Amazon Simple Queue Service (Amazon SQS) is a reliable, highly-scalable hosted queue for storing messages as they travel between applications or microservices. Amazon SQS moves data between distributed application components and helps you decouple these components.</p> <p>You can use <a href=\"http://aws.amazon.com/tools/#sdk\">AWS SDKs</a> to access Amazon SQS using your favorite programming language. The SDKs perform tasks such as the following automatically:</p> <ul> <li> <p>Cryptographically sign your service requests</p> </li> <li> <p>Retry requests</p> </li> <li> <p>Handle error responses</p> </li> </ul> <p> <b>Additional Information</b> </p> <ul> <li> <p> <a href=\"http://aws.amazon.com/sqs/\">Amazon SQS Product Page</a> </p> </li> <li> <p> <i>Amazon Simple Queue Service Developer Guide</i> </p> <ul> <li> <p> <a href=\"https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-making-api-requests.html\">Making API Requests</a> </p> </li> <li> <p> <a href=\"https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-message-attributes.html\">Amazon SQS Message Attributes</a> </p> </li> <li> <p> <a href=\"https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-dead-letter-queues.html\">Amazon SQS Dead-Letter Queues</a> </p> </li> </ul> </li> <li> <p> <a href=\"http://docs.aws.amazon.com/cli/latest/reference/sqs/index.html\">Amazon SQS in the <i>AWS CLI Command Reference</i> </a> </p> </li> <li> <p> <i>Amazon Web Services General Reference</i> </p> <ul> <li> <p> <a href=\"https://docs.aws.amazon.com/general/latest/gr/rande.html#sqs_region\">Regions and Endpoints</a> </p> </li> </ul> </li> </ul>\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-sqs-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(`SQSClient`) and the commands you need, for example `AddPermissionCommand`:\n\n```javascript\n//JavaScript\nconst { SQSClient } = require(\"@aws-sdk/client-sqs-browser/SQSClient\");\nconst {\n  AddPermissionCommand\n} = require(\"@aws-sdk/client-sqs-browser/commands/AddPermissionCommand\");\n```\n\n```javascript\n//TypeScript\nimport { SQSClient } from \"@aws-sdk/client-sqs-browser/SQSClient\";\nimport { AddPermissionCommand } from \"@aws-sdk/client-sqs-browser/commands/AddPermissionCommand\";\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 sQS = new SQSClient({region: 'region'});\n//clients can be shared by different commands\nconst params = {\n  QueueUrl: /**a string value*/,\n  Label: /**a string value*/,\n  AWSAccountIds: [ /**a list of string*/ ],\n  Actions: [ /**a list of string*/ ],\n};\nconst addPermissionCommand = new AddPermissionCommand(params);\nsQS.send(addPermissionCommand).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 sQS.send(addPermissionCommand);\n  // do something\n} catch (error) {\n  // error handling\n}\n```\n\n```javascript\n// callback\nsQS.send(addPermissionCommand, (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-sqs-browser/SQS\";\nconst sQS = new AWS.SQS({ region: \"region\" });\nsQS.addPermission(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 sQS.send(addPermissionCommand);\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-sqs-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-sqs-browser has been renamed to @aws-sdk/client-sqs. Please install the renamed package.","_npmVersion":"6.9.0","description":"Browser SDK for Amazon Simple Queue Service","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-sqs-browser_0.1.0-preview.3_1568908693094_0.3501300019759963","host":"s3://npm-registry-packages"}},"0.1.0-preview.4":{"name":"@aws-sdk/client-sqs-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-sqs-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":"432bc7acbb096cbb26cb1dbc997e49432841d707","tarball":"https://registry.npmjs.org/@aws-sdk/client-sqs-browser/-/client-sqs-browser-0.1.0-preview.4.tgz","fileCount":660,"integrity":"sha512-1l4qgbYTCA0/1JlPaRBbA+bFV4O9mBzlXxG/IyaigfgLma21m9dVCiG0Uqno4Px0hfREyxZ+3Vf8rIGGsNk06g==","signatures":[{"sig":"MEUCIDqkqOx4VEyjXYBNuYSCT2shi1STJCboiS8cAaSYOhL8AiEAooKYDsOprK6WzKx1LN1ovHK53kU6EmMnlxDGpGwtZ/E=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":401251,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJduNOhCRA9TVsSAnZWagAADkwP/AwWT9zYWYG689wXYqzC\nGR5qrx9+saZQjou8maNZhZjLpTxc5Gaq1Ud52FnplOKuQ7W4mRL/XDmuJviv\nAFQ3zpTMS0+xzpo8Tl3lliRpvqihIM72lqc0mSnevtrBMlz/+0Mf2ClSTsQX\nK8OxCsXIwWUgsclRwFjb2tM0HUxsbN0498p9ctVhm8NTVmwFVUOAsJi9kGC1\nbIj9u1CYfDxQ9ekKHTrVfoqZ1ep59a7BBeVnZhk5GPD1RCWjMndn9GyfcZHD\nHfiZQKaMyNOMiEKkrJ46R1Tusj5339H8Gk4LpISCFYHPqjib/rf+XYEFMyTc\njjXBgtl/7auLQJJ34FocyE+UXgzVq1CcrgizxkWfy948P1+yky5SM7+PTCah\nGC4XAZCcr58tVbCcztAr3mpoOj7n4o0NdDOkfLIGxNeoPyChvrq9JsyOQWzS\nbQpJvwSxzJRYdzZ5AT5VRv3XOeS0NBOewBrwx1dao0lpWGJOQdf/gvnGWFcM\nt1tC9KjAFA7m1OCDyrjBp0CjgLrPFsHyYeoCaRrSkjJ/nwedDni/A2RTnN2c\n0Vm9NTDgkTakn1xwNv2uEb/ExOnq0dXbDJoozsb04c+JOYVdR/gjxK40bSPi\nDx7LGoKjuyVu2gULCW/Ui8vJSe5x+sW56dDKc6kFAGFOpRtCwwQFaapoChis\noFJG\r\n=F2M2\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./index.js","types":"./index.d.ts","readme":"# @aws-sdk/client-sqs-browser\n\n[![NPM version](https://img.shields.io/npm/v/@aws-sdk/client-sqs-browser/preview.svg)](https://www.npmjs.com/package/@aws-sdk/client-sqs-browser)\n[![NPM downloads](https://img.shields.io/npm/dm/@aws-sdk/client-sqs-browser.svg)](https://www.npmjs.com/package/@aws-sdk/client-sqs-browser)\n\n## Description\n\n<p>Welcome to the <i>Amazon Simple Queue Service API Reference</i>.</p> <p>Amazon Simple Queue Service (Amazon SQS) is a reliable, highly-scalable hosted queue for storing messages as they travel between applications or microservices. Amazon SQS moves data between distributed application components and helps you decouple these components.</p> <p>You can use <a href=\"http://aws.amazon.com/tools/#sdk\">AWS SDKs</a> to access Amazon SQS using your favorite programming language. The SDKs perform tasks such as the following automatically:</p> <ul> <li> <p>Cryptographically sign your service requests</p> </li> <li> <p>Retry requests</p> </li> <li> <p>Handle error responses</p> </li> </ul> <p> <b>Additional Information</b> </p> <ul> <li> <p> <a href=\"http://aws.amazon.com/sqs/\">Amazon SQS Product Page</a> </p> </li> <li> <p> <i>Amazon Simple Queue Service Developer Guide</i> </p> <ul> <li> <p> <a href=\"https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-making-api-requests.html\">Making API Requests</a> </p> </li> <li> <p> <a href=\"https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-message-attributes.html\">Amazon SQS Message Attributes</a> </p> </li> <li> <p> <a href=\"https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-dead-letter-queues.html\">Amazon SQS Dead-Letter Queues</a> </p> </li> </ul> </li> <li> <p> <a href=\"http://docs.aws.amazon.com/cli/latest/reference/sqs/index.html\">Amazon SQS in the <i>AWS CLI Command Reference</i> </a> </p> </li> <li> <p> <i>Amazon Web Services General Reference</i> </p> <ul> <li> <p> <a href=\"https://docs.aws.amazon.com/general/latest/gr/rande.html#sqs_region\">Regions and Endpoints</a> </p> </li> </ul> </li> </ul>\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-sqs-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(`SQSClient`) and the commands you need, for example `AddPermissionCommand`:\n\n```javascript\n//JavaScript\nconst {\n  SQSClient,\n  AddPermissionCommand\n} = require(\"@aws-sdk/client-sqs-browser\");\n```\n\n```javascript\n//TypeScript\nimport { SQSClient, AddPermissionCommand } from \"@aws-sdk/client-sqs-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 sQS = new SQSClient({region: 'region'});\n//clients can be shared by different commands\nconst params = {\n  QueueUrl: /**a string value*/,\n  Label: /**a string value*/,\n  AWSAccountIds: [ /**a list of string*/ ],\n  Actions: [ /**a list of string*/ ],\n};\nconst addPermissionCommand = new AddPermissionCommand(params);\nsQS.send(addPermissionCommand).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 sQS.send(addPermissionCommand);\n  // do something\n} catch (error) {\n  // error handling\n}\n```\n\n```javascript\n// callback\nsQS.send(addPermissionCommand, (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-sqs-browser\";\nconst sQS = new AWS.SQS({ region: \"region\" });\nsQS.addPermission(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 sQS.send(addPermissionCommand);\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-sqs-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-sqs-browser has been renamed to @aws-sdk/client-sqs. Please install the renamed package.","_npmVersion":"6.9.0","description":"Browser SDK for Amazon Simple Queue Service","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-sqs-browser_0.1.0-preview.4_1572393889237_0.19028342232348638","host":"s3://npm-registry-packages"}},"0.1.0-preview.5":{"name":"@aws-sdk/client-sqs-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-sqs-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":"689dce4fb410326ec8b7f8f917c5d09ecbac2b31","tarball":"https://registry.npmjs.org/@aws-sdk/client-sqs-browser/-/client-sqs-browser-0.1.0-preview.5.tgz","fileCount":660,"integrity":"sha512-/yCfsfmryl1RnPukXsK/ukev+W8e44wwbR5Tb9Fgsh/K/dMz0hTU+lBvtag/tpJSedbIwRdHOeDZ4YwpwYSDSw==","signatures":[{"sig":"MEQCIGmjZ7B/jESiBzkATp47+6qjdFl8w3wRWR+BUb37tp19AiBnGplWGd5VwuYJc+MbBKicbPjf9+QNRkLnk+mgEG90jA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":401495,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJduedACRA9TVsSAnZWagAAkGcP/i1jbCUPTxUHsd6VDk7Y\no3wml5jZEITJEoFBBUoZqjazXQ/Vw1RAMZu2sndPZjuGuiTlKHQx6AcWBmPL\nuvrOsUCK4fNr/0adYEy35Xogncvp3FclJoF5y1XC6mOO7mzcjYNmA8UWphyS\nmewaQJ1zxSVJBF2TCvCCGdn/6bJyY2hV7EMlnHRbUlvKF1KSLkdlRSKj5ULs\n0aSWLWcxqv+IMJHF91TTJUgzKSsvW6aq/sAwyw2YaDW8IEfXAnroJkCJC3Je\ndtmZ8LI3q9ZiUX/cAVz2MW84W5Q+jfWMQiCrggijtJJZqntQLV80Wkdeo7N7\nrEMMRFHeEPh7y5/smozjIBt429feioCK64vzDD4E9P1zfgAuKj8OnKV9k9wY\nOtYvVg2bs2Rw2VkV78k0XuHNecoSIWrpHkULKSRPbCekSj6f2cWoLsDR+b4S\nqCPl/SSBUf4ol+MjYUyGDcLtzM6hweVtCxTRxD14dxstuypC81ztc3OxHVBn\nb9/U9GCysKjHZ01p5/14oKAv3uS6+YfVGBVUy7q0pgD5Z/oNS/Y+tylb/PkA\nWPt/ejJSvARe9VUrGVBb2jHkFIeO7C3wNCaXbS47P4863Srta9yVki79ImVs\nTmzZErNf/17W+P16fo8a31WgvGQwjNRXIWSLavQ12XdXGjBAiR7rcb2lrITG\noXNO\r\n=S0iy\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./index.js","types":"./index.d.ts","readme":"# @aws-sdk/client-sqs-browser\n\n[![NPM version](https://img.shields.io/npm/v/@aws-sdk/client-sqs-browser/preview.svg)](https://www.npmjs.com/package/@aws-sdk/client-sqs-browser)\n[![NPM downloads](https://img.shields.io/npm/dm/@aws-sdk/client-sqs-browser.svg)](https://www.npmjs.com/package/@aws-sdk/client-sqs-browser)\n\n## Description\n\n<p>Welcome to the <i>Amazon Simple Queue Service API Reference</i>.</p> <p>Amazon Simple Queue Service (Amazon SQS) is a reliable, highly-scalable hosted queue for storing messages as they travel between applications or microservices. Amazon SQS moves data between distributed application components and helps you decouple these components.</p> <p>You can use <a href=\"http://aws.amazon.com/tools/#sdk\">AWS SDKs</a> to access Amazon SQS using your favorite programming language. The SDKs perform tasks such as the following automatically:</p> <ul> <li> <p>Cryptographically sign your service requests</p> </li> <li> <p>Retry requests</p> </li> <li> <p>Handle error responses</p> </li> </ul> <p> <b>Additional Information</b> </p> <ul> <li> <p> <a href=\"http://aws.amazon.com/sqs/\">Amazon SQS Product Page</a> </p> </li> <li> <p> <i>Amazon Simple Queue Service Developer Guide</i> </p> <ul> <li> <p> <a href=\"https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-making-api-requests.html\">Making API Requests</a> </p> </li> <li> <p> <a href=\"https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-message-attributes.html\">Amazon SQS Message Attributes</a> </p> </li> <li> <p> <a href=\"https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-dead-letter-queues.html\">Amazon SQS Dead-Letter Queues</a> </p> </li> </ul> </li> <li> <p> <a href=\"http://docs.aws.amazon.com/cli/latest/reference/sqs/index.html\">Amazon SQS in the <i>AWS CLI Command Reference</i> </a> </p> </li> <li> <p> <i>Amazon Web Services General Reference</i> </p> <ul> <li> <p> <a href=\"https://docs.aws.amazon.com/general/latest/gr/rande.html#sqs_region\">Regions and Endpoints</a> </p> </li> </ul> </li> </ul>\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-sqs-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(`SQSClient`) and the commands you need, for example `AddPermissionCommand`:\n\n```javascript\n//JavaScript\nconst {\n  SQSClient,\n  AddPermissionCommand\n} = require(\"@aws-sdk/client-sqs-browser\");\n```\n\n```javascript\n//TypeScript\nimport { SQSClient, AddPermissionCommand } from \"@aws-sdk/client-sqs-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 sQS = new SQSClient({region: 'region'});\n//clients can be shared by different commands\nconst params = {\n  QueueUrl: /**a string value*/,\n  Label: /**a string value*/,\n  AWSAccountIds: [ /**a list of string*/ ],\n  Actions: [ /**a list of string*/ ],\n};\nconst addPermissionCommand = new AddPermissionCommand(params);\nsQS.send(addPermissionCommand).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 sQS.send(addPermissionCommand);\n  // do something\n} catch (error) {\n  // error handling\n}\n```\n\n```javascript\n// callback\nsQS.send(addPermissionCommand, (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-sqs-browser\";\nconst sQS = new AWS.SQS({ region: \"region\" });\nsQS.addPermission(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 sQS.send(addPermissionCommand);\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-sqs-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-sqs-browser has been renamed to @aws-sdk/client-sqs. Please install the renamed package.","_npmVersion":"6.9.0","description":"Browser SDK for Amazon Simple Queue Service","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-sqs-browser_0.1.0-preview.5_1572464447579_0.02137999144433378","host":"s3://npm-registry-packages"}},"0.1.0-preview.6":{"name":"@aws-sdk/client-sqs-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-sqs-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":"2f7af65b5cd08a818c16ee067e3c9f3b9848b3de","tarball":"https://registry.npmjs.org/@aws-sdk/client-sqs-browser/-/client-sqs-browser-0.1.0-preview.6.tgz","fileCount":660,"integrity":"sha512-Jtb30qWpsZda9bQ2bTf5vdXd65sP9vP8ipo+ietgfm4LaQNQHAsJ0RwUOwWUkihr71GdlixVaEz4R4WeuuiY3A==","signatures":[{"sig":"MEUCIFL/kRSVSjWXAD3lHxRChzHmGDX/zCGtNXQrvEv81bsZAiEA3lGow7rf6DpIQ1lTs40O3DtMb1uxf9GR9b9TMeoCzdE=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":401766,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd1FWZCRA9TVsSAnZWagAAMgkP/0E1/UrWr0LwK0Egr/zc\nvT21NO2mjonxTuirm9QV5xWKFOcRZC2Aj49ftmGeIAicHDw5srN7jm8nyffW\nk6f0u26C+SrMgYDQz5jbH/uo72YAGenXPOeh1kGYgX/oY3B85k+wOyKdjCib\nh44HAy1KNk5crP3LtDiiRz8zMWPcH/lgR1WRRxIr5jG1MZNYBY379pqNIRiA\n87fjrkcVWLTY1lnblIBA0f1/fT2+zD0FNW8Y2sAtZRQ4kdEkMXYR7Jgn7DkM\nQ36w7HwRSEsvTCAgw6/cC5ss6DUqwy4A2c8r8LpK0JEhx+kMhOb1wN4FFF/G\nPSRVROK0OQJ6aTUsTQfDJw56Fx+zneOlXShLsPzqDMDZJYBfSrOcmUaWoXtG\nGIIip6y3RXDFoGIupqPcnNcqPg8fatSN+0KhI+pQOrDA7eNUy7SHERb7Sf0D\nsH4n/vZR7WqWVDSoAB8ow7Bz8+OZVd7qFyBCqXWI5hT0YZcSDLE/DINlDVXR\nspKu1w6uIeTvEA8kbmUmp1uTNePEyyDMjmQXkofgeh85nFuwBsFeeUZJnKcP\n1rI5SgvpEbXk4M5jre/PiR0nPU3ARmpVo3T0DOxRsvE2cbdbWZEb/jiqCRnT\nmkZ29GRIrTCausS3d5fcc7CAMd46Vri+/ivdKWsETvtH8OTd7zaMmaByV6Py\n9v9+\r\n=Gzt0\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./index.js","types":"./index.d.ts","readme":"# @aws-sdk/client-sqs-browser\n\n[![NPM version](https://img.shields.io/npm/v/@aws-sdk/client-sqs-browser/preview.svg)](https://www.npmjs.com/package/@aws-sdk/client-sqs-browser)\n[![NPM downloads](https://img.shields.io/npm/dm/@aws-sdk/client-sqs-browser.svg)](https://www.npmjs.com/package/@aws-sdk/client-sqs-browser)\n\n## Description\n\n<p>Welcome to the <i>Amazon Simple Queue Service API Reference</i>.</p> <p>Amazon Simple Queue Service (Amazon SQS) is a reliable, highly-scalable hosted queue for storing messages as they travel between applications or microservices. Amazon SQS moves data between distributed application components and helps you decouple these components.</p> <p>You can use <a href=\"http://aws.amazon.com/tools/#sdk\">AWS SDKs</a> to access Amazon SQS using your favorite programming language. The SDKs perform tasks such as the following automatically:</p> <ul> <li> <p>Cryptographically sign your service requests</p> </li> <li> <p>Retry requests</p> </li> <li> <p>Handle error responses</p> </li> </ul> <p> <b>Additional Information</b> </p> <ul> <li> <p> <a href=\"http://aws.amazon.com/sqs/\">Amazon SQS Product Page</a> </p> </li> <li> <p> <i>Amazon Simple Queue Service Developer Guide</i> </p> <ul> <li> <p> <a href=\"https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-making-api-requests.html\">Making API Requests</a> </p> </li> <li> <p> <a href=\"https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-message-attributes.html\">Amazon SQS Message Attributes</a> </p> </li> <li> <p> <a href=\"https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-dead-letter-queues.html\">Amazon SQS Dead-Letter Queues</a> </p> </li> </ul> </li> <li> <p> <a href=\"http://docs.aws.amazon.com/cli/latest/reference/sqs/index.html\">Amazon SQS in the <i>AWS CLI Command Reference</i> </a> </p> </li> <li> <p> <i>Amazon Web Services General Reference</i> </p> <ul> <li> <p> <a href=\"https://docs.aws.amazon.com/general/latest/gr/rande.html#sqs_region\">Regions and Endpoints</a> </p> </li> </ul> </li> </ul>\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-sqs-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(`SQSClient`) and the commands you need, for example `AddPermissionCommand`:\n\n```javascript\n//JavaScript\nconst {\n  SQSClient,\n  AddPermissionCommand\n} = require(\"@aws-sdk/client-sqs-browser\");\n```\n\n```javascript\n//TypeScript\nimport { SQSClient, AddPermissionCommand } from \"@aws-sdk/client-sqs-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 sQS = new SQSClient({region: 'region'});\n//clients can be shared by different commands\nconst params = {\n  QueueUrl: /**a string value*/,\n  Label: /**a string value*/,\n  AWSAccountIds: [ /**a list of string*/ ],\n  Actions: [ /**a list of string*/ ],\n};\nconst addPermissionCommand = new AddPermissionCommand(params);\nsQS.send(addPermissionCommand).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 sQS.send(addPermissionCommand);\n  // do something\n} catch (error) {\n  // error handling\n}\n```\n\n```javascript\n// callback\nsQS.send(addPermissionCommand, (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-sqs-browser\";\nconst sQS = new AWS.SQS({ region: \"region\" });\nsQS.addPermission(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 sQS.send(addPermissionCommand);\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-sqs-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-sqs-browser has been renamed to @aws-sdk/client-sqs. Please install the renamed package.","_npmVersion":"6.9.0","description":"Browser SDK for Amazon Simple Queue Service","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-sqs-browser_0.1.0-preview.6_1574196633032_0.7959685140766475","host":"s3://npm-registry-packages"}}},"time":{"created":"2019-09-09T18:06:08.809Z","modified":"2025-03-27T18:42:53.346Z","0.1.0-preview.2":"2019-09-09T18:06:09.124Z","0.1.0-preview.3":"2019-09-19T15:58:13.360Z","0.1.0-preview.4":"2019-10-30T00:04:49.365Z","0.1.0-preview.5":"2019-10-30T19:40:47.710Z","0.1.0-preview.6":"2019-11-19T20:50:33.186Z"},"author":{"url":"https://aws.amazon.com/javascript/","name":"AWS SDK for JavaScript Team"},"license":"Apache-2.0","description":"Browser SDK for Amazon Simple Queue Service","maintainers":[{"email":"osa-3p@amazon.com","name":"amzn-oss"},{"email":"aws-sdk-js-automation@amazon.com","name":"aws-sdk-bot"}],"readme":"","readmeFilename":""}