{"_id":"@aws-sdk/client-storage-gateway-browser","_rev":"19-46876ea2629c1cc7f8ed6f7ace8aa86a","name":"@aws-sdk/client-storage-gateway-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-storage-gateway-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-storage-gateway-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":"ee0a74d1cc04d8f0d24142965e2efc9a8c7a9a30","tarball":"https://registry.npmjs.org/@aws-sdk/client-storage-gateway-browser/-/client-storage-gateway-browser-0.1.0-preview.2.tgz","fileCount":1793,"integrity":"sha512-F9LBluKnPXajfwgKv+G4LLrP4Y2BCpivQ0P3XWTksVVizb+weLNCkXViycAZ4HTlGTMTwiChe8YtPtdbGniO5A==","signatures":[{"sig":"MEYCIQC6QXrpZ2ZBR0wm0/8es+IZiJoECI/UBDuBDo8MdASAxgIhAKk/fphJH41Bx4b+Dmf3YPJoYH//TyAyke66qeBoO5Y6","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1125111,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJddo+YCRA9TVsSAnZWagAAGMsP+wZUmyagb/GwJEZX0XaD\nUTOn/qO8AFhOlGV/kvVtrjm0kAdPW/Gg/IJdeZjqypWJfsXgLHervOrTYy+3\nNse47LaxyNV1FN0WhWwR9Dr/6exGhz/byLJa7xfhWDnWEjzewS0bJF7yK52v\ntTrEz+3QJHvatUnL+rxOAUITkyDHCZ+bGYvlYazNiaSu41vVwusK1IBn2iug\ndwKVmCJOxXk3EGP+XrqEnNfuX6iRU6frKnqissZXtLaZ2tFMZxUUSVf1vvZ6\nX5Brori48pSvu+IvmykM3WllNOmaNJwBwfhtK1IZMabQQ6And0/9JNTOUjkf\n5uTvlCDCFdujGbTC3pvVwWz3IDbDOfUjSuz4RWoay4kFxSO/f8iSBEWvDYMn\nX4N2YuBjKOhkozf0oM4Iyv3mzfEi7dYp6/K/YO74NDtPoGqz0MtvE16jmrrx\nuC7fohNMdVY5IjdRPz1N1FaLliDmA0oMOGpUQh7prTnOHPgrZH2MrU0oQqGW\nqK/iHExHBDBmynQD615/CSqdG6wJfr7j4qfh2/5j8v+scabl6XCv0vGEU8vu\numdyrHee4iT9NnbYkKLLo3aNPcLYQMM2hxL+jO3PAcAk4wjtA1BlgCwve0ze\nOFcILjn9lT8eJbcUC1Ca+SkFXPFdCbk71QQc8TboBE1Tgop4MdO2qsv6LQEp\nleO8\r\n=uPLH\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-storage-gateway-browser has been renamed to @aws-sdk/client-storage-gateway. Please install the renamed package.","_npmVersion":"6.9.0","description":"Browser SDK for AWS Storage Gateway","directories":{},"_nodeVersion":"10.1.0","dependencies":{"tslib":"^1.8.0","@aws-sdk/types":"^0.1.0-preview.5","@aws-sdk/json-parser":"^0.1.0-preview.5","@aws-sdk/core-handler":"^0.1.0-preview.5","@aws-sdk/json-builder":"^0.1.0-preview.5","@aws-sdk/signature-v4":"^0.1.0-preview.6","@aws-sdk/config-resolver":"^0.1.0-preview.5","@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/protocol-json-rpc":"^0.1.0-preview.6","@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/json-error-unmarshaller":"^0.1.0-preview.6","@aws-sdk/util-user-agent-browser":"^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":{"rimraf":"^2.6.2","typedoc":"^0.14.2","typescript":"~3.4.0","@aws-sdk/client-documentation-generator":"^0.1.0-preview.3"},"_npmOperationalInternal":{"tmp":"tmp/client-storage-gateway-browser_0.1.0-preview.2_1568051094953_0.21258574448654133","host":"s3://npm-registry-packages"}},"0.1.0-preview.3":{"name":"@aws-sdk/client-storage-gateway-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-storage-gateway-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":"89cc036b7ce80af3dd858be1b38ffb6388531d40","tarball":"https://registry.npmjs.org/@aws-sdk/client-storage-gateway-browser/-/client-storage-gateway-browser-0.1.0-preview.3.tgz","fileCount":1793,"integrity":"sha512-c2xYEws5k2Vf4qBt4swn1h2ax/LDISe3eFmKO5YlAsgk9gmNw5yqqgbqAZRkAM0tj/8RAmI3d1Z7yY5LbN4tsg==","signatures":[{"sig":"MEUCIFQfBrf7Q1S4o+c1/93FCqq+K4wSiHm/mPUSC1s2JUHwAiEAkwX06ZT15YmtOlHkebiqcLHGVJ/yz42WyVhi35MMIQo=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1125331,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdg6WxCRA9TVsSAnZWagAAygYP/3cRms09twqp3/7Iclk7\nbu9+A4BPBKTgkYlteeYgnP+vkkEtfUMp6oXArDo+AH+85yBnfKU4FQUAKrZu\nlmsmy70jSJlBEA+/TF9dyL1QFUUq/hHmra8sf7fLEbQiI34ELpe5mb2asLN6\nabFCpW9m9geEGjmjThxNHFIRK5oFPsrvYdqWe7vSbdCLEVCdHq+I26q5Dn4/\n+qDptQQ3MnjXf7oRVH+XDR2DB1BtwbidPzazmzon6Aq9CkF8bvbWJkJEe5b9\n4iLezJNhhd5kiI78vNoipqryKgnS4gW1gy/ZjA0QY6kK/y2FLJPJdFQY+/N6\nsnu/XdcLXQs4sYMWJJXdh+UjHqRJhfePJB2hNbHIGDLNb3swClkaTbwHfRWT\n7zPqpG58bqKJiVOtiFSECmUVVMNGUiyqOqyGuOyGwmR/i+iW+to75rmK26pn\nrQtuYgXfwmJQyYoD3Sb41QzBKk1IlHmWEVGXkJ00psXdESsVT5TCxVz21/0F\nknDCsHZKRK4vKZVQFVOFqZhP2wzIcjBrM6cW/L2tzkXQCkcEzaPnXZquXjLC\ndfw/OYxUVU2zcdfYeCYXPgHbfPdrIFZ9E09jyxfnKOOwb5Ij+6yRz6IW+mDh\nQDObBusam3vR5llndwKP7WJbHNGPe0WtphAWoydbrMnt6EjRemLnua0GLK6S\na2jC\r\n=sGM5\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./index.js","types":"./index.d.ts","readme":"# @aws-sdk/client-storage-gateway-browser\n\n[![NPM version](https://img.shields.io/npm/v/@aws-sdk/client-storage-gateway-browser/preview.svg)](https://www.npmjs.com/package/@aws-sdk/client-storage-gateway-browser)\n[![NPM downloads](https://img.shields.io/npm/dm/@aws-sdk/client-storage-gateway-browser.svg)](https://www.npmjs.com/package/@aws-sdk/client-storage-gateway-browser)\n\n## Description\n\n<fullname>AWS Storage Gateway Service</fullname> <p>AWS Storage Gateway is the service that connects an on-premises software appliance with cloud-based storage to provide seamless and secure integration between an organization's on-premises IT environment and the AWS storage infrastructure. The service enables you to securely upload data to the AWS cloud for cost effective backup and rapid disaster recovery.</p> <p>Use the following links to get started using the <i>AWS Storage Gateway Service API Reference</i>:</p> <ul> <li> <p> <a href=\"https://docs.aws.amazon.com/storagegateway/latest/userguide/AWSStorageGatewayAPI.html#AWSStorageGatewayHTTPRequestsHeaders\">AWS Storage Gateway Required Request Headers</a>: Describes the required headers that you must send with every POST request to AWS Storage Gateway.</p> </li> <li> <p> <a href=\"https://docs.aws.amazon.com/storagegateway/latest/userguide/AWSStorageGatewayAPI.html#AWSStorageGatewaySigningRequests\">Signing Requests</a>: AWS Storage Gateway requires that you authenticate every request you send; this topic describes how sign such a request.</p> </li> <li> <p> <a href=\"https://docs.aws.amazon.com/storagegateway/latest/userguide/AWSStorageGatewayAPI.html#APIErrorResponses\">Error Responses</a>: Provides reference information about AWS Storage Gateway errors.</p> </li> <li> <p> <a href=\"https://docs.aws.amazon.com/storagegateway/latest/APIReference/API_Operations.html\">Operations in AWS Storage Gateway</a>: Contains detailed descriptions of all AWS Storage Gateway operations, their request parameters, response elements, possible errors, and examples of requests and responses.</p> </li> <li> <p> <a href=\"http://docs.aws.amazon.com/general/latest/gr/rande.html#sg_region\">AWS Storage Gateway Regions and Endpoints:</a> Provides a list of each AWS region and endpoints available for use with AWS Storage Gateway. </p> </li> </ul> <note> <p>AWS Storage Gateway resource IDs are in uppercase. When you use these resource IDs with the Amazon EC2 API, EC2 expects resource IDs in lowercase. You must change your resource ID to lowercase to use it with the EC2 API. For example, in Storage Gateway the ID for a volume might be <code>vol-AA22BB012345DAF670</code>. When you use this ID with the EC2 API, you must change it to <code>vol-aa22bb012345daf670</code>. Otherwise, the EC2 API might not behave as expected.</p> </note> <important> <p>IDs for Storage Gateway volumes and Amazon EBS snapshots created from gateway volumes are changing to a longer format. Starting in December 2016, all new volumes and snapshots will be created with a 17-character string. Starting in April 2016, you will be able to use these longer IDs so you can test your systems with the new format. For more information, see <a href=\"https://aws.amazon.com/ec2/faqs/#longer-ids\">Longer EC2 and EBS Resource IDs</a>. </p> <p> For example, a volume Amazon Resource Name (ARN) with the longer volume ID format looks like the following:</p> <p> <code>arn:aws:storagegateway:us-west-2:111122223333:gateway/sgw-12A3456B/volume/vol-1122AABBCCDDEEFFG</code>.</p> <p>A snapshot ID with the longer ID format looks like the following: <code>snap-78e226633445566ee</code>.</p> <p>For more information, see <a href=\"https://forums.aws.amazon.com/ann.jspa?annID=3557\">Announcement: Heads-up – Longer AWS Storage Gateway volume and snapshot IDs coming in 2016</a>.</p> </important>\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-storage-gateway-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(`StorageGatewayClient`) and the commands you need, for example `ActivateGatewayCommand`:\n\n```javascript\n//JavaScript\nconst {\n  StorageGatewayClient\n} = require(\"@aws-sdk/client-storage-gateway-browser/StorageGatewayClient\");\nconst {\n  ActivateGatewayCommand\n} = require(\"@aws-sdk/client-storage-gateway-browser/commands/ActivateGatewayCommand\");\n```\n\n```javascript\n//TypeScript\nimport { StorageGatewayClient } from \"@aws-sdk/client-storage-gateway-browser/StorageGatewayClient\";\nimport { ActivateGatewayCommand } from \"@aws-sdk/client-storage-gateway-browser/commands/ActivateGatewayCommand\";\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 storageGateway = new StorageGatewayClient({region: 'region'});\n//clients can be shared by different commands\nconst params = {\n  ActivationKey: /**a string value*/,\n  GatewayName: /**a string value*/,\n  GatewayTimezone: /**a string value*/,\n  GatewayRegion: /**a string value*/,\n};\nconst activateGatewayCommand = new ActivateGatewayCommand(params);\nstorageGateway.send(activateGatewayCommand).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 storageGateway.send(activateGatewayCommand);\n  // do something\n} catch (error) {\n  // error handling\n}\n```\n\n```javascript\n// callback\nstorageGateway.send(activateGatewayCommand, (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-storage-gateway-browser/StorageGateway\";\nconst storageGateway = new AWS.StorageGateway({ region: \"region\" });\nstorageGateway.activateGateway(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 storageGateway.send(activateGatewayCommand);\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-storage-gateway-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-storage-gateway-browser has been renamed to @aws-sdk/client-storage-gateway. Please install the renamed package.","_npmVersion":"6.9.0","description":"Browser SDK for AWS Storage Gateway","directories":{},"_nodeVersion":"10.1.0","dependencies":{"tslib":"^1.8.0","@aws-sdk/types":"^0.1.0-preview.5","@aws-sdk/json-parser":"^0.1.0-preview.5","@aws-sdk/core-handler":"^0.1.0-preview.5","@aws-sdk/json-builder":"^0.1.0-preview.5","@aws-sdk/signature-v4":"^0.1.0-preview.7","@aws-sdk/config-resolver":"^0.1.0-preview.5","@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/protocol-json-rpc":"^0.1.0-preview.6","@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/json-error-unmarshaller":"^0.1.0-preview.6","@aws-sdk/util-user-agent-browser":"^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":{"rimraf":"^2.6.2","typedoc":"^0.14.2","typescript":"~3.4.0","@aws-sdk/client-documentation-generator":"^0.1.0-preview.3"},"_npmOperationalInternal":{"tmp":"tmp/client-storage-gateway-browser_0.1.0-preview.3_1568908720623_0.3174699435535797","host":"s3://npm-registry-packages"}},"0.1.0-preview.4":{"name":"@aws-sdk/client-storage-gateway-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-storage-gateway-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":"a4b2376042199b50c9b70f2141bdd9d3aba84a3b","tarball":"https://registry.npmjs.org/@aws-sdk/client-storage-gateway-browser/-/client-storage-gateway-browser-0.1.0-preview.4.tgz","fileCount":1793,"integrity":"sha512-/ukGgoT33bGa0h2oRI6cwST2BN68DGxUOU3WRONaHS8mJDiNpp7SQUqXGfbPEU5Z8Jv+52iIDM3SQQSG9VyHGw==","signatures":[{"sig":"MEUCIA4N2mXnJv+1UdO1ioyaelkYRr6LzACqLq87yVEHSxKnAiEAh2uLVjJuj+kO43We2i9rcFZLPuk4ZRz/mhtt4jfBwLI=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1125328,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJduM+dCRA9TVsSAnZWagAAseUQAJynu4qKaw56dT/HSQN5\nSrt1flUftu2ff8HNJWVVAmp5PDOaWQgjWLNuTWcvjmFbfx9acYM3stuV/7rY\nfcJxBOuttDpplbCdlmwm6MC/moW2WWOkexazm+yy7FaoDqOvT4Wazg38QgRB\nlnX/EOzS9ur9c+jIi4fJjOh5i3NS3ILYl3dJOX4jpNb1dgLfwakChtYJu9LI\nJmRddWoFrZanma6MUikN5kf/ZAq1JR+T/807od6hjHVinfxKyQdon9MTyyCx\nAw/z+d851+VCcqvpE638Pg9yZd+urizsVpQgjexj1i/fwoJl9BCadcAG4Eq0\nkjh5+Yy/+ZyST708i6fHN5E+wJXlgqmmi9mFANibsWqVn0EPoOX0aMIyMkvu\nBoKAlOgHGODC8r57L1QV+d93534vBfSGKeJD5JBrcP8GFxBv3PNdJ0ZJLMW8\n0R9kXTkN8w+mTsoPJXHcYnHyYxOR8o327NQUoUlifjEqHtxeFUqT4TEMLdTT\na6dhKWs1ZMUgkook3CmIVKTJGFKTGHTkm8Xl4hKRmYARyyxv1bxAwhw1yRJr\nRldMGl9+QFRP94e95xokrQiE4REvsYzo1DAFaAflRq71IeC9pdHOlkMr6ArQ\nO1WV+B3pryklb9HRtYQERv9H9b4srJ3xK1kMFsUkHd6IQosh70PZuh80mHEe\nVQ+0\r\n=ThFd\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./index.js","types":"./index.d.ts","readme":"# @aws-sdk/client-storage-gateway-browser\n\n[![NPM version](https://img.shields.io/npm/v/@aws-sdk/client-storage-gateway-browser/preview.svg)](https://www.npmjs.com/package/@aws-sdk/client-storage-gateway-browser)\n[![NPM downloads](https://img.shields.io/npm/dm/@aws-sdk/client-storage-gateway-browser.svg)](https://www.npmjs.com/package/@aws-sdk/client-storage-gateway-browser)\n\n## Description\n\n<fullname>AWS Storage Gateway Service</fullname> <p>AWS Storage Gateway is the service that connects an on-premises software appliance with cloud-based storage to provide seamless and secure integration between an organization's on-premises IT environment and the AWS storage infrastructure. The service enables you to securely upload data to the AWS cloud for cost effective backup and rapid disaster recovery.</p> <p>Use the following links to get started using the <i>AWS Storage Gateway Service API Reference</i>:</p> <ul> <li> <p> <a href=\"https://docs.aws.amazon.com/storagegateway/latest/userguide/AWSStorageGatewayAPI.html#AWSStorageGatewayHTTPRequestsHeaders\">AWS Storage Gateway Required Request Headers</a>: Describes the required headers that you must send with every POST request to AWS Storage Gateway.</p> </li> <li> <p> <a href=\"https://docs.aws.amazon.com/storagegateway/latest/userguide/AWSStorageGatewayAPI.html#AWSStorageGatewaySigningRequests\">Signing Requests</a>: AWS Storage Gateway requires that you authenticate every request you send; this topic describes how sign such a request.</p> </li> <li> <p> <a href=\"https://docs.aws.amazon.com/storagegateway/latest/userguide/AWSStorageGatewayAPI.html#APIErrorResponses\">Error Responses</a>: Provides reference information about AWS Storage Gateway errors.</p> </li> <li> <p> <a href=\"https://docs.aws.amazon.com/storagegateway/latest/APIReference/API_Operations.html\">Operations in AWS Storage Gateway</a>: Contains detailed descriptions of all AWS Storage Gateway operations, their request parameters, response elements, possible errors, and examples of requests and responses.</p> </li> <li> <p> <a href=\"http://docs.aws.amazon.com/general/latest/gr/rande.html#sg_region\">AWS Storage Gateway Regions and Endpoints:</a> Provides a list of each AWS region and endpoints available for use with AWS Storage Gateway. </p> </li> </ul> <note> <p>AWS Storage Gateway resource IDs are in uppercase. When you use these resource IDs with the Amazon EC2 API, EC2 expects resource IDs in lowercase. You must change your resource ID to lowercase to use it with the EC2 API. For example, in Storage Gateway the ID for a volume might be <code>vol-AA22BB012345DAF670</code>. When you use this ID with the EC2 API, you must change it to <code>vol-aa22bb012345daf670</code>. Otherwise, the EC2 API might not behave as expected.</p> </note> <important> <p>IDs for Storage Gateway volumes and Amazon EBS snapshots created from gateway volumes are changing to a longer format. Starting in December 2016, all new volumes and snapshots will be created with a 17-character string. Starting in April 2016, you will be able to use these longer IDs so you can test your systems with the new format. For more information, see <a href=\"https://aws.amazon.com/ec2/faqs/#longer-ids\">Longer EC2 and EBS Resource IDs</a>. </p> <p> For example, a volume Amazon Resource Name (ARN) with the longer volume ID format looks like the following:</p> <p> <code>arn:aws:storagegateway:us-west-2:111122223333:gateway/sgw-12A3456B/volume/vol-1122AABBCCDDEEFFG</code>.</p> <p>A snapshot ID with the longer ID format looks like the following: <code>snap-78e226633445566ee</code>.</p> <p>For more information, see <a href=\"https://forums.aws.amazon.com/ann.jspa?annID=3557\">Announcement: Heads-up – Longer AWS Storage Gateway volume and snapshot IDs coming in 2016</a>.</p> </important>\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-storage-gateway-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(`StorageGatewayClient`) and the commands you need, for example `ActivateGatewayCommand`:\n\n```javascript\n//JavaScript\nconst {\n  StorageGatewayClient,\n  ActivateGatewayCommand\n} = require(\"@aws-sdk/client-storage-gateway-browser\");\n```\n\n```javascript\n//TypeScript\nimport {\n  StorageGatewayClient,\n  ActivateGatewayCommand\n} from \"@aws-sdk/client-storage-gateway-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 storageGateway = new StorageGatewayClient({region: 'region'});\n//clients can be shared by different commands\nconst params = {\n  ActivationKey: /**a string value*/,\n  GatewayName: /**a string value*/,\n  GatewayTimezone: /**a string value*/,\n  GatewayRegion: /**a string value*/,\n};\nconst activateGatewayCommand = new ActivateGatewayCommand(params);\nstorageGateway.send(activateGatewayCommand).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 storageGateway.send(activateGatewayCommand);\n  // do something\n} catch (error) {\n  // error handling\n}\n```\n\n```javascript\n// callback\nstorageGateway.send(activateGatewayCommand, (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-storage-gateway-browser\";\nconst storageGateway = new AWS.StorageGateway({ region: \"region\" });\nstorageGateway.activateGateway(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 storageGateway.send(activateGatewayCommand);\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-storage-gateway-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-storage-gateway-browser has been renamed to @aws-sdk/client-storage-gateway. Please install the renamed package.","_npmVersion":"6.9.0","description":"Browser SDK for AWS Storage Gateway","directories":{},"_nodeVersion":"10.1.0","dependencies":{"tslib":"^1.8.0","@aws-sdk/types":"^0.1.0-preview.6","@aws-sdk/json-parser":"^0.1.0-preview.6","@aws-sdk/core-handler":"^0.1.0-preview.6","@aws-sdk/json-builder":"^0.1.0-preview.6","@aws-sdk/signature-v4":"^0.1.0-preview.8","@aws-sdk/config-resolver":"^0.1.0-preview.6","@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/protocol-json-rpc":"^0.1.0-preview.7","@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/json-error-unmarshaller":"^0.1.0-preview.7","@aws-sdk/util-user-agent-browser":"^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":{"rimraf":"^2.6.2","typedoc":"^0.14.2","typescript":"~3.4.0","@aws-sdk/client-documentation-generator":"^0.1.0-preview.3"},"_npmOperationalInternal":{"tmp":"tmp/client-storage-gateway-browser_0.1.0-preview.4_1572392860613_0.4440773785273915","host":"s3://npm-registry-packages"}},"0.1.0-preview.5":{"name":"@aws-sdk/client-storage-gateway-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-storage-gateway-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":"8ae11681c55957bebd881e9895c3103af4fea7da","tarball":"https://registry.npmjs.org/@aws-sdk/client-storage-gateway-browser/-/client-storage-gateway-browser-0.1.0-preview.5.tgz","fileCount":1793,"integrity":"sha512-4VeA39M6lPF6f3IA0n6LozIGXKDgIRzIXV0ErjZ3RVFLt/xa7w/7xMphHIAPUoL0WyU2RhWC+XyR9yA7LF2qvA==","signatures":[{"sig":"MEUCIDpGw7Bsw7W356n1BKox7doXPS5uCiWbVHGizqj0KrjXAiEA0jjgyvr7Fn1jA6/5RnPGTKNfBof20/KAuyhWGxUoLuA=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1125572,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdueKPCRA9TVsSAnZWagAAVkMP/3U8VdF5FeRio8G+RKuD\nmS3lDS4uJYfODfudhtE7GF3wcIOeXN6kYLtlVizAn6nIKYxnepQ/qnoP6dKM\nnmp/IfolLN1BoKpxyfGeviJOTHD1sKgEZA/k82Owzudad/eily+skeyoAu4f\nr1EZtp81dCkrUirZD96pDRbXFyfqq8++C5CtfhribTdoovbxTY/AMS57O+/i\nH7qWasOSLWaU6eJYi9OvZrtu4gfibL9iJG0NmkQQG9XMXXhEyyRUK5UA2F/4\njCbqxb2r+K/Ql3u3LzIKc+uOTfoA8NHOXV3oGCELROavBjUzS32AsgkdvAsp\nqXT35DwQlh0M+pTBUel4Ol6h2VHWwA2Epl9PRaguZNYDIb2dDrp4D81BPaJ0\nmHi8CHRnxVdgWzOVTmb6i0FwYissbTVsrmRF8ZH/pu8/9dOgrW0d9oleEljS\nXUIRxVS4mGqxpmB30RhQL9Sl0j4GrNmumRwC4GCLGXoOb6qc4HHo/eoZYUMX\n5fDBepaplcZaqvGBydT1/KIJSHrzsDFSiSr473R/ZS2wugdm7CsSy9QIga7u\n9RorydLql48PmkpHwzxkqgPlDepNrtLsOQj13JSGGqYNn1TiTYMcd92uzUpy\naq0PeiWuaSbSaU59c08NIBdpwt963mBy/AoEQMoCilYZ85kaIlmaq05f8w0+\ncO4L\r\n=fTUp\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./index.js","types":"./index.d.ts","readme":"# @aws-sdk/client-storage-gateway-browser\n\n[![NPM version](https://img.shields.io/npm/v/@aws-sdk/client-storage-gateway-browser/preview.svg)](https://www.npmjs.com/package/@aws-sdk/client-storage-gateway-browser)\n[![NPM downloads](https://img.shields.io/npm/dm/@aws-sdk/client-storage-gateway-browser.svg)](https://www.npmjs.com/package/@aws-sdk/client-storage-gateway-browser)\n\n## Description\n\n<fullname>AWS Storage Gateway Service</fullname> <p>AWS Storage Gateway is the service that connects an on-premises software appliance with cloud-based storage to provide seamless and secure integration between an organization's on-premises IT environment and the AWS storage infrastructure. The service enables you to securely upload data to the AWS cloud for cost effective backup and rapid disaster recovery.</p> <p>Use the following links to get started using the <i>AWS Storage Gateway Service API Reference</i>:</p> <ul> <li> <p> <a href=\"https://docs.aws.amazon.com/storagegateway/latest/userguide/AWSStorageGatewayAPI.html#AWSStorageGatewayHTTPRequestsHeaders\">AWS Storage Gateway Required Request Headers</a>: Describes the required headers that you must send with every POST request to AWS Storage Gateway.</p> </li> <li> <p> <a href=\"https://docs.aws.amazon.com/storagegateway/latest/userguide/AWSStorageGatewayAPI.html#AWSStorageGatewaySigningRequests\">Signing Requests</a>: AWS Storage Gateway requires that you authenticate every request you send; this topic describes how sign such a request.</p> </li> <li> <p> <a href=\"https://docs.aws.amazon.com/storagegateway/latest/userguide/AWSStorageGatewayAPI.html#APIErrorResponses\">Error Responses</a>: Provides reference information about AWS Storage Gateway errors.</p> </li> <li> <p> <a href=\"https://docs.aws.amazon.com/storagegateway/latest/APIReference/API_Operations.html\">Operations in AWS Storage Gateway</a>: Contains detailed descriptions of all AWS Storage Gateway operations, their request parameters, response elements, possible errors, and examples of requests and responses.</p> </li> <li> <p> <a href=\"http://docs.aws.amazon.com/general/latest/gr/rande.html#sg_region\">AWS Storage Gateway Regions and Endpoints:</a> Provides a list of each AWS region and endpoints available for use with AWS Storage Gateway. </p> </li> </ul> <note> <p>AWS Storage Gateway resource IDs are in uppercase. When you use these resource IDs with the Amazon EC2 API, EC2 expects resource IDs in lowercase. You must change your resource ID to lowercase to use it with the EC2 API. For example, in Storage Gateway the ID for a volume might be <code>vol-AA22BB012345DAF670</code>. When you use this ID with the EC2 API, you must change it to <code>vol-aa22bb012345daf670</code>. Otherwise, the EC2 API might not behave as expected.</p> </note> <important> <p>IDs for Storage Gateway volumes and Amazon EBS snapshots created from gateway volumes are changing to a longer format. Starting in December 2016, all new volumes and snapshots will be created with a 17-character string. Starting in April 2016, you will be able to use these longer IDs so you can test your systems with the new format. For more information, see <a href=\"https://aws.amazon.com/ec2/faqs/#longer-ids\">Longer EC2 and EBS Resource IDs</a>. </p> <p> For example, a volume Amazon Resource Name (ARN) with the longer volume ID format looks like the following:</p> <p> <code>arn:aws:storagegateway:us-west-2:111122223333:gateway/sgw-12A3456B/volume/vol-1122AABBCCDDEEFFG</code>.</p> <p>A snapshot ID with the longer ID format looks like the following: <code>snap-78e226633445566ee</code>.</p> <p>For more information, see <a href=\"https://forums.aws.amazon.com/ann.jspa?annID=3557\">Announcement: Heads-up – Longer AWS Storage Gateway volume and snapshot IDs coming in 2016</a>.</p> </important>\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-storage-gateway-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(`StorageGatewayClient`) and the commands you need, for example `ActivateGatewayCommand`:\n\n```javascript\n//JavaScript\nconst {\n  StorageGatewayClient,\n  ActivateGatewayCommand\n} = require(\"@aws-sdk/client-storage-gateway-browser\");\n```\n\n```javascript\n//TypeScript\nimport {\n  StorageGatewayClient,\n  ActivateGatewayCommand\n} from \"@aws-sdk/client-storage-gateway-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 storageGateway = new StorageGatewayClient({region: 'region'});\n//clients can be shared by different commands\nconst params = {\n  ActivationKey: /**a string value*/,\n  GatewayName: /**a string value*/,\n  GatewayTimezone: /**a string value*/,\n  GatewayRegion: /**a string value*/,\n};\nconst activateGatewayCommand = new ActivateGatewayCommand(params);\nstorageGateway.send(activateGatewayCommand).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 storageGateway.send(activateGatewayCommand);\n  // do something\n} catch (error) {\n  // error handling\n}\n```\n\n```javascript\n// callback\nstorageGateway.send(activateGatewayCommand, (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-storage-gateway-browser\";\nconst storageGateway = new AWS.StorageGateway({ region: \"region\" });\nstorageGateway.activateGateway(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 storageGateway.send(activateGatewayCommand);\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-storage-gateway-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-storage-gateway-browser has been renamed to @aws-sdk/client-storage-gateway. Please install the renamed package.","_npmVersion":"6.9.0","description":"Browser SDK for AWS Storage Gateway","directories":{},"_nodeVersion":"10.1.0","dependencies":{"tslib":"^1.8.0","@aws-sdk/types":"^0.1.0-preview.7","@aws-sdk/json-parser":"^0.1.0-preview.7","@aws-sdk/core-handler":"^0.1.0-preview.7","@aws-sdk/json-builder":"^0.1.0-preview.7","@aws-sdk/signature-v4":"^0.1.0-preview.9","@aws-sdk/config-resolver":"^0.1.0-preview.7","@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/protocol-json-rpc":"^0.1.0-preview.8","@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/json-error-unmarshaller":"^0.1.0-preview.8","@aws-sdk/util-user-agent-browser":"^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":{"rimraf":"^2.6.2","typedoc":"^0.14.2","typescript":"~3.4.0","@aws-sdk/client-documentation-generator":"^0.1.0-preview.3"},"_npmOperationalInternal":{"tmp":"tmp/client-storage-gateway-browser_0.1.0-preview.5_1572463247365_0.2659982799343621","host":"s3://npm-registry-packages"}},"0.1.0-preview.6":{"name":"@aws-sdk/client-storage-gateway-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-storage-gateway-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":"85ea6106b1f9528fb43401bfdc19b83c8cd880d1","tarball":"https://registry.npmjs.org/@aws-sdk/client-storage-gateway-browser/-/client-storage-gateway-browser-0.1.0-preview.6.tgz","fileCount":1793,"integrity":"sha512-7iwTP3nysuVhSZYVXvaB9oEtf7aBp29IgBfGhoGTi2rXtN7LFtcJd7rsMbiP2tgXhHgqi1e5Kbw8D+TOufe2Bw==","signatures":[{"sig":"MEYCIQDpQo8iXsmfsXwzuCx5cQQFPaL8ufVOaV2szeQtfFhTTAIhAJb87B/Xj8484Y30/lL0DYuEpHAeQ+piafvgneQ/o7Nn","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1125842,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd1FO+CRA9TVsSAnZWagAAQ4EP/RKzpaS68fe8qKIxCOr6\nC3lCl5buHTbpvcV6HuBQCsh87koYsjiKvJJQZ/qvcX3xCR0xrSato19rDRSK\nuH/dZrNNjIrSYbGOMhPNX3hp/quLoUx26fmTze5MlzVv6XqGbPk87mftsGYB\nOSfqsDXnnwCJItqEzf6Cu2yY8KXVxESd6l1pcFf/xPvO1fi7NjsvfmuDV88t\n9RbkHZ7qidgMJGrZ85RFZcezxm5gEeaxvnYxR7DgkdrgzUdYqwQ971zwbFAA\n6OhSH4KbFB6I6P6lNkLL5GQjU7Swhg/IYSFrgC1tD0CGQIZRqPfr9QMGvkNS\n8VBJu9N5NeGHWe+/2ERcL26w3lnER21b9d6lTZ3oWvW7c6LHbbi56TysGLCx\ntMP6jiL5y/11rJBI7jrA7dgYTAhdOB+SZ9ncdGAnQLkuJ28ZcORia891SCHm\npJ1Hsn3I4XUsFlFg5jDBDdXXaPN2Oeu7cGFR5DjiKXGr1fCEjjAkifmFj8i5\nHHh/ueHql+ziKUhpnavrHKkKwKAauyMIHRJpP9wsGGuIpO3ixPfeNqxmW6kB\nG5ojqpg8amC+vSlLnyqGre6OK6fEgriE5H6OTsxbWW/Ux47V9SoVTcD/z+iM\nTJBvI+DAXW3hfEwb3QPgJB44gAJRSoGppSdfQNaJVTaeFnRsWA1AAx01jRQa\n9+2o\r\n=Nj8I\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./index.js","types":"./index.d.ts","readme":"# @aws-sdk/client-storage-gateway-browser\n\n[![NPM version](https://img.shields.io/npm/v/@aws-sdk/client-storage-gateway-browser/preview.svg)](https://www.npmjs.com/package/@aws-sdk/client-storage-gateway-browser)\n[![NPM downloads](https://img.shields.io/npm/dm/@aws-sdk/client-storage-gateway-browser.svg)](https://www.npmjs.com/package/@aws-sdk/client-storage-gateway-browser)\n\n## Description\n\n<fullname>AWS Storage Gateway Service</fullname> <p>AWS Storage Gateway is the service that connects an on-premises software appliance with cloud-based storage to provide seamless and secure integration between an organization's on-premises IT environment and the AWS storage infrastructure. The service enables you to securely upload data to the AWS cloud for cost effective backup and rapid disaster recovery.</p> <p>Use the following links to get started using the <i>AWS Storage Gateway Service API Reference</i>:</p> <ul> <li> <p> <a href=\"https://docs.aws.amazon.com/storagegateway/latest/userguide/AWSStorageGatewayAPI.html#AWSStorageGatewayHTTPRequestsHeaders\">AWS Storage Gateway Required Request Headers</a>: Describes the required headers that you must send with every POST request to AWS Storage Gateway.</p> </li> <li> <p> <a href=\"https://docs.aws.amazon.com/storagegateway/latest/userguide/AWSStorageGatewayAPI.html#AWSStorageGatewaySigningRequests\">Signing Requests</a>: AWS Storage Gateway requires that you authenticate every request you send; this topic describes how sign such a request.</p> </li> <li> <p> <a href=\"https://docs.aws.amazon.com/storagegateway/latest/userguide/AWSStorageGatewayAPI.html#APIErrorResponses\">Error Responses</a>: Provides reference information about AWS Storage Gateway errors.</p> </li> <li> <p> <a href=\"https://docs.aws.amazon.com/storagegateway/latest/APIReference/API_Operations.html\">Operations in AWS Storage Gateway</a>: Contains detailed descriptions of all AWS Storage Gateway operations, their request parameters, response elements, possible errors, and examples of requests and responses.</p> </li> <li> <p> <a href=\"http://docs.aws.amazon.com/general/latest/gr/rande.html#sg_region\">AWS Storage Gateway Regions and Endpoints:</a> Provides a list of each AWS region and endpoints available for use with AWS Storage Gateway. </p> </li> </ul> <note> <p>AWS Storage Gateway resource IDs are in uppercase. When you use these resource IDs with the Amazon EC2 API, EC2 expects resource IDs in lowercase. You must change your resource ID to lowercase to use it with the EC2 API. For example, in Storage Gateway the ID for a volume might be <code>vol-AA22BB012345DAF670</code>. When you use this ID with the EC2 API, you must change it to <code>vol-aa22bb012345daf670</code>. Otherwise, the EC2 API might not behave as expected.</p> </note> <important> <p>IDs for Storage Gateway volumes and Amazon EBS snapshots created from gateway volumes are changing to a longer format. Starting in December 2016, all new volumes and snapshots will be created with a 17-character string. Starting in April 2016, you will be able to use these longer IDs so you can test your systems with the new format. For more information, see <a href=\"https://aws.amazon.com/ec2/faqs/#longer-ids\">Longer EC2 and EBS Resource IDs</a>. </p> <p> For example, a volume Amazon Resource Name (ARN) with the longer volume ID format looks like the following:</p> <p> <code>arn:aws:storagegateway:us-west-2:111122223333:gateway/sgw-12A3456B/volume/vol-1122AABBCCDDEEFFG</code>.</p> <p>A snapshot ID with the longer ID format looks like the following: <code>snap-78e226633445566ee</code>.</p> <p>For more information, see <a href=\"https://forums.aws.amazon.com/ann.jspa?annID=3557\">Announcement: Heads-up – Longer AWS Storage Gateway volume and snapshot IDs coming in 2016</a>.</p> </important>\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-storage-gateway-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(`StorageGatewayClient`) and the commands you need, for example `ActivateGatewayCommand`:\n\n```javascript\n//JavaScript\nconst {\n  StorageGatewayClient,\n  ActivateGatewayCommand\n} = require(\"@aws-sdk/client-storage-gateway-browser\");\n```\n\n```javascript\n//TypeScript\nimport {\n  StorageGatewayClient,\n  ActivateGatewayCommand\n} from \"@aws-sdk/client-storage-gateway-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 storageGateway = new StorageGatewayClient({region: 'region'});\n//clients can be shared by different commands\nconst params = {\n  ActivationKey: /**a string value*/,\n  GatewayName: /**a string value*/,\n  GatewayTimezone: /**a string value*/,\n  GatewayRegion: /**a string value*/,\n};\nconst activateGatewayCommand = new ActivateGatewayCommand(params);\nstorageGateway.send(activateGatewayCommand).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 storageGateway.send(activateGatewayCommand);\n  // do something\n} catch (error) {\n  // error handling\n}\n```\n\n```javascript\n// callback\nstorageGateway.send(activateGatewayCommand, (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-storage-gateway-browser\";\nconst storageGateway = new AWS.StorageGateway({ region: \"region\" });\nstorageGateway.activateGateway(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 storageGateway.send(activateGatewayCommand);\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-storage-gateway-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-storage-gateway-browser has been renamed to @aws-sdk/client-storage-gateway. Please install the renamed package.","_npmVersion":"6.9.0","description":"Browser SDK for AWS Storage Gateway","directories":{},"_nodeVersion":"10.16.3","dependencies":{"tslib":"^1.8.0","@aws-sdk/types":"^0.1.0-preview.7","@aws-sdk/json-parser":"^0.1.0-preview.7","@aws-sdk/core-handler":"^0.1.0-preview.7","@aws-sdk/json-builder":"^0.1.0-preview.7","@aws-sdk/signature-v4":"^0.1.0-preview.10","@aws-sdk/config-resolver":"^0.1.0-preview.7","@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/protocol-json-rpc":"^0.1.0-preview.8","@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/json-error-unmarshaller":"^0.1.0-preview.8","@aws-sdk/util-user-agent-browser":"^0.1.0-preview.9","@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":{"rimraf":"^2.6.2","typedoc":"^0.14.2","typescript":"~3.4.0","@aws-sdk/client-documentation-generator":"^0.1.0-preview.3"},"_npmOperationalInternal":{"tmp":"tmp/client-storage-gateway-browser_0.1.0-preview.6_1574196158151_0.8520889872186166","host":"s3://npm-registry-packages"}}},"time":{"created":"2019-09-09T17:44:54.710Z","modified":"2025-03-27T18:43:02.547Z","0.1.0-preview.2":"2019-09-09T17:44:55.296Z","0.1.0-preview.3":"2019-09-19T15:58:40.862Z","0.1.0-preview.4":"2019-10-29T23:47:40.813Z","0.1.0-preview.5":"2019-10-30T19:20:47.644Z","0.1.0-preview.6":"2019-11-19T20:42:38.327Z"},"author":{"url":"https://aws.amazon.com/javascript/","name":"AWS SDK for JavaScript Team"},"license":"Apache-2.0","description":"Browser SDK for AWS Storage Gateway","maintainers":[{"email":"osa-3p@amazon.com","name":"amzn-oss"},{"email":"aws-sdk-js-automation@amazon.com","name":"aws-sdk-bot"}],"readme":"","readmeFilename":""}