{"_id":"@aws-sdk/client-kinesis-video-archived-media-node","_rev":"18-6fd6c9029651223ecb72323c8f050f82","name":"@aws-sdk/client-kinesis-video-archived-media-node","dist-tags":{"latest":"0.1.0-preview.2","preview":"0.1.0-preview.6"},"versions":{"0.1.0-preview.2":{"name":"@aws-sdk/client-kinesis-video-archived-media-node","version":"0.1.0-preview.2","author":{"url":"https://aws.amazon.com/javascript/","name":"AWS SDK for JavaScript Team"},"license":"Apache-2.0","_id":"@aws-sdk/client-kinesis-video-archived-media-node@0.1.0-preview.2","maintainers":[{"name":"trivikr-aws","email":"trivikr@amazon.com"},{"name":"aws-sdk-bot","email":"aws-sdk-js@amazon.com"},{"name":"zheallan","email":"zheallan@amazon.com"},{"name":"amzn-oss","email":"osa-3p@amazon.com"}],"dist":{"shasum":"60136b2b06935641e81d9e693c63243020dead90","tarball":"https://registry.npmjs.org/@aws-sdk/client-kinesis-video-archived-media-node/-/client-kinesis-video-archived-media-node-0.1.0-preview.2.tgz","fileCount":206,"integrity":"sha512-zvK6ZFADx64CaJnCl+D8EqgVpMFhPygGYaCBov083wEcgpXuTF4UlPtHb+motQtvs3vDewyyW+QOvaASPhYsJw==","signatures":[{"sig":"MEUCIQDNC8rOZ5GdE0hEZvgCl2/P0aUB3syP/c4hpSFxaflfXgIgJWKqOsUHqCDZQsTN91AOKb3fh9rikSS+79C2PgnDlKw=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":186642,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJddpGmCRA9TVsSAnZWagAA8nAP/2I4zmkY8shBlHlJDQyV\nKLSFDV8emhxc3EqYBEbtIq9sIjRPVNb2XyFu5Igo5eLzTfth/XjgIWPrLUBX\nnm8sYgyo397VVG2SRpokjvoktLO0zBm8J9G8QkoabrwmblDVQQEi/2c2tOF9\n9fOO3uMM+O3jj/Lse5mFJnV6gruxnT+9t/zC5jD5Fl6jbP9t06YJ8c/Duno8\nKmtTbgRmUqqak+qF9iq7PrxiTxdaRkxg8NZg7Ibxj9e+zQaVbaacrTGAfBrT\nYx93KFCJVcrH6+GozXy3YPiXk9oGDOyN5m/zJneuhpHS2LVrE+378uR5U29V\nMBJV+9klYoKPUCvc0ZD5BRzIhfB/ebqsJpMfQeMOBA/ga/Pb5/Boyub6mDDF\nqvGhwXZwZBf7qRaWgfXu/Fq3HO4K4/tD7tue+Pnim0Mub2RQkApKT72JuNwG\nE36kXmbI9/d+93SV9+dprdZWNLJ4tKKDEjIErPestlGzQ3IfSxdFPq1Y9IL0\nwxGZh2RmwvzViiB9U5ox69qvepr6I142mfFS5xBrqa97y5gI0sD5//OOEp+r\n13IVlONLLv/+720plBVFGfchNVwNh+6uu9EdlqQ2Tcjt+SME7cmgnC/CzwvO\nYaWWsm0A68rD1ht69bcWPl7ztJRQ6kEt45vTuG8hBV6bTgO+NEBkmdNuuViu\nQx/y\r\n=BjTG\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./index.js","types":"./index.d.ts","scripts":{"test":"exit 0","clean":"npm run remove-definitions && npm run remove-maps && npm run remove-js","pretest":"tsc","remove-js":"rimraf *.js && rimraf ./commands/*.js && rimraf ./model/*.js && rimraf ./types/*.js","smoke-test":"npm run pretest && node ./test/smoke/index.spec.js","remove-maps":"rimraf *.js.map && rimraf ./commands/*.js.map && rimraf ./model/*.js.map && rimraf ./types/*.js.map","prepublishOnly":"tsc","remove-definitions":"rimraf *.d.ts && rimraf ./commands/*.d.ts && rimraf ./model/*.d.ts rimraf ./types/*.d.ts","build-documentation":"npm run clean && typedoc ./","remove-documentation":"rimraf ./docs"},"_npmUser":{"name":"aws-sdk-bot","email":"aws-sdk-js@amazon.com"},"deprecated":"The package @aws-sdk/client-kinesis-video-archived-media-node has been renamed to @aws-sdk/client-kinesis-video-archived-media. Please install the renamed package.","_npmVersion":"6.9.0","description":"Node SDK for Amazon Kinesis Video Streams Archived Media","directories":{},"_nodeVersion":"10.1.0","dependencies":{"tslib":"^1.8.0","@aws-sdk/types":"^0.1.0-preview.5","@aws-sdk/hash-node":"^0.1.0-preview.5","@aws-sdk/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/util-utf8-node":"^0.1.0-preview.3","@aws-sdk/config-resolver":"^0.1.0-preview.5","@aws-sdk/region-provider":"^0.1.0-preview.5","@aws-sdk/url-parser-node":"^0.1.0-preview.5","@aws-sdk/middleware-stack":"^0.1.0-preview.6","@aws-sdk/retry-middleware":"^0.1.0-preview.5","@aws-sdk/util-base64-node":"^0.1.0-preview.3","@aws-sdk/node-http-handler":"^0.1.0-preview.6","@aws-sdk/signing-middleware":"^0.1.0-preview.6","@aws-sdk/util-user-agent-node":"^0.1.0-preview.6","@aws-sdk/middleware-serializer":"^0.1.0-preview.5","@aws-sdk/stream-collector-node":"^0.1.0-preview.5","@aws-sdk/util-body-length-node":"^0.1.0-preview.4","@aws-sdk/json-error-unmarshaller":"^0.1.0-preview.6","@aws-sdk/credential-provider-node":"^0.1.0-preview.6","@aws-sdk/middleware-content-length":"^0.1.0-preview.5","@aws-sdk/middleware-header-default":"^0.1.0-preview.5"},"_hasShrinkwrap":false,"devDependencies":{"rimraf":"^2.6.2","typedoc":"^0.14.2","typescript":"~3.4.0","@types/node":"^10.0.0","@aws-sdk/client-documentation-generator":"^0.1.0-preview.3"},"_npmOperationalInternal":{"tmp":"tmp/client-kinesis-video-archived-media-node_0.1.0-preview.2_1568051622015_0.9858707906169049","host":"s3://npm-registry-packages"}},"0.1.0-preview.3":{"name":"@aws-sdk/client-kinesis-video-archived-media-node","version":"0.1.0-preview.3","author":{"url":"https://aws.amazon.com/javascript/","name":"AWS SDK for JavaScript Team"},"license":"Apache-2.0","_id":"@aws-sdk/client-kinesis-video-archived-media-node@0.1.0-preview.3","maintainers":[{"name":"amzn-oss","email":"osa-3p@amazon.com"},{"name":"aws-sdk-bot","email":"aws-sdk-js@amazon.com"},{"name":"trivikr-aws","email":"trivikr@amazon.com"},{"name":"zheallan","email":"zheallan@amazon.com"}],"dist":{"shasum":"c1ab607b6a2c3720ef1fdee6211b8152f2fa9507","tarball":"https://registry.npmjs.org/@aws-sdk/client-kinesis-video-archived-media-node/-/client-kinesis-video-archived-media-node-0.1.0-preview.3.tgz","fileCount":206,"integrity":"sha512-NfLgIHOBjWD6vA/ef+uAcGBB21x8xvr5EgimGjoihP1waGFJkLUz6EkkWn8rpFzmmfW29i6DZ6YGD/j+BFtxig==","signatures":[{"sig":"MEQCIDobHL7r7BGgALkUOqztBtJLbkMJkDdG4MSgXGd9TnL2AiBkkYsGpdwLr590UXZv52iWU/ChQuzO4KR3wtmOpwwFIg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":184937,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdg6fMCRA9TVsSAnZWagAAkMQP/0nnkGKb/5rjeatA+j/9\nU9N25wX0O/UXPkdCj7qTEDhpnNxvrmlKpZgdfnEw7mMTNC/WTK3ydySYonCw\nq9FNNl8FR4MP0jKVcizYk/EVJfnakYzvZph6PujxMAdrJkFhBPXMgEX0KRam\nMaeTJlY5BdMYeVIfkpdU+BThFEkIdvYeFcV/rdJfxkmW3TysZmdkkJUjXeD2\nhEYVc46rY8cblinaq33DuKrysv0n12ZkOpy4PmXahx/awVmBHGYcMjamXNMg\nGCR1ShqeI2H1uJ7IplTpFyNWEhw+hmf8etrrhvN+TkktohYr+JfdFS06NxVS\n+fzCO6MAVRJZU2jlnPhxqs6CmwQwkLQsRhwHSfeASIcI20CqRmZ7OpvBoG89\n9OzqeeeinhCGKWhX1qJMpI04OfTZhDoAX2Lay8upwI50tMX6Q85V7DisibVO\nE3qUTe3mT6QqBs0jbqeesKmUlofDlgYwsFV7wtpLcik8QkCsRPDwzx/AgeI4\nU4wiNBAcKHPsgxgZmUFGBN3AvUEjP/nVRJnveouqYhLE8X+YtI9eFjcrXvBO\nvvWBh9btzqAWJNBPDud4troh2p/Y3N0lp+lhR0UZouELa9Mp/cGelf6dvrnl\nAesFxMfAoohKz/oBrs/ZkN757H0Q2wyR8nU0r5eRtq4LeRlfpS7BY7EnQMzz\nCMlx\r\n=lqB1\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./index.js","types":"./index.d.ts","readme":"# @aws-sdk/client-kinesis-video-archived-media-node\n\n[![NPM version](https://img.shields.io/npm/v/@aws-sdk/client-kinesis-video-archived-media-node/preview.svg)](https://www.npmjs.com/package/@aws-sdk/client-kinesis-video-archived-media-node)\n[![NPM downloads](https://img.shields.io/npm/dm/@aws-sdk/client-kinesis-video-archived-media-node.svg)](https://www.npmjs.com/package/@aws-sdk/client-kinesis-video-archived-media-node)\n\n## Description\n\n<p/>\n\n## Installing\n\nTo install the this package using NPM, simply type the following into a terminal window:\n\n```\nnpm install @aws-sdk/client-kinesis-video-archived-media-node\n```\n\n## Getting Started\n\n### Import\n\nThe AWS SDK is modulized by clients and commands in CommonJS modules. To send a request, you only need to import the client(`KinesisVideoArchivedMediaClient`) and the commands you need, for example `GetDASHStreamingSessionURLCommand`:\n\n```javascript\n//JavaScript\nconst {\n  KinesisVideoArchivedMediaClient\n} = require(\"@aws-sdk/client-kinesis-video-archived-media-node/KinesisVideoArchivedMediaClient\");\nconst {\n  GetDASHStreamingSessionURLCommand\n} = require(\"@aws-sdk/client-kinesis-video-archived-media-node/commands/GetDASHStreamingSessionURLCommand\");\n```\n\n```javascript\n//TypeScript\nimport { KinesisVideoArchivedMediaClient } from \"@aws-sdk/client-kinesis-video-archived-media-node/KinesisVideoArchivedMediaClient\";\nimport { GetDASHStreamingSessionURLCommand } from \"@aws-sdk/client-kinesis-video-archived-media-node/commands/GetDASHStreamingSessionURLCommand\";\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 kinesisVideoArchivedMedia = new KinesisVideoArchivedMediaClient({\n  region: \"region\"\n});\n//clients can be shared by different commands\nconst params = {};\nconst getDASHStreamingSessionURLCommand = new GetDASHStreamingSessionURLCommand(\n  params\n);\nkinesisVideoArchivedMedia\n  .send(getDASHStreamingSessionURLCommand)\n  .then(data => {\n    // do something\n  })\n  .catch(error => {\n    // error handling\n  });\n```\n\nIn addition to using promises, there are 2 other ways to send a request:\n\n```javascript\n// async/await\ntry {\n  const data = await kinesisVideoArchivedMedia.send(\n    getDASHStreamingSessionURLCommand\n  );\n  // do something\n} catch (error) {\n  // error handling\n}\n```\n\n```javascript\n// callback\nkinesisVideoArchivedMedia.send(\n  getDASHStreamingSessionURLCommand,\n  (err, data) => {\n    //do something\n  }\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-kinesis-video-archived-media-node/KinesisVideoArchivedMedia\";\nconst kinesisVideoArchivedMedia = new AWS.KinesisVideoArchivedMedia({\n  region: \"region\"\n});\nkinesisVideoArchivedMedia.getDASHStreamingSessionURL(params, (err, data) => {\n  //do something\n});\n```\n\nFor operations containing stream response like `GetMediaForFragmentList()`, you can get response stream by accessing to streaming member. e.g. data.Payload.pipe(/_ some writable stream _/).(`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 kinesisVideoArchivedMedia.send(\n    getDASHStreamingSessionURLCommand\n  );\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-kinesis-video-archived-media-node' package is updated. To contribute to SDK you can checkout our [code generator package][].\n\n## License\n\nThis SDK is distributed under the\n[Apache License, Version 2.0](http://www.apache.org/licenses/LICENSE-2.0),\nsee LICENSE for more information.\n\n[code generator package]: https://github.com/aws/aws-sdk-js-v3/tree/master/packages/service-types-generator\n[api reference]: https://docs.aws.amazon.com/AWSJavaScriptSDK/latest/\n","scripts":{"test":"exit 0","clean":"npm run remove-definitions && npm run remove-maps && npm run remove-js","pretest":"tsc","remove-js":"rimraf *.js && rimraf ./commands/*.js && rimraf ./model/*.js && rimraf ./types/*.js","smoke-test":"npm run pretest && node ./test/smoke/index.spec.js","remove-maps":"rimraf *.js.map && rimraf ./commands/*.js.map && rimraf ./model/*.js.map && rimraf ./types/*.js.map","prepublishOnly":"tsc","remove-definitions":"rimraf *.d.ts && rimraf ./commands/*.d.ts && rimraf ./model/*.d.ts rimraf ./types/*.d.ts","build-documentation":"npm run clean && typedoc ./","remove-documentation":"rimraf ./docs"},"_npmUser":{"name":"aws-sdk-bot","email":"aws-sdk-js@amazon.com"},"deprecated":"The package @aws-sdk/client-kinesis-video-archived-media-node has been renamed to @aws-sdk/client-kinesis-video-archived-media. Please install the renamed package.","_npmVersion":"6.9.0","description":"Node SDK for Amazon Kinesis Video Streams Archived Media","directories":{},"_nodeVersion":"10.1.0","dependencies":{"tslib":"^1.8.0","@aws-sdk/types":"^0.1.0-preview.5","@aws-sdk/hash-node":"^0.1.0-preview.6","@aws-sdk/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/util-utf8-node":"^0.1.0-preview.4","@aws-sdk/config-resolver":"^0.1.0-preview.5","@aws-sdk/region-provider":"^0.1.0-preview.5","@aws-sdk/url-parser-node":"^0.1.0-preview.6","@aws-sdk/middleware-stack":"^0.1.0-preview.6","@aws-sdk/retry-middleware":"^0.1.0-preview.5","@aws-sdk/util-base64-node":"^0.1.0-preview.4","@aws-sdk/node-http-handler":"^0.1.0-preview.6","@aws-sdk/signing-middleware":"^0.1.0-preview.7","@aws-sdk/util-user-agent-node":"^0.1.0-preview.7","@aws-sdk/middleware-serializer":"^0.1.0-preview.5","@aws-sdk/stream-collector-node":"^0.1.0-preview.6","@aws-sdk/util-body-length-node":"^0.1.0-preview.5","@aws-sdk/json-error-unmarshaller":"^0.1.0-preview.6","@aws-sdk/credential-provider-node":"^0.1.0-preview.7","@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","@types/node":"^10.0.0","@aws-sdk/client-documentation-generator":"^0.1.0-preview.3"},"_npmOperationalInternal":{"tmp":"tmp/client-kinesis-video-archived-media-node_0.1.0-preview.3_1568909259962_0.15745601727644942","host":"s3://npm-registry-packages"}},"0.1.0-preview.4":{"name":"@aws-sdk/client-kinesis-video-archived-media-node","version":"0.1.0-preview.4","author":{"url":"https://aws.amazon.com/javascript/","name":"AWS SDK for JavaScript Team"},"license":"Apache-2.0","_id":"@aws-sdk/client-kinesis-video-archived-media-node@0.1.0-preview.4","maintainers":[{"name":"amzn-oss","email":"osa-3p@amazon.com"},{"name":"aws-sdk-bot","email":"aws-sdk-js@amazon.com"},{"name":"trivikr-aws","email":"trivikr@amazon.com"},{"name":"zheallan","email":"zheallan@amazon.com"}],"dist":{"shasum":"0f89cf3b124a039a0d3f965cca91b11f5766d790","tarball":"https://registry.npmjs.org/@aws-sdk/client-kinesis-video-archived-media-node/-/client-kinesis-video-archived-media-node-0.1.0-preview.4.tgz","fileCount":206,"integrity":"sha512-Y9eHAfyLVQV7AFKbNB3kTcz9k7oKeHyrcAXPwSPGmDeF7fVX9JsDxd5OSVQqEGE+KFCgbtArNE0AW7vkb9QdzQ==","signatures":[{"sig":"MEYCIQDhw6Tl7RGvA/GPTGXchi+9RDGaNxcBbRwoBSioPQM06QIhAIuw0pYFD/Pp5ywZmTWXloFJg40JsF8IQ3ZHj5W5W066","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":184859,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJduNE4CRA9TVsSAnZWagAAPCkP+gOAHNDfFVgYaSYTN5NR\nqJqwUavei9N2K3JDbHlKBuMmAKpXYCLjP3BsGIVl2BicS2p/+uj8UozVody9\nGf7Ayni7sk5xjLlfwFr0m8cc8Z0daTtKrWHOSP6V+VeC1doYwIXCF6S/lnX9\nRErxfNamVPXifW1JR7X3O9GgruQN+UAqmW+itTWQ1euQnkZXGpRMr3GmqoS2\nHTw4zvo+6yMfiSOvd0oUFf1AAnx5HPnCiEP/ys5XIGvG1RKK9gCEREF7wonx\nV42KgGV/RnhUZstSvKxLDkGme3dsa4U63UTXV/Bub6N+dUQdHEszioX976Nf\nLqWSuvkr1RXtqlY+c6F5slMH3DQeyfG7tek/rWjr6FgVwtDEugTcgEhG5ZsL\nCXGY8eP3V4+Lp7F4C47ffpw/kG6G/6rUxnINqY/XN0aWLvGc+FvvMY5ZCJR+\n5Gf19HBnirBvyqe3vAwQ8kt2AfR44siWcnKkSuL5CGPuVqCV1y6tTd8ysX2d\ni9FCEqgde8MFjmdYEHBLyRcKFQayoxBdoa9QHjCjmatbwAhJpKGdSn/73Zjp\n/YvJybdUS3Ngqw+Anv0GqPIXVh0YFT/OtugHYPAeaXzIpsenGQd39QuWgA5H\n2uDS/K6ky9uDHhZk6VGVrTjC5qevkiRkNllB2K1cXuHiauyaY+Ssq+mQ+h7A\nt4pf\r\n=AN/B\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./index.js","types":"./index.d.ts","readme":"# @aws-sdk/client-kinesis-video-archived-media-node\n\n[![NPM version](https://img.shields.io/npm/v/@aws-sdk/client-kinesis-video-archived-media-node/preview.svg)](https://www.npmjs.com/package/@aws-sdk/client-kinesis-video-archived-media-node)\n[![NPM downloads](https://img.shields.io/npm/dm/@aws-sdk/client-kinesis-video-archived-media-node.svg)](https://www.npmjs.com/package/@aws-sdk/client-kinesis-video-archived-media-node)\n\n## Description\n\n<p/>\n\n## Installing\n\nTo install the this package using NPM, simply type the following into a terminal window:\n\n```\nnpm install @aws-sdk/client-kinesis-video-archived-media-node\n```\n\n## Getting Started\n\n### Import\n\nThe AWS SDK is modulized by clients and commands in CommonJS modules. To send a request, you only need to import the client(`KinesisVideoArchivedMediaClient`) and the commands you need, for example `GetDASHStreamingSessionURLCommand`:\n\n```javascript\n//JavaScript\nconst {\n  KinesisVideoArchivedMediaClient,\n  GetDASHStreamingSessionURLCommand\n} = require(\"@aws-sdk/client-kinesis-video-archived-media-node\");\n```\n\n```javascript\n//TypeScript\nimport {\n  KinesisVideoArchivedMediaClient,\n  GetDASHStreamingSessionURLCommand\n} from \"@aws-sdk/client-kinesis-video-archived-media-node\";\n```\n\n### Usage\n\nTo send a request, you:\n\n- Initiate client with configuration (e.g. credentials, region). For more information you can refer to the [API reference][].\n- Initiate command with input parameters.\n- Call `send` operation on client with command object as input.\n- If you are using a custom http handler, you may call `destroy()` to close open connections.\n\n```javascript\nconst kinesisVideoArchivedMedia = new KinesisVideoArchivedMediaClient({\n  region: \"region\"\n});\n//clients can be shared by different commands\nconst params = {};\nconst getDASHStreamingSessionURLCommand = new GetDASHStreamingSessionURLCommand(\n  params\n);\nkinesisVideoArchivedMedia\n  .send(getDASHStreamingSessionURLCommand)\n  .then(data => {\n    // do something\n  })\n  .catch(error => {\n    // error handling\n  });\n```\n\nIn addition to using promises, there are 2 other ways to send a request:\n\n```javascript\n// async/await\ntry {\n  const data = await kinesisVideoArchivedMedia.send(\n    getDASHStreamingSessionURLCommand\n  );\n  // do something\n} catch (error) {\n  // error handling\n}\n```\n\n```javascript\n// callback\nkinesisVideoArchivedMedia.send(\n  getDASHStreamingSessionURLCommand,\n  (err, data) => {\n    //do something\n  }\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-kinesis-video-archived-media-node\";\nconst kinesisVideoArchivedMedia = new AWS.KinesisVideoArchivedMedia({\n  region: \"region\"\n});\nkinesisVideoArchivedMedia.getDASHStreamingSessionURL(params, (err, data) => {\n  //do something\n});\n```\n\nFor operations containing stream response like `GetMediaForFragmentList()`, you can get response stream by accessing to streaming member. e.g. data.Payload.pipe(/_ some writable stream _/).(`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 kinesisVideoArchivedMedia.send(\n    getDASHStreamingSessionURLCommand\n  );\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-kinesis-video-archived-media-node' package is updated. To contribute to SDK you can checkout our [code generator package][].\n\n## License\n\nThis SDK is distributed under the\n[Apache License, Version 2.0](http://www.apache.org/licenses/LICENSE-2.0),\nsee LICENSE for more information.\n\n[code generator package]: https://github.com/aws/aws-sdk-js-v3/tree/master/packages/service-types-generator\n[api reference]: https://docs.aws.amazon.com/AWSJavaScriptSDK/latest/\n","scripts":{"test":"exit 0","clean":"npm run remove-definitions && npm run remove-maps && npm run remove-js","pretest":"tsc","remove-js":"rimraf *.js && rimraf ./commands/*.js && rimraf ./model/*.js && rimraf ./types/*.js","smoke-test":"npm run pretest && node ./test/smoke/index.spec.js","remove-maps":"rimraf *.js.map && rimraf ./commands/*.js.map && rimraf ./model/*.js.map && rimraf ./types/*.js.map","prepublishOnly":"tsc","remove-definitions":"rimraf *.d.ts && rimraf ./commands/*.d.ts && rimraf ./model/*.d.ts rimraf ./types/*.d.ts","build-documentation":"npm run clean && typedoc ./","remove-documentation":"rimraf ./docs"},"_npmUser":{"name":"aws-sdk-bot","email":"aws-sdk-js@amazon.com"},"deprecated":"The package @aws-sdk/client-kinesis-video-archived-media-node has been renamed to @aws-sdk/client-kinesis-video-archived-media. Please install the renamed package.","_npmVersion":"6.9.0","description":"Node SDK for Amazon Kinesis Video Streams Archived Media","directories":{},"_nodeVersion":"10.1.0","dependencies":{"tslib":"^1.8.0","@aws-sdk/types":"^0.1.0-preview.6","@aws-sdk/hash-node":"^0.1.0-preview.7","@aws-sdk/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/util-utf8-node":"^0.1.0-preview.4","@aws-sdk/config-resolver":"^0.1.0-preview.6","@aws-sdk/region-provider":"^0.1.0-preview.6","@aws-sdk/url-parser-node":"^0.1.0-preview.7","@aws-sdk/middleware-stack":"^0.1.0-preview.7","@aws-sdk/retry-middleware":"^0.1.0-preview.6","@aws-sdk/util-base64-node":"^0.1.0-preview.4","@aws-sdk/node-http-handler":"^0.1.0-preview.7","@aws-sdk/signing-middleware":"^0.1.0-preview.8","@aws-sdk/util-user-agent-node":"^0.1.0-preview.8","@aws-sdk/middleware-serializer":"^0.1.0-preview.6","@aws-sdk/stream-collector-node":"^0.1.0-preview.7","@aws-sdk/util-body-length-node":"^0.1.0-preview.5","@aws-sdk/json-error-unmarshaller":"^0.1.0-preview.7","@aws-sdk/credential-provider-node":"^0.1.0-preview.8","@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","@types/node":"^10.0.0","@aws-sdk/client-documentation-generator":"^0.1.0-preview.3"},"_npmOperationalInternal":{"tmp":"tmp/client-kinesis-video-archived-media-node_0.1.0-preview.4_1572393271859_0.8401128673850553","host":"s3://npm-registry-packages"}},"0.1.0-preview.5":{"name":"@aws-sdk/client-kinesis-video-archived-media-node","version":"0.1.0-preview.5","author":{"url":"https://aws.amazon.com/javascript/","name":"AWS SDK for JavaScript Team"},"license":"Apache-2.0","_id":"@aws-sdk/client-kinesis-video-archived-media-node@0.1.0-preview.5","maintainers":[{"name":"amzn-oss","email":"osa-3p@amazon.com"},{"name":"aws-sdk-bot","email":"aws-sdk-js@amazon.com"},{"name":"trivikr-aws","email":"trivikr@amazon.com"},{"name":"zheallan","email":"zheallan@amazon.com"}],"dist":{"shasum":"bf4a3eb43be986a00165062654bfbb2bac27d92e","tarball":"https://registry.npmjs.org/@aws-sdk/client-kinesis-video-archived-media-node/-/client-kinesis-video-archived-media-node-0.1.0-preview.5.tgz","fileCount":206,"integrity":"sha512-VvnzGiIjvqJH10EYVJIw9ilXCZcwv0C/juXA3+p6bIufNAuVDBG838XfF8my9GtTxYVxErrncip31xtDxKYKoA==","signatures":[{"sig":"MEUCIF0SUGzvJZVTw5rsE+nQpaid7TMIunr24w3yohBGL6f3AiEA3fQq9XwC61skKpMs1YkYTX9pIL3TZ0K6zddbyt47SwI=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":185103,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdueSbCRA9TVsSAnZWagAAJCEP/3/nmvlIgPbuJmsN3j96\n2FWBYg39r7CEPyXqAGEHfXGKuRrSYTRfQ8puuUNldvclznKQss42uv3w4558\nHs4VNefJyFLQKt29n8P7T5YNDqN4dG43gryyn/0q3RfYK4mGxHJVumKZSxx8\nPR9lLTfvFx203aD2B+M/h+hH+EVTxKA/DlsFMw1oOElay/s2WqYADJwRkmYd\nsnzzpIi65VIEm5fGxnJXA6NwcjVJ6poUwxL6LE4YHmgPIijCQUL1qgyBRWTn\nABh1kWXbVoIVDC8aFfBliHi08KWDJxwv+KZZsvSkLvVsojfc0fjKWBUVQ9Rf\nUwfE7GkDHYlyvAPI0uRyBHf4Oa78YNef+QCDBkiCfk+/IhS1/QBla7H18LFY\nK0lxy26hfWpNLSqTTjGI68OvcyCc/bzaR9HoImvc1OCeXwkz8US1K1cPuN1d\npbutI7bOzbyAXvDUIfbcj1r+u16gNIb0i2nzB7WBUkcZ4Cfhz4qrqu886Jec\nRKcMt20XnHJPkt7YJATIaU98LLzNse5dHkQk6dDRSA1WWtnwFRQ5CzMeNl8c\natnxZqpApaBhx/0sM84WrLFt0CNygGvPUD38SfQQB5hoUu/DgIna1Ezj3JFz\nac8n745PYixApm5Vwgfsuv6XSEdmCgRwFMBvHOXclBTx4nSO9GYEBZ04V5x9\nLKGL\r\n=Xhv/\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./index.js","types":"./index.d.ts","readme":"# @aws-sdk/client-kinesis-video-archived-media-node\n\n[![NPM version](https://img.shields.io/npm/v/@aws-sdk/client-kinesis-video-archived-media-node/preview.svg)](https://www.npmjs.com/package/@aws-sdk/client-kinesis-video-archived-media-node)\n[![NPM downloads](https://img.shields.io/npm/dm/@aws-sdk/client-kinesis-video-archived-media-node.svg)](https://www.npmjs.com/package/@aws-sdk/client-kinesis-video-archived-media-node)\n\n## Description\n\n<p/>\n\n## Installing\n\nTo install the this package using NPM, simply type the following into a terminal window:\n\n```\nnpm install @aws-sdk/client-kinesis-video-archived-media-node\n```\n\n## Getting Started\n\n### Import\n\nThe AWS SDK is modulized by clients and commands in CommonJS modules. To send a request, you only need to import the client(`KinesisVideoArchivedMediaClient`) and the commands you need, for example `GetDASHStreamingSessionURLCommand`:\n\n```javascript\n//JavaScript\nconst {\n  KinesisVideoArchivedMediaClient,\n  GetDASHStreamingSessionURLCommand\n} = require(\"@aws-sdk/client-kinesis-video-archived-media-node\");\n```\n\n```javascript\n//TypeScript\nimport {\n  KinesisVideoArchivedMediaClient,\n  GetDASHStreamingSessionURLCommand\n} from \"@aws-sdk/client-kinesis-video-archived-media-node\";\n```\n\n### Usage\n\nTo send a request, you:\n\n- Initiate client with configuration (e.g. credentials, region). For more information you can refer to the [API reference][].\n- Initiate command with input parameters.\n- Call `send` operation on client with command object as input.\n- If you are using a custom http handler, you may call `destroy()` to close open connections.\n\n```javascript\nconst kinesisVideoArchivedMedia = new KinesisVideoArchivedMediaClient({\n  region: \"region\"\n});\n//clients can be shared by different commands\nconst params = {};\nconst getDASHStreamingSessionURLCommand = new GetDASHStreamingSessionURLCommand(\n  params\n);\nkinesisVideoArchivedMedia\n  .send(getDASHStreamingSessionURLCommand)\n  .then(data => {\n    // do something\n  })\n  .catch(error => {\n    // error handling\n  });\n```\n\nIn addition to using promises, there are 2 other ways to send a request:\n\n```javascript\n// async/await\ntry {\n  const data = await kinesisVideoArchivedMedia.send(\n    getDASHStreamingSessionURLCommand\n  );\n  // do something\n} catch (error) {\n  // error handling\n}\n```\n\n```javascript\n// callback\nkinesisVideoArchivedMedia.send(\n  getDASHStreamingSessionURLCommand,\n  (err, data) => {\n    //do something\n  }\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-kinesis-video-archived-media-node\";\nconst kinesisVideoArchivedMedia = new AWS.KinesisVideoArchivedMedia({\n  region: \"region\"\n});\nkinesisVideoArchivedMedia.getDASHStreamingSessionURL(params, (err, data) => {\n  //do something\n});\n```\n\nFor operations containing stream response like `GetMediaForFragmentList()`, you can get response stream by accessing to streaming member. e.g. data.Payload.pipe(/_ some writable stream _/).(`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 kinesisVideoArchivedMedia.send(\n    getDASHStreamingSessionURLCommand\n  );\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-kinesis-video-archived-media-node' package is updated. To contribute to SDK you can checkout our [code generator package][].\n\n## License\n\nThis SDK is distributed under the\n[Apache License, Version 2.0](http://www.apache.org/licenses/LICENSE-2.0),\nsee LICENSE for more information.\n\n[code generator package]: https://github.com/aws/aws-sdk-js-v3/tree/master/packages/service-types-generator\n[api reference]: https://docs.aws.amazon.com/AWSJavaScriptSDK/latest/\n","scripts":{"test":"exit 0","clean":"npm run remove-definitions && npm run remove-maps && npm run remove-js","pretest":"tsc","remove-js":"rimraf *.js && rimraf ./commands/*.js && rimraf ./model/*.js && rimraf ./types/*.js","smoke-test":"npm run pretest && node ./test/smoke/index.spec.js","remove-maps":"rimraf *.js.map && rimraf ./commands/*.js.map && rimraf ./model/*.js.map && rimraf ./types/*.js.map","prepublishOnly":"tsc","remove-definitions":"rimraf *.d.ts && rimraf ./commands/*.d.ts && rimraf ./model/*.d.ts rimraf ./types/*.d.ts","build-documentation":"npm run clean && typedoc ./","remove-documentation":"rimraf ./docs"},"_npmUser":{"name":"aws-sdk-bot","email":"aws-sdk-js@amazon.com"},"deprecated":"The package @aws-sdk/client-kinesis-video-archived-media-node has been renamed to @aws-sdk/client-kinesis-video-archived-media. Please install the renamed package.","_npmVersion":"6.9.0","description":"Node SDK for Amazon Kinesis Video Streams Archived Media","directories":{},"_nodeVersion":"10.1.0","dependencies":{"tslib":"^1.8.0","@aws-sdk/types":"^0.1.0-preview.7","@aws-sdk/hash-node":"^0.1.0-preview.8","@aws-sdk/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/util-utf8-node":"^0.1.0-preview.4","@aws-sdk/config-resolver":"^0.1.0-preview.7","@aws-sdk/region-provider":"^0.1.0-preview.7","@aws-sdk/url-parser-node":"^0.1.0-preview.8","@aws-sdk/middleware-stack":"^0.1.0-preview.8","@aws-sdk/retry-middleware":"^0.1.0-preview.7","@aws-sdk/util-base64-node":"^0.1.0-preview.4","@aws-sdk/node-http-handler":"^0.1.0-preview.8","@aws-sdk/signing-middleware":"^0.1.0-preview.9","@aws-sdk/util-user-agent-node":"^0.1.0-preview.9","@aws-sdk/middleware-serializer":"^0.1.0-preview.7","@aws-sdk/stream-collector-node":"^0.1.0-preview.8","@aws-sdk/util-body-length-node":"^0.1.0-preview.5","@aws-sdk/json-error-unmarshaller":"^0.1.0-preview.8","@aws-sdk/credential-provider-node":"^0.1.0-preview.9","@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","@types/node":"^10.0.0","@aws-sdk/client-documentation-generator":"^0.1.0-preview.3"},"_npmOperationalInternal":{"tmp":"tmp/client-kinesis-video-archived-media-node_0.1.0-preview.5_1572463769839_0.798989359802442","host":"s3://npm-registry-packages"}},"0.1.0-preview.6":{"name":"@aws-sdk/client-kinesis-video-archived-media-node","version":"0.1.0-preview.6","author":{"url":"https://aws.amazon.com/javascript/","name":"AWS SDK for JavaScript Team"},"license":"Apache-2.0","_id":"@aws-sdk/client-kinesis-video-archived-media-node@0.1.0-preview.6","maintainers":[{"name":"amzn-oss","email":"osa-3p@amazon.com"},{"name":"aws-sdk-bot","email":"aws-sdk-js@amazon.com"},{"name":"trivikr-aws","email":"trivikr@amazon.com"},{"name":"zheallan","email":"zheallan@amazon.com"}],"dist":{"shasum":"66c993a2419acccc886a4c8da09d96436ed0d7c4","tarball":"https://registry.npmjs.org/@aws-sdk/client-kinesis-video-archived-media-node/-/client-kinesis-video-archived-media-node-0.1.0-preview.6.tgz","fileCount":206,"integrity":"sha512-GrDIGYUujf55ALScqkk8Zjwky9sapezgvkaYW4P8C1WkvWZzUGjteGf8f/E2R9oGOww7ZXFNa6PAEW9vRAVKMA==","signatures":[{"sig":"MEUCIF5pRkWTBctnsH+vxfKJsslO3mEL3gvgpWI8SPT/OiB1AiEApZjsvA7FK6aoRf5vsBg8Q3XvZ+fUdr54aj58rrFGDP4=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":185376,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd1FR6CRA9TVsSAnZWagAAYwAP+wbhyXX9a+dj5T8UgSNn\nwb2hWOxu9V74kfvJwu1tpqp1+h7VBovcswgYbBVYfmRdTuBB6XS7eCGiU4b5\nZfze1iLuFEnNg2oA0gySZiyRxXFizs/tBjDOQLtKXbMdHRa+tYTFmTS+LLmX\nXfu2oGARtnLCNI2933u2VrkdwNagV2v4yB4oAcBmmWoOSYGgyY1eQw2dxniH\nVT9TSqeb0oYhaznsb/kJSU2kyKXBLQ5TjwQpFTzdlFpNWLFb1Gd/VjbZYFV4\nk3x2z+7JqylzrxTHF2YMO/kMndIGPA/Msb4grnKvFODqwMvzyyJ7AvXnvzxt\nc8OlrACEvx8xGaG2xxIPIn6JZb9wyZ5KZrlL4Eh5MqUXyRbtKXIx/+BKwd09\nlwHAiyW1XmRfkx8IyUzFz3u1SkHdk5iqQcYbQgIEyHpEAP8AJPHl27kYaMHf\nfPAKCKnVDX+jjCwg/0kw+aHl7iqLJrdGQTODoYFvoRfgly25Mz6gfWxmSNpD\nTuvXc8vwU8EXQ3G6c+EB2EphbYBmaiyuTGW6yMEoV92hfXx05IwsXmi2mQUc\n9FgpHcaO/MOt+7bu5hMPWy0H/NhXKHvqWf/ipOQCmDPVwBEiazKWksxtpzop\nEDKRnZE5RoKMy3d6bt9TSE33btyqViIbArm97+G2oHdlMI99D/SvIYVtr1o+\nDAcf\r\n=+Hgv\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./index.js","types":"./index.d.ts","readme":"# @aws-sdk/client-kinesis-video-archived-media-node\n\n[![NPM version](https://img.shields.io/npm/v/@aws-sdk/client-kinesis-video-archived-media-node/preview.svg)](https://www.npmjs.com/package/@aws-sdk/client-kinesis-video-archived-media-node)\n[![NPM downloads](https://img.shields.io/npm/dm/@aws-sdk/client-kinesis-video-archived-media-node.svg)](https://www.npmjs.com/package/@aws-sdk/client-kinesis-video-archived-media-node)\n\n## Description\n\n<p/>\n\n## Installing\n\nTo install the this package using NPM, simply type the following into a terminal window:\n\n```\nnpm install @aws-sdk/client-kinesis-video-archived-media-node\n```\n\n## Getting Started\n\n### Import\n\nThe AWS SDK is modulized by clients and commands in CommonJS modules. To send a request, you only need to import the client(`KinesisVideoArchivedMediaClient`) and the commands you need, for example `GetDASHStreamingSessionURLCommand`:\n\n```javascript\n//JavaScript\nconst {\n  KinesisVideoArchivedMediaClient,\n  GetDASHStreamingSessionURLCommand\n} = require(\"@aws-sdk/client-kinesis-video-archived-media-node\");\n```\n\n```javascript\n//TypeScript\nimport {\n  KinesisVideoArchivedMediaClient,\n  GetDASHStreamingSessionURLCommand\n} from \"@aws-sdk/client-kinesis-video-archived-media-node\";\n```\n\n### Usage\n\nTo send a request, you:\n\n- Initiate client with configuration (e.g. credentials, region). For more information you can refer to the [API reference][].\n- Initiate command with input parameters.\n- Call `send` operation on client with command object as input.\n- If you are using a custom http handler, you may call `destroy()` to close open connections.\n\n```javascript\nconst kinesisVideoArchivedMedia = new KinesisVideoArchivedMediaClient({\n  region: \"region\"\n});\n//clients can be shared by different commands\nconst params = {};\nconst getDASHStreamingSessionURLCommand = new GetDASHStreamingSessionURLCommand(\n  params\n);\nkinesisVideoArchivedMedia\n  .send(getDASHStreamingSessionURLCommand)\n  .then(data => {\n    // do something\n  })\n  .catch(error => {\n    // error handling\n  });\n```\n\nIn addition to using promises, there are 2 other ways to send a request:\n\n```javascript\n// async/await\ntry {\n  const data = await kinesisVideoArchivedMedia.send(\n    getDASHStreamingSessionURLCommand\n  );\n  // do something\n} catch (error) {\n  // error handling\n}\n```\n\n```javascript\n// callback\nkinesisVideoArchivedMedia.send(\n  getDASHStreamingSessionURLCommand,\n  (err, data) => {\n    //do something\n  }\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-kinesis-video-archived-media-node\";\nconst kinesisVideoArchivedMedia = new AWS.KinesisVideoArchivedMedia({\n  region: \"region\"\n});\nkinesisVideoArchivedMedia.getDASHStreamingSessionURL(params, (err, data) => {\n  //do something\n});\n```\n\nFor operations containing stream response like `GetMediaForFragmentList()`, you can get response stream by accessing to streaming member. e.g. data.Payload.pipe(/_ some writable stream _/).(`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 kinesisVideoArchivedMedia.send(\n    getDASHStreamingSessionURLCommand\n  );\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-kinesis-video-archived-media-node' package is updated. To contribute to SDK you can checkout our [code generator package][].\n\n## License\n\nThis SDK is distributed under the\n[Apache License, Version 2.0](http://www.apache.org/licenses/LICENSE-2.0),\nsee LICENSE for more information.\n\n[code generator package]: https://github.com/aws/aws-sdk-js-v3/tree/master/packages/service-types-generator\n[api reference]: https://docs.aws.amazon.com/AWSJavaScriptSDK/latest/\n","scripts":{"test":"exit 0","clean":"npm run remove-definitions && npm run remove-maps && npm run remove-js","pretest":"tsc","remove-js":"rimraf *.js && rimraf ./commands/*.js && rimraf ./model/*.js && rimraf ./types/*.js","smoke-test":"npm run pretest && node ./test/smoke/index.spec.js","remove-maps":"rimraf *.js.map && rimraf ./commands/*.js.map && rimraf ./model/*.js.map && rimraf ./types/*.js.map","prepublishOnly":"tsc","remove-definitions":"rimraf *.d.ts && rimraf ./commands/*.d.ts && rimraf ./model/*.d.ts rimraf ./types/*.d.ts","build-documentation":"npm run clean && typedoc ./","remove-documentation":"rimraf ./docs"},"_npmUser":{"name":"aws-sdk-bot","email":"aws-sdk-js@amazon.com"},"deprecated":"The package @aws-sdk/client-kinesis-video-archived-media-node has been renamed to @aws-sdk/client-kinesis-video-archived-media. Please install the renamed package.","_npmVersion":"6.9.0","description":"Node SDK for Amazon Kinesis Video Streams Archived Media","directories":{},"_nodeVersion":"10.16.3","dependencies":{"tslib":"^1.8.0","@aws-sdk/types":"^0.1.0-preview.7","@aws-sdk/hash-node":"^0.1.0-preview.8","@aws-sdk/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/util-utf8-node":"^0.1.0-preview.4","@aws-sdk/config-resolver":"^0.1.0-preview.7","@aws-sdk/region-provider":"^0.1.0-preview.7","@aws-sdk/url-parser-node":"^0.1.0-preview.8","@aws-sdk/middleware-stack":"^0.1.0-preview.9","@aws-sdk/retry-middleware":"^0.1.0-preview.7","@aws-sdk/util-base64-node":"^0.1.0-preview.4","@aws-sdk/node-http-handler":"^0.1.0-preview.8","@aws-sdk/signing-middleware":"^0.1.0-preview.10","@aws-sdk/util-user-agent-node":"^0.1.0-preview.10","@aws-sdk/middleware-serializer":"^0.1.0-preview.7","@aws-sdk/stream-collector-node":"^0.1.0-preview.9","@aws-sdk/util-body-length-node":"^0.1.0-preview.5","@aws-sdk/json-error-unmarshaller":"^0.1.0-preview.8","@aws-sdk/credential-provider-node":"^0.1.0-preview.10","@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","@types/node":"^10.0.0","@aws-sdk/client-documentation-generator":"^0.1.0-preview.3"},"_npmOperationalInternal":{"tmp":"tmp/client-kinesis-video-archived-media-node_0.1.0-preview.6_1574196345815_0.5987374204089795","host":"s3://npm-registry-packages"}}},"time":{"created":"2019-09-09T17:53:41.824Z","modified":"2025-03-27T18:39:49.206Z","0.1.0-preview.2":"2019-09-09T17:53:42.177Z","0.1.0-preview.3":"2019-09-19T16:07:40.106Z","0.1.0-preview.4":"2019-10-29T23:54:32.009Z","0.1.0-preview.5":"2019-10-30T19:29:30.061Z","0.1.0-preview.6":"2019-11-19T20:45:45.912Z"},"author":{"url":"https://aws.amazon.com/javascript/","name":"AWS SDK for JavaScript Team"},"license":"Apache-2.0","description":"Node SDK for Amazon Kinesis Video Streams Archived Media","maintainers":[{"email":"osa-3p@amazon.com","name":"amzn-oss"},{"email":"aws-sdk-js-automation@amazon.com","name":"aws-sdk-bot"}],"readme":"","readmeFilename":""}