{"_id":"@aws-sdk/client-glacier-browser","_rev":"19-af56fa2ce8d7b02cf1754634f323a089","name":"@aws-sdk/client-glacier-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-glacier-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-glacier-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":"5b2a7d4dec682ebd8b875ec36efe9f0c1158b55e","tarball":"https://registry.npmjs.org/@aws-sdk/client-glacier-browser/-/client-glacier-browser-0.1.0-preview.2.tgz","fileCount":942,"integrity":"sha512-ZDXh6OvcWkVV5nUV3olMO+NBU6NR3evSayFF39kv0qEerY3l4m7oHcLd8abCyK1o6874AKhLJQg/UuTnUDYr7w==","signatures":[{"sig":"MEUCIQC70K1suvSRXR8i7M5nvfj/V+ejIc3oin3IGFe9TqRp6gIgY+91JWINVH8qe78IYHSUvq2ptunGpO/rdUBGg2N6G5I=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":636165,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJddpP0CRA9TVsSAnZWagAA7agP/1SHUK5O4RdPvC7IgV1X\nwlv7xBFWDRtUeL2hYGItOkJbVegVNdA7YKLLjVnQuopyIRCe4u1NTTuB1X/9\nWMMyTNVsv5LzVtuOYX1ylsNyfGOxPgyudWfvRW7FEwgQi91gF7xWCcf03GSG\nLrIkRd6j9iyLVvyPNxaRToEAmFsbtabX29tgn/bhbrH/AeDHN7JjcGNAVG5N\nX7uB43DDRykkYvvmqX28iVNAgVtWMsVOZ8yRV27lzVTxCFYQxJXlcmWAGegw\nnr8BgQ5GF5WWPZ9CM3xjl6W+woTGnc76Rb67QQ0FdBBuQs+TcUvMHTpstRhy\n1UAfCxEu3y0E4kW7xHp1ijHln5RXctSqMcc8wMpF1usGAJ3bb6cRLWscxwx3\num2ElD8ABNOqfm67tx7c7CPANra8v2XIYBBA7K3dL7zMYS5dX/wcM2vUZEoy\nIr2mhm/CgfCBbe6Bk6ACKGScKXbzmf2V8HwCgjQTv5RjisPf0WUrYAzUc2gy\nWsd20WfNYsyj1Y9ObEPzOciRuLMgktNyD9/Xvovs69P43V7V2NZws7jcM/Jk\nMhUwRvmcEF7QxGfRexA0VDWO75MZbD5pCn1GsQLGU6/4VePSikQFTLpqKuTR\nwbc5WkOpL6fKtVpGc4lcNqeSA1eov+1XHgbUk4HRzKGgG5sTxu9HxVhlZtpl\n8yK5\r\n=udZC\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-glacier-browser has been renamed to @aws-sdk/client-glacier. Please install the renamed package.","_npmVersion":"6.9.0","description":"Browser SDK for Amazon Glacier","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/protocol-rest":"^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/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/middleware-sdk-glacier":"^0.1.0-preview.6","@aws-sdk/json-error-unmarshaller":"^0.1.0-preview.6","@aws-sdk/util-user-agent-browser":"^0.1.0-preview.6","@aws-sdk/middleware-input-default":"^0.1.0-preview.5","@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","@aws-sdk/add-glacier-checksum-headers-browser":"^0.1.0-preview.6"},"_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-glacier-browser_0.1.0-preview.2_1568052211299_0.1947819856071642","host":"s3://npm-registry-packages"}},"0.1.0-preview.3":{"name":"@aws-sdk/client-glacier-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-glacier-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":"95b9d7fa1a1bf2e478c2a93285746f4e7a4b11c5","tarball":"https://registry.npmjs.org/@aws-sdk/client-glacier-browser/-/client-glacier-browser-0.1.0-preview.3.tgz","fileCount":942,"integrity":"sha512-vAOMlOiIBjfzRf5jshW/6D0Ex+K5PSZThgf3Z2GfKPyxBUTVBg6h4IvssRIw9gSP2c/DUudQmNci4G0pXUG8/w==","signatures":[{"sig":"MEUCIQD+BKdcF0M4eQswtxAiIPqj4zxvu3QWllApmzqD4s7rewIgE0UqxsyAwyBlPztYp7rTJw5BTTdh/eIxCegBLCi/iAI=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":636385,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdg6lhCRA9TVsSAnZWagAAZygP/AwHFUjeCPGkYaWGMGdQ\nv0E/f5L3WBrmjQ94T5Vx4a1H41BPaVu4KtIYv2ERt1ab2BBU9zDM5IdXfEgC\nzzEZYmldnMr10ykn7ktVUY8fX1Qew87CHdOskiMM0tN4wS8WWiEzcYR6tNuJ\nSmzmg3VrnZ5CBtpDYqOP3xn3pQJV05HvjBmcE4e+w9ZkGVutkOgDko7dskJB\nOXQ6gE10LexQacUXdUq923wrVG1zNAoQZK80Z21JQ3LHw2KAF5IzXvboPQZu\nmtU+UvW+wl3KrA3auEx/wakvOPjMck8+Sz4QeF09TFYtte6hCj22ousJqb+B\nVBNo+4WdWKKYjlTZ1iDWqxBelu8p1Hq7iD7YBGxoJk2OUPFpStbmwaOjY4bD\n3LU2DvJpcBSYYhssXkI4/4FnA5q7Gtj28QchDKT9Cebkd1GvT2+amdzmCpt3\naYVIVdwSaNzBzKX1qIGQaeHglabuYnGTvd8+Hy3emhPkVi4rNj6pQdGiCDcd\nuz32KH71V52XfrYmFGdzroOVGfTWlroWDV8aoiENpF5ZXrSmnyVCNqgxePBl\ndG77Fj92OGH5CWExD1NuXqmPTUWkWajP/7yKZVrcqXRZS8A/4mhk/3nTJjy5\nk1Or4+9G1/OFbRPBd1Qm5MhnVcQLZbjs0E5r3TO+ru+iycus0FUxIK70ns5/\noIIJ\r\n=wi1Z\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./index.js","types":"./index.d.ts","readme":"# @aws-sdk/client-glacier-browser\n\n[![NPM version](https://img.shields.io/npm/v/@aws-sdk/client-glacier-browser/preview.svg)](https://www.npmjs.com/package/@aws-sdk/client-glacier-browser)\n[![NPM downloads](https://img.shields.io/npm/dm/@aws-sdk/client-glacier-browser.svg)](https://www.npmjs.com/package/@aws-sdk/client-glacier-browser)\n\n## Description\n\n<p> Amazon S3 Glacier (Glacier) is a storage solution for \"cold data.\"</p> <p>Glacier is an extremely low-cost storage service that provides secure, durable, and easy-to-use storage for data backup and archival. With Glacier, customers can store their data cost effectively for months, years, or decades. Glacier also enables customers to offload the administrative burdens of operating and scaling storage to AWS, so they don't have to worry about capacity planning, hardware provisioning, data replication, hardware failure and recovery, or time-consuming hardware migrations.</p> <p>Glacier is a great storage choice when low storage cost is paramount and your data is rarely retrieved. If your application requires fast or frequent access to your data, consider using Amazon S3. For more information, see <a href=\"http://aws.amazon.com/s3/\">Amazon Simple Storage Service (Amazon S3)</a>.</p> <p>You can store any kind of data in any format. There is no maximum limit on the total amount of data you can store in Glacier.</p> <p>If you are a first-time user of Glacier, we recommend that you begin by reading the following sections in the <i>Amazon S3 Glacier Developer Guide</i>:</p> <ul> <li> <p> <a href=\"https://docs.aws.amazon.com/amazonglacier/latest/dev/introduction.html\">What is Amazon S3 Glacier</a> - This section of the Developer Guide describes the underlying data model, the operations it supports, and the AWS SDKs that you can use to interact with the service.</p> </li> <li> <p> <a href=\"https://docs.aws.amazon.com/amazonglacier/latest/dev/amazon-glacier-getting-started.html\">Getting Started with Amazon S3 Glacier</a> - The Getting Started section walks you through the process of creating a vault, uploading archives, creating jobs to download archives, retrieving the job output, and deleting archives.</p> </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-glacier-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(`GlacierClient`) and the commands you need, for example `UploadArchiveCommand`:\n\n```javascript\n//JavaScript\nconst {\n  GlacierClient\n} = require(\"@aws-sdk/client-glacier-browser/GlacierClient\");\nconst {\n  UploadArchiveCommand\n} = require(\"@aws-sdk/client-glacier-browser/commands/UploadArchiveCommand\");\n```\n\n```javascript\n//TypeScript\nimport { GlacierClient } from \"@aws-sdk/client-glacier-browser/GlacierClient\";\nimport { UploadArchiveCommand } from \"@aws-sdk/client-glacier-browser/commands/UploadArchiveCommand\";\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 glacier = new GlacierClient({region: 'region'});\n//clients can be shared by different commands\nconst params = {\n  vaultName: /**a string value*/,\n  accountId: /**a string value*/,\n  body: /**a blob value*/\n  /**You can supply readable stream to streaming input. e.g. (await fetch(input)).body */,\n};\nconst uploadArchiveCommand = new UploadArchiveCommand(params);\nglacier.send(uploadArchiveCommand).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 glacier.send(uploadArchiveCommand);\n  // do something\n} catch (error) {\n  // error handling\n}\n```\n\n```javascript\n// callback\nglacier.send(uploadArchiveCommand, (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-glacier-browser/Glacier\";\nconst glacier = new AWS.Glacier({ region: \"region\" });\nglacier.uploadArchive(params, (err, data) => {\n  //do something\n});\n```\n\nFor operations containing stream response like `GetJobOutput()`, you can get response stream by accessing to streaming member. e.g. data.body.getReader().read().then(/_ do something and continue reading _/).(`data` is the resolved response object)\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 glacier.send(uploadArchiveCommand);\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-glacier-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-glacier-browser has been renamed to @aws-sdk/client-glacier. Please install the renamed package.","_npmVersion":"6.9.0","description":"Browser SDK for Amazon Glacier","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/protocol-rest":"^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/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/middleware-sdk-glacier":"^0.1.0-preview.7","@aws-sdk/json-error-unmarshaller":"^0.1.0-preview.6","@aws-sdk/util-user-agent-browser":"^0.1.0-preview.6","@aws-sdk/middleware-input-default":"^0.1.0-preview.5","@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","@aws-sdk/add-glacier-checksum-headers-browser":"^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.7","@aws-sdk/client-documentation-generator":"^0.1.0-preview.3"},"_npmOperationalInternal":{"tmp":"tmp/client-glacier-browser_0.1.0-preview.3_1568909664463_0.200609314422034","host":"s3://npm-registry-packages"}},"0.1.0-preview.4":{"name":"@aws-sdk/client-glacier-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-glacier-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":"e4acd338a5daead1769bb605e590953915b2db43","tarball":"https://registry.npmjs.org/@aws-sdk/client-glacier-browser/-/client-glacier-browser-0.1.0-preview.4.tgz","fileCount":942,"integrity":"sha512-JfAIKAlJbfFO948l8eaW0J6xR+LI+IdXZDbgNvNUu5PVJh5sDP6xdh8bozNPle+IJ6ZbpIIaL7DMOIsg40aUtg==","signatures":[{"sig":"MEUCIQChQSIB/iC0nxnBzDjqAXPD+SWE+MiinbtIF4+75bvhDwIgBLmXGYJR0QjRNO+MwadwnWVfGPhTsA47fhRpBoU9+ts=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":636423,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJduNMyCRA9TVsSAnZWagAAU/AP/3d47CDqir+ZCtHlLruo\nRJ1yAZxj4Fy7i9MKeVhr9f3g4hfsx6AYwVBBcU9sjpl0UIFEwIq9KDr7XT1R\nBy5bv8N51GoERVre3pglltLmu1zpEqcOtpcWBaNEKxRtPskbw88rUgWbr2il\npugQfupmSlp365cZTP5FSmhbUPyXY0gVNUUO9dvRIQptHAfI0kTpYavTkW9A\n/bexpPpg+/qX+Y6pASIc6T1JP0hgEa7icqHjB50s46QtEHuDCrhg/Emhq8zD\nAyxkAadlIIzNMuT6NoZ7UTBxPTqp+2Oa/kcXbQa2gcV/SanVIXAmq4gmjAbf\nNcTxu6MUW6stS9i7am2jDJ1GzTjsFkN9/bZ7Yp0GMHjPhS0sr9P9cUIpu0Nr\n0x79uXsOn2NFvMZbmgJrZVSJ32rC9irCw7yP4Bv8udkVKBebU5YBHKXOp46L\nf2H+vC3aeg+f5iLDlYQ9diLGDM8fN3pEtdAQrWvc0BgeAfVgdI4zRA4cvvZi\nAExtTr1NaFd6bNtZrLHYUwXo1ZUd6M+3stqMoa7KCt6l5DfXnlJ9rP/1aIjm\nDhs2CmS34AzHBnw3mP1ormND+GKyFujDjJomYE8xTwtdUltQlTCiYrdRgqf4\ngMYloQmqZOB5okKGF0Wj1sNyMAHWW8fyYmkxhAoXEP+WmkNUB+y1RXH3kX9I\nZ6Sr\r\n=TDzu\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./index.js","types":"./index.d.ts","readme":"# @aws-sdk/client-glacier-browser\n\n[![NPM version](https://img.shields.io/npm/v/@aws-sdk/client-glacier-browser/preview.svg)](https://www.npmjs.com/package/@aws-sdk/client-glacier-browser)\n[![NPM downloads](https://img.shields.io/npm/dm/@aws-sdk/client-glacier-browser.svg)](https://www.npmjs.com/package/@aws-sdk/client-glacier-browser)\n\n## Description\n\n<p> Amazon S3 Glacier (Glacier) is a storage solution for \"cold data.\"</p> <p>Glacier is an extremely low-cost storage service that provides secure, durable, and easy-to-use storage for data backup and archival. With Glacier, customers can store their data cost effectively for months, years, or decades. Glacier also enables customers to offload the administrative burdens of operating and scaling storage to AWS, so they don't have to worry about capacity planning, hardware provisioning, data replication, hardware failure and recovery, or time-consuming hardware migrations.</p> <p>Glacier is a great storage choice when low storage cost is paramount and your data is rarely retrieved. If your application requires fast or frequent access to your data, consider using Amazon S3. For more information, see <a href=\"http://aws.amazon.com/s3/\">Amazon Simple Storage Service (Amazon S3)</a>.</p> <p>You can store any kind of data in any format. There is no maximum limit on the total amount of data you can store in Glacier.</p> <p>If you are a first-time user of Glacier, we recommend that you begin by reading the following sections in the <i>Amazon S3 Glacier Developer Guide</i>:</p> <ul> <li> <p> <a href=\"https://docs.aws.amazon.com/amazonglacier/latest/dev/introduction.html\">What is Amazon S3 Glacier</a> - This section of the Developer Guide describes the underlying data model, the operations it supports, and the AWS SDKs that you can use to interact with the service.</p> </li> <li> <p> <a href=\"https://docs.aws.amazon.com/amazonglacier/latest/dev/amazon-glacier-getting-started.html\">Getting Started with Amazon S3 Glacier</a> - The Getting Started section walks you through the process of creating a vault, uploading archives, creating jobs to download archives, retrieving the job output, and deleting archives.</p> </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-glacier-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(`GlacierClient`) and the commands you need, for example `UploadArchiveCommand`:\n\n```javascript\n//JavaScript\nconst {\n  GlacierClient,\n  UploadArchiveCommand\n} = require(\"@aws-sdk/client-glacier-browser\");\n```\n\n```javascript\n//TypeScript\nimport {\n  GlacierClient,\n  UploadArchiveCommand\n} from \"@aws-sdk/client-glacier-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 glacier = new GlacierClient({region: 'region'});\n//clients can be shared by different commands\nconst params = {\n  vaultName: /**a string value*/,\n  accountId: /**a string value*/,\n  body: /**a blob value*/\n  /**You can supply readable stream to streaming input. e.g. (await fetch(input)).body */,\n};\nconst uploadArchiveCommand = new UploadArchiveCommand(params);\nglacier.send(uploadArchiveCommand).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 glacier.send(uploadArchiveCommand);\n  // do something\n} catch (error) {\n  // error handling\n}\n```\n\n```javascript\n// callback\nglacier.send(uploadArchiveCommand, (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-glacier-browser\";\nconst glacier = new AWS.Glacier({ region: \"region\" });\nglacier.uploadArchive(params, (err, data) => {\n  //do something\n});\n```\n\nFor operations containing stream response like `GetJobOutput()`, you can get response stream by accessing to streaming member. e.g. data.body.getReader().read().then(/_ do something and continue reading _/).(`data` is the resolved response object)\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 glacier.send(uploadArchiveCommand);\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-glacier-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-glacier-browser has been renamed to @aws-sdk/client-glacier. Please install the renamed package.","_npmVersion":"6.9.0","description":"Browser SDK for Amazon Glacier","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/protocol-rest":"^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/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/middleware-sdk-glacier":"^0.1.0-preview.8","@aws-sdk/json-error-unmarshaller":"^0.1.0-preview.7","@aws-sdk/util-user-agent-browser":"^0.1.0-preview.7","@aws-sdk/middleware-input-default":"^0.1.0-preview.6","@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","@aws-sdk/add-glacier-checksum-headers-browser":"^0.1.0-preview.8"},"_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-glacier-browser_0.1.0-preview.4_1572393778211_0.9463314780616285","host":"s3://npm-registry-packages"}},"0.1.0-preview.5":{"name":"@aws-sdk/client-glacier-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-glacier-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":"2b2ffb74d4bdac61a66e11779cdf1b61dca71c90","tarball":"https://registry.npmjs.org/@aws-sdk/client-glacier-browser/-/client-glacier-browser-0.1.0-preview.5.tgz","fileCount":942,"integrity":"sha512-FQ2jbCgv7hiUPPle12IpQotFTRaDZ+XJUxBcp5HsL7YQftScr0xgUS07yS1L1Gcz7InoDoxopVtjliTwYSu0pw==","signatures":[{"sig":"MEYCIQC9g34moPITwOs0QsZIH6Esm6h5b19SVnfkCAJL4t5jqgIhANgjqociijkgfi6b7qgMKlByF3bACIc2gkzLgssw4OCP","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":636667,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJduebBCRA9TVsSAnZWagAAQnEP/3dKkMF7ZnErDguzos4w\nn5d1IAFGRj4vQJrzHTEJLdyP1kqDEgZXVxPBpBMQuIK0lxjxCCTFr3RpUuKe\nOV8H0YXZ8n9DJ4D4I0x4lUgFimM4LV/5wh+Y3xiQ4d5ULNzI4TeiT9fIbb1/\nfLe9XsmaIcT+IPe/rsaixeAUuTgF3muorqzP96tHuWDNkl6AdacgRER+DlEw\nI+WCgoBxuZZNu/hA39aOAGRDVUhfJF/bTLCvfhrw4sniqZkSnzH0awvc3WbA\nhx6LREjSCPgRgCDKerNYR8raeQxzuJrspv9vot+Cta62GXMJe3ovHCXnxRZR\nRM3j/q/iLmqIdof2Nag5r9ca8PU4PiveDI4O912L/sZw/F1v0PfZeZBgjUgn\nsib8LkeThv7v22StF3m8b/ZrKKYKU7EvtKIcSPjTrvVeCzbYhy8Om8psZC4+\nbnmH76iw5LOWH+WaUxDhDTgEeE+3Rc5ckJlS0GYcrotVD2QQbHgOYC/6KKoZ\nrTw23Np6SyuoaIlvA8Whu1DZIPkyhZPXP4384K0kVaJKVRwaa5797P8GNvvn\nY94zfi6XkY8m5EWDWxIniko/02W3T5G/zq5ecenLw+x+cV6mDKs1fQTC9ThW\nNMw84mZQkr52vbv+EhMfG0N0b9CyATlMqobIpQm7x1ojedw8TM7C7VcLMH+q\nfFUR\r\n=YSxc\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./index.js","types":"./index.d.ts","readme":"# @aws-sdk/client-glacier-browser\n\n[![NPM version](https://img.shields.io/npm/v/@aws-sdk/client-glacier-browser/preview.svg)](https://www.npmjs.com/package/@aws-sdk/client-glacier-browser)\n[![NPM downloads](https://img.shields.io/npm/dm/@aws-sdk/client-glacier-browser.svg)](https://www.npmjs.com/package/@aws-sdk/client-glacier-browser)\n\n## Description\n\n<p> Amazon S3 Glacier (Glacier) is a storage solution for \"cold data.\"</p> <p>Glacier is an extremely low-cost storage service that provides secure, durable, and easy-to-use storage for data backup and archival. With Glacier, customers can store their data cost effectively for months, years, or decades. Glacier also enables customers to offload the administrative burdens of operating and scaling storage to AWS, so they don't have to worry about capacity planning, hardware provisioning, data replication, hardware failure and recovery, or time-consuming hardware migrations.</p> <p>Glacier is a great storage choice when low storage cost is paramount and your data is rarely retrieved. If your application requires fast or frequent access to your data, consider using Amazon S3. For more information, see <a href=\"http://aws.amazon.com/s3/\">Amazon Simple Storage Service (Amazon S3)</a>.</p> <p>You can store any kind of data in any format. There is no maximum limit on the total amount of data you can store in Glacier.</p> <p>If you are a first-time user of Glacier, we recommend that you begin by reading the following sections in the <i>Amazon S3 Glacier Developer Guide</i>:</p> <ul> <li> <p> <a href=\"https://docs.aws.amazon.com/amazonglacier/latest/dev/introduction.html\">What is Amazon S3 Glacier</a> - This section of the Developer Guide describes the underlying data model, the operations it supports, and the AWS SDKs that you can use to interact with the service.</p> </li> <li> <p> <a href=\"https://docs.aws.amazon.com/amazonglacier/latest/dev/amazon-glacier-getting-started.html\">Getting Started with Amazon S3 Glacier</a> - The Getting Started section walks you through the process of creating a vault, uploading archives, creating jobs to download archives, retrieving the job output, and deleting archives.</p> </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-glacier-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(`GlacierClient`) and the commands you need, for example `UploadArchiveCommand`:\n\n```javascript\n//JavaScript\nconst {\n  GlacierClient,\n  UploadArchiveCommand\n} = require(\"@aws-sdk/client-glacier-browser\");\n```\n\n```javascript\n//TypeScript\nimport {\n  GlacierClient,\n  UploadArchiveCommand\n} from \"@aws-sdk/client-glacier-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 glacier = new GlacierClient({region: 'region'});\n//clients can be shared by different commands\nconst params = {\n  vaultName: /**a string value*/,\n  accountId: /**a string value*/,\n  body: /**a blob value*/\n  /**You can supply readable stream to streaming input. e.g. (await fetch(input)).body */,\n};\nconst uploadArchiveCommand = new UploadArchiveCommand(params);\nglacier.send(uploadArchiveCommand).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 glacier.send(uploadArchiveCommand);\n  // do something\n} catch (error) {\n  // error handling\n}\n```\n\n```javascript\n// callback\nglacier.send(uploadArchiveCommand, (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-glacier-browser\";\nconst glacier = new AWS.Glacier({ region: \"region\" });\nglacier.uploadArchive(params, (err, data) => {\n  //do something\n});\n```\n\nFor operations containing stream response like `GetJobOutput()`, you can get response stream by accessing to streaming member. e.g. data.body.getReader().read().then(/_ do something and continue reading _/).(`data` is the resolved response object)\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 glacier.send(uploadArchiveCommand);\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-glacier-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-glacier-browser has been renamed to @aws-sdk/client-glacier. Please install the renamed package.","_npmVersion":"6.9.0","description":"Browser SDK for Amazon Glacier","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/protocol-rest":"^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/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/middleware-sdk-glacier":"^0.1.0-preview.9","@aws-sdk/json-error-unmarshaller":"^0.1.0-preview.8","@aws-sdk/util-user-agent-browser":"^0.1.0-preview.8","@aws-sdk/middleware-input-default":"^0.1.0-preview.7","@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","@aws-sdk/add-glacier-checksum-headers-browser":"^0.1.0-preview.9"},"_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-glacier-browser_0.1.0-preview.5_1572464320508_0.9444649171706494","host":"s3://npm-registry-packages"}},"0.1.0-preview.6":{"name":"@aws-sdk/client-glacier-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-glacier-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":"ee67d6f13eca0c3d6e883c992d446aaf2f7c3da9","tarball":"https://registry.npmjs.org/@aws-sdk/client-glacier-browser/-/client-glacier-browser-0.1.0-preview.6.tgz","fileCount":942,"integrity":"sha512-8FpdHJ6+gQoftLcHHCa3g8MUTG21K/5xnu2gU5Rmnf0yQsL93AMSJS2byvTJ+3S35shTlkxczsp/VudAssSk4g==","signatures":[{"sig":"MEUCIEfGmgMNhv1TSAe4ANrm8zULKTFN7HaXC5iFRPD1AIitAiEA6ye9VYVtIaav28wpZE8xV0bYA9sucY6fPmh8GVPUwq0=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":636941,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd1FVoCRA9TVsSAnZWagAAstkP/in8lopGYfIpVS9Lwcnm\nlE0U2vRTE8f8atXFZyH5qRDtUE/n8zi5EUwTbCRvBBibJbfXq5kp7m1Oqfj2\nfz/Ebw6VdMP7s8t+Ayzcq31y4ezUrtZfAKMpaN8H6hFSQF4DIERAGsHPk/R+\nDR09rMabjGZimbHVOrcm5ag2SxHrW9wie4slWksyi4hTFdgojghnbIyeTnJr\nx7Az08ndNw8SBtXgV8fdNIVFL07UNo45idCr+zMN9a26KH2WBnlfUDYNSyrQ\n4wc8MM+AMbB9AKFPf9PqDR54vFMpsqNv17RBRKrd0k2fp0ynZVaoIT6m6eHs\nlykbZzjjcnqsAXx0IwVq7PPJX3p/9xuArl5MA3EqnRdviES5Vrc7b8m1x7H+\nqrRaOpbSCEdsqUI711hh+asH+OrMOyktR2v0haLX6ZAeUnUJuglcG8QtX8zz\nzwYEtgZE50Bn2nH1A3lMGuASXWf88C2EgumfnslFRsYTdqEBsqEZz7e+cj0Q\nhcZUlYY6OPtjIUjrErkm+OrG2j33ILeNm+GB+uSu3PqouxrVfNwZgyeJotif\nIJc6R1ONOK6R+JyMa3yLv1rYXgncdS/gRTrUDoukY5EMmG7BBMnd1l5+aJ5L\nI/eYCETggC6H2qNtGZ8erZEkB4NywguRE8Tnz4nL5BGXGD0uMzs0mNylFxSm\nLVia\r\n=w2iF\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./index.js","types":"./index.d.ts","readme":"# @aws-sdk/client-glacier-browser\n\n[![NPM version](https://img.shields.io/npm/v/@aws-sdk/client-glacier-browser/preview.svg)](https://www.npmjs.com/package/@aws-sdk/client-glacier-browser)\n[![NPM downloads](https://img.shields.io/npm/dm/@aws-sdk/client-glacier-browser.svg)](https://www.npmjs.com/package/@aws-sdk/client-glacier-browser)\n\n## Description\n\n<p> Amazon S3 Glacier (Glacier) is a storage solution for \"cold data.\"</p> <p>Glacier is an extremely low-cost storage service that provides secure, durable, and easy-to-use storage for data backup and archival. With Glacier, customers can store their data cost effectively for months, years, or decades. Glacier also enables customers to offload the administrative burdens of operating and scaling storage to AWS, so they don't have to worry about capacity planning, hardware provisioning, data replication, hardware failure and recovery, or time-consuming hardware migrations.</p> <p>Glacier is a great storage choice when low storage cost is paramount and your data is rarely retrieved. If your application requires fast or frequent access to your data, consider using Amazon S3. For more information, see <a href=\"http://aws.amazon.com/s3/\">Amazon Simple Storage Service (Amazon S3)</a>.</p> <p>You can store any kind of data in any format. There is no maximum limit on the total amount of data you can store in Glacier.</p> <p>If you are a first-time user of Glacier, we recommend that you begin by reading the following sections in the <i>Amazon S3 Glacier Developer Guide</i>:</p> <ul> <li> <p> <a href=\"https://docs.aws.amazon.com/amazonglacier/latest/dev/introduction.html\">What is Amazon S3 Glacier</a> - This section of the Developer Guide describes the underlying data model, the operations it supports, and the AWS SDKs that you can use to interact with the service.</p> </li> <li> <p> <a href=\"https://docs.aws.amazon.com/amazonglacier/latest/dev/amazon-glacier-getting-started.html\">Getting Started with Amazon S3 Glacier</a> - The Getting Started section walks you through the process of creating a vault, uploading archives, creating jobs to download archives, retrieving the job output, and deleting archives.</p> </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-glacier-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(`GlacierClient`) and the commands you need, for example `UploadArchiveCommand`:\n\n```javascript\n//JavaScript\nconst {\n  GlacierClient,\n  UploadArchiveCommand\n} = require(\"@aws-sdk/client-glacier-browser\");\n```\n\n```javascript\n//TypeScript\nimport {\n  GlacierClient,\n  UploadArchiveCommand\n} from \"@aws-sdk/client-glacier-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 glacier = new GlacierClient({region: 'region'});\n//clients can be shared by different commands\nconst params = {\n  vaultName: /**a string value*/,\n  accountId: /**a string value*/,\n  body: /**a blob value*/\n  /**You can supply readable stream to streaming input. e.g. (await fetch(input)).body */,\n};\nconst uploadArchiveCommand = new UploadArchiveCommand(params);\nglacier.send(uploadArchiveCommand).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 glacier.send(uploadArchiveCommand);\n  // do something\n} catch (error) {\n  // error handling\n}\n```\n\n```javascript\n// callback\nglacier.send(uploadArchiveCommand, (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-glacier-browser\";\nconst glacier = new AWS.Glacier({ region: \"region\" });\nglacier.uploadArchive(params, (err, data) => {\n  //do something\n});\n```\n\nFor operations containing stream response like `GetJobOutput()`, you can get response stream by accessing to streaming member. e.g. data.body.getReader().read().then(/_ do something and continue reading _/).(`data` is the resolved response object)\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 glacier.send(uploadArchiveCommand);\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-glacier-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-glacier-browser has been renamed to @aws-sdk/client-glacier. Please install the renamed package.","_npmVersion":"6.9.0","description":"Browser SDK for Amazon Glacier","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/protocol-rest":"^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/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/middleware-sdk-glacier":"^0.1.0-preview.10","@aws-sdk/json-error-unmarshaller":"^0.1.0-preview.8","@aws-sdk/util-user-agent-browser":"^0.1.0-preview.9","@aws-sdk/middleware-input-default":"^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","@aws-sdk/add-glacier-checksum-headers-browser":"^0.1.0-preview.10"},"_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-glacier-browser_0.1.0-preview.6_1574196583700_0.9695398526548571","host":"s3://npm-registry-packages"}}},"time":{"created":"2019-09-09T18:03:31.097Z","modified":"2025-03-27T18:38:50.997Z","0.1.0-preview.2":"2019-09-09T18:03:31.435Z","0.1.0-preview.3":"2019-09-19T16:14:24.631Z","0.1.0-preview.4":"2019-10-30T00:02:58.350Z","0.1.0-preview.5":"2019-10-30T19:38:40.734Z","0.1.0-preview.6":"2019-11-19T20:49:43.841Z"},"author":{"url":"https://aws.amazon.com/javascript/","name":"AWS SDK for JavaScript Team"},"license":"Apache-2.0","description":"Browser SDK for Amazon Glacier","maintainers":[{"email":"osa-3p@amazon.com","name":"amzn-oss"},{"email":"aws-sdk-js-automation@amazon.com","name":"aws-sdk-bot"}],"readme":"","readmeFilename":""}