{"_id":"@aws-sdk/client-cost-and-usage-report-service-node","_rev":"19-b3410fd9419264c7af4e42839d61215f","name":"@aws-sdk/client-cost-and-usage-report-service-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-cost-and-usage-report-service-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-cost-and-usage-report-service-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":"b8457f002e6a619847906fde90eef270f312fd57","tarball":"https://registry.npmjs.org/@aws-sdk/client-cost-and-usage-report-service-node/-/client-cost-and-usage-report-service-node-0.1.0-preview.2.tgz","fileCount":131,"integrity":"sha512-Jsd9UK2cb2Pt/2zTWKkqBhWZrbmiOCpMcHQoMvbEGLPTJPFbA+uyuHUgnrXn/zuhbi/tNz0O0NH2g8JmZECabw==","signatures":[{"sig":"MEUCIQDM5o8vyBmsdjqiIXwd33hkhd5eMVW4fQAE/eFYhiaLnQIgO5hGj/MZBfDDo2E6p7UR6FOFDcHcpoR0aYOhEMXgfQ4=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":101311,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJddpCkCRA9TVsSAnZWagAA4EwQAImFP1TUi/L8JxaYjxH1\nWbkh/7o0QbL8kZycXoWZuEFa61BIXzAmbUn3RNmxpVXC41m1asSJ6NFkrfUc\n2UnAnLl4XwpmOhPEifJ3NXJijTTIdeOc4kwqbDYBtVV6ouXkdut2ZWgpTp48\ngaVNcgZEiITe1mGvSWzFY1RihPRPDXaYv17sY7rsWp89GvYwELmeAFoER8ku\nMuFhpX/Gq25cX27g8PshGx+b9w2+nnrh8HPCi175/q9uDkjTc7CY4Bf5mRFB\ntpWOgkMDMYdUy2o/DAZWI3iGKxiUaDH8yygQqLAH4DotKVb5myLbgI9c0Oxx\ntWTxEmF2bwUkE2XxeSP6JVy5oZ/wPR3KRAUDyo4+NQ5hYbeBi6syZkXQk5GI\nlRQxNcA5mf6mS0YCnoWkKJ90c8/zkceQHjE1vvpB/Cn2D+60a8bhZMit6Pc1\nhY5VB4CtisxTUTafod6gCzpbkStLVj6xeL2yHdas+KC7vVsBJQX8PM+taUo6\ntfTJ2LTUlD/hAKG9QzSJfplB1oKtx9B+prXTSyoLH5jYSC6kuIVWxIc6dAC7\nWcIU0u6HEws3qpsHLSmjljh4xSehCo8cjzqG6S5yqP23XxGSJSD/cd34sKLv\nl2yYPFlhLcMyD8tNNDiaH4NfEaeod5ubGfAlewnmPuZ91RqlqYHjN7yI0Nde\nyIhs\r\n=T/zM\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-cost-and-usage-report-service-node has been renamed to @aws-sdk/client-cost-and-usage-report-service. Please install the renamed package.","_npmVersion":"6.9.0","description":"Node SDK for AWS Cost and Usage Report Service","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/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/protocol-json-rpc":"^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":{"jest":"^24.7.1","rimraf":"^2.6.2","typedoc":"^0.14.2","typescript":"~3.4.0","@types/jest":"^24.0.12","@types/node":"^10.0.0","@aws-sdk/client-documentation-generator":"^0.1.0-preview.3"},"_npmOperationalInternal":{"tmp":"tmp/client-cost-and-usage-report-service-node_0.1.0-preview.2_1568051363298_0.13820242488537327","host":"s3://npm-registry-packages"}},"0.1.0-preview.3":{"name":"@aws-sdk/client-cost-and-usage-report-service-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-cost-and-usage-report-service-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":"508fdb8f900dd5e8d30ff7ad19086f0088ba93e4","tarball":"https://registry.npmjs.org/@aws-sdk/client-cost-and-usage-report-service-node/-/client-cost-and-usage-report-service-node-0.1.0-preview.3.tgz","fileCount":131,"integrity":"sha512-ihLS8ZVp8+agfUZqKJxIiypMvNWiK3kXxWa9+qTjkhMikdOmHwYZ43UWLZjC1XXd2aI/eIhkT92FJodUmgF2vg==","signatures":[{"sig":"MEQCIFEJHaUzMkbEPjVPVnCQ3X5VLQqLiHHv+9xh4XA02mhtAiBCs15z9vdnOBK1jhiQts5wdkDAUtU45V9yBRW2xfUzTA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":97919,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdg6bGCRA9TVsSAnZWagAAmx8P/2uN9nDYmI9NiHq2g0RM\nZGu+gtSF57F9dzcoW4JDBtyYGgpvdu3p810z19ZAHWS9A/tpmrTl9HsVWRKE\n3ELtr68H/n8KxltJnj8+ntIN5uIFttCu7zb6HLFbKo/UEAp5hO57WV+WrrWZ\n3P9OUpt4uWJoxyXCVOW5w5NqjJszJp4u706DqJSbnnKcQ0KQyTCUUH6leIOf\n/M6dfkfDdOjub5QkJrcAWTV48WnBQ3ML38508xczUCsie0fB3GTvwEmWu2XU\neab9yeG3UOFiuvMWYMvE7P+cgYJhV0DULM6UqNHrQ78ySqhN9470kYroxMBZ\nb6m1ns9JFANT34b1q5UmF5F57q7/DSGm6HWz0G7W2j0Sica7bNyr0BkO9jeZ\niOG84vtHORIxcvTAp0oS2/8zOGnuk0g9Zwx25sDR+HIH4VCdoOChTr701JRE\nPyTpw84JZo4xbLP1YifkKfrgFIPcqfSyb/OyrNgoyevqVJrvk2QNE7RJJHg7\n9Cd/+MO0wuADvbDPsrooid2tkPcQQFJiu1b+X4//7SR0nVj1DNMsnIjwy/FS\ngLa+sAUivvO5SwcP9h6Pl49JP17PQhcaOg/1UffGEgq8PtCe+cUcndrO8ZwA\nqMMXyfIpCtx/Et26XWMiEulMKI0Rp/2+B7zwhRkNFJxrkeuwClGaHMzEX9Lw\nU+/D\r\n=o6TI\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./index.js","types":"./index.d.ts","readme":"# @aws-sdk/client-cost-and-usage-report-service-node\n\n[![NPM version](https://img.shields.io/npm/v/@aws-sdk/client-cost-and-usage-report-service-node/preview.svg)](https://www.npmjs.com/package/@aws-sdk/client-cost-and-usage-report-service-node)\n[![NPM downloads](https://img.shields.io/npm/dm/@aws-sdk/client-cost-and-usage-report-service-node.svg)](https://www.npmjs.com/package/@aws-sdk/client-cost-and-usage-report-service-node)\n\n## Description\n\n<p>The AWS Cost and Usage Report API enables you to programmatically create, query, and delete AWS Cost and Usage report definitions.</p> <p>AWS Cost and Usage reports track the monthly AWS costs and usage associated with your AWS account. The report contains line items for each unique combination of AWS product, usage type, and operation that your AWS account uses. You can configure the AWS Cost and Usage report to show only the data that you want, using the AWS Cost and Usage API.</p> <p>Service Endpoint</p> <p>The AWS Cost and Usage Report API provides the following endpoint:</p> <ul> <li> <p>cur.us-east-1.amazonaws.com</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-cost-and-usage-report-service-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(`CostandUsageReportServiceClient`) and the commands you need, for example `DeleteReportDefinitionCommand`:\n\n```javascript\n//JavaScript\nconst {\n  CostandUsageReportServiceClient\n} = require(\"@aws-sdk/client-cost-and-usage-report-service-node/CostandUsageReportServiceClient\");\nconst {\n  DeleteReportDefinitionCommand\n} = require(\"@aws-sdk/client-cost-and-usage-report-service-node/commands/DeleteReportDefinitionCommand\");\n```\n\n```javascript\n//TypeScript\nimport { CostandUsageReportServiceClient } from \"@aws-sdk/client-cost-and-usage-report-service-node/CostandUsageReportServiceClient\";\nimport { DeleteReportDefinitionCommand } from \"@aws-sdk/client-cost-and-usage-report-service-node/commands/DeleteReportDefinitionCommand\";\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 costandUsageReportService = new CostandUsageReportServiceClient({\n  region: \"region\"\n});\n//clients can be shared by different commands\nconst params = {};\nconst deleteReportDefinitionCommand = new DeleteReportDefinitionCommand(params);\ncostandUsageReportService\n  .send(deleteReportDefinitionCommand)\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 costandUsageReportService.send(\n    deleteReportDefinitionCommand\n  );\n  // do something\n} catch (error) {\n  // error handling\n}\n```\n\n```javascript\n// callback\ncostandUsageReportService.send(deleteReportDefinitionCommand, (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-cost-and-usage-report-service-node/CostandUsageReportService\";\nconst costandUsageReportService = new AWS.CostandUsageReportService({\n  region: \"region\"\n});\ncostandUsageReportService.deleteReportDefinition(params, (err, data) => {\n  //do something\n});\n```\n\n### Troubleshooting\n\nWhen the service returns an exception, the error will include the exception information, as well as response metadata (e.g. request id).\n\n```javascript\ntry {\n  const data = await costandUsageReportService.send(\n    deleteReportDefinitionCommand\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-cost-and-usage-report-service-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-cost-and-usage-report-service-node has been renamed to @aws-sdk/client-cost-and-usage-report-service. Please install the renamed package.","_npmVersion":"6.9.0","description":"Node SDK for AWS Cost and Usage Report Service","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/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/protocol-json-rpc":"^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":{"jest":"^24.7.1","rimraf":"^2.6.2","typedoc":"^0.14.2","typescript":"~3.4.0","@types/jest":"^24.0.12","@types/node":"^10.0.0","@aws-sdk/client-documentation-generator":"^0.1.0-preview.3"},"_npmOperationalInternal":{"tmp":"tmp/client-cost-and-usage-report-service-node_0.1.0-preview.3_1568908997756_0.039994207061098797","host":"s3://npm-registry-packages"}},"0.1.0-preview.4":{"name":"@aws-sdk/client-cost-and-usage-report-service-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-cost-and-usage-report-service-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":"d89afd507e44c5d7c989ec02f1ea095a3a8bee6b","tarball":"https://registry.npmjs.org/@aws-sdk/client-cost-and-usage-report-service-node/-/client-cost-and-usage-report-service-node-0.1.0-preview.4.tgz","fileCount":131,"integrity":"sha512-KzN1Lk/mrEprtP/xpPShu8HAhaGB9doBuxuTDGqjKEBo0pfa1TVHo5K3MBg6KxI7yFJ+f4z12mcl+Y64NybxjQ==","signatures":[{"sig":"MEQCICl0h7pmOkGk67YSj0zpiEl9udutwLIUNK1IIkA3f6IPAiBn5FkXbtL1By5vYCXAhSbe3FIiJ283vkA4qOqYrIuuug==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":97847,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJduNBhCRA9TVsSAnZWagAA9UMP/1O5VqcYqbpjyPYPIWfp\nG1gMiTjGIquinNrRyqzeC6iGL3J7f+Lk7XGSY5xDhVQxcwEQyF8qNYgGUmhU\ncBNlUAbCVsf5Ro6XsEpadDbAbkTGVo4FJ6K7KB3/LDKggXg2xV8zL43+OGhW\nxX/JoPGPzazdrn6zF8MwHS6j2cHihYLSs0kGJa7bUU+xR4MONn+zcVRI0xtV\nqs8Hwrq/mC3AuucGCsE9nSHS59To3+oNxxprE0Wwu0EaXkW6/+hkgHavcIbM\niJKas6YwdJTV2a6H06J6XwiiDl4jifMCcbOZljISBPR54mnzcU78Egr+MEMF\nszlfYBzOa0LAqq4hEyjRkkv5c6aQAhD9vXkLKWrisFqD6ThbwWwV/9Kkz4mq\nn9gq2sQu7j/f9sNrrmZ6nabvUPnPrKnxeWFuJ1jarF7HNUt4xowelJ067mEI\nYZ+YfDFb07AO9EVqY5avAeZ1wrf/gjD4WV1zlvXfM5f5oi+0txaIiuOVHe34\nZkiSoa+jBEYxFf1EW/+90WFb7e+vp6+H0X8Wz04E5ptgIG3wUo903q1EsaVz\nN1k1lmR7DSEI32KAPkndqsIP2ERWcZq/eRgLc84GQH/JVE12xm1Qbk90mwiU\nSdgkr+du8537ordfOwrItcQfLMPoQBM/ZsdkRJ01K59Q3mPx0DeXayk5SkEv\nNlRv\r\n=ruTb\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./index.js","types":"./index.d.ts","readme":"# @aws-sdk/client-cost-and-usage-report-service-node\n\n[![NPM version](https://img.shields.io/npm/v/@aws-sdk/client-cost-and-usage-report-service-node/preview.svg)](https://www.npmjs.com/package/@aws-sdk/client-cost-and-usage-report-service-node)\n[![NPM downloads](https://img.shields.io/npm/dm/@aws-sdk/client-cost-and-usage-report-service-node.svg)](https://www.npmjs.com/package/@aws-sdk/client-cost-and-usage-report-service-node)\n\n## Description\n\n<p>The AWS Cost and Usage Report API enables you to programmatically create, query, and delete AWS Cost and Usage report definitions.</p> <p>AWS Cost and Usage reports track the monthly AWS costs and usage associated with your AWS account. The report contains line items for each unique combination of AWS product, usage type, and operation that your AWS account uses. You can configure the AWS Cost and Usage report to show only the data that you want, using the AWS Cost and Usage API.</p> <p>Service Endpoint</p> <p>The AWS Cost and Usage Report API provides the following endpoint:</p> <ul> <li> <p>cur.us-east-1.amazonaws.com</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-cost-and-usage-report-service-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(`CostandUsageReportServiceClient`) and the commands you need, for example `DeleteReportDefinitionCommand`:\n\n```javascript\n//JavaScript\nconst {\n  CostandUsageReportServiceClient,\n  DeleteReportDefinitionCommand\n} = require(\"@aws-sdk/client-cost-and-usage-report-service-node\");\n```\n\n```javascript\n//TypeScript\nimport {\n  CostandUsageReportServiceClient,\n  DeleteReportDefinitionCommand\n} from \"@aws-sdk/client-cost-and-usage-report-service-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 costandUsageReportService = new CostandUsageReportServiceClient({\n  region: \"region\"\n});\n//clients can be shared by different commands\nconst params = {};\nconst deleteReportDefinitionCommand = new DeleteReportDefinitionCommand(params);\ncostandUsageReportService\n  .send(deleteReportDefinitionCommand)\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 costandUsageReportService.send(\n    deleteReportDefinitionCommand\n  );\n  // do something\n} catch (error) {\n  // error handling\n}\n```\n\n```javascript\n// callback\ncostandUsageReportService.send(deleteReportDefinitionCommand, (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-cost-and-usage-report-service-node\";\nconst costandUsageReportService = new AWS.CostandUsageReportService({\n  region: \"region\"\n});\ncostandUsageReportService.deleteReportDefinition(params, (err, data) => {\n  //do something\n});\n```\n\n### Troubleshooting\n\nWhen the service returns an exception, the error will include the exception information, as well as response metadata (e.g. request id).\n\n```javascript\ntry {\n  const data = await costandUsageReportService.send(\n    deleteReportDefinitionCommand\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-cost-and-usage-report-service-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-cost-and-usage-report-service-node has been renamed to @aws-sdk/client-cost-and-usage-report-service. Please install the renamed package.","_npmVersion":"6.9.0","description":"Node SDK for AWS Cost and Usage Report Service","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/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/protocol-json-rpc":"^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":{"jest":"^24.7.1","rimraf":"^2.6.2","typedoc":"^0.14.2","typescript":"~3.4.0","@types/jest":"^24.0.12","@types/node":"^10.0.0","@aws-sdk/client-documentation-generator":"^0.1.0-preview.3"},"_npmOperationalInternal":{"tmp":"tmp/client-cost-and-usage-report-service-node_0.1.0-preview.4_1572393057341_0.8587673110747356","host":"s3://npm-registry-packages"}},"0.1.0-preview.5":{"name":"@aws-sdk/client-cost-and-usage-report-service-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-cost-and-usage-report-service-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":"60acb0997142b4f70d02d1909fe260495e03e2b8","tarball":"https://registry.npmjs.org/@aws-sdk/client-cost-and-usage-report-service-node/-/client-cost-and-usage-report-service-node-0.1.0-preview.5.tgz","fileCount":131,"integrity":"sha512-iVOKeDihrl/aR2elurwNtq0zH0fRCVp6fP2a2X0lxyRu8u15WowcKkewU+Ky6u4vpVCSp6RHiRrXv08few+3lg==","signatures":[{"sig":"MEQCICefQT/YoHespl6UETrCh2o3F3Fs6QUwSMEoFVDvW+pQAiBqvUSN1pLnqdB2XIaO9qp/LieckN5CMNIvCab1PAwbpA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":98091,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdueNpCRA9TVsSAnZWagAAKm8QAJh41FRkxSPk7N74mjs8\nIj7ansrySNqT0At2P0583vdFTtCl2fBo8ea0li/CbjX7CCj4vjEwEeC0ad5R\nfr4DZt6khW558nrLq+lHxGOZHMPRlfESV/p7XfZpbStm3legu4Zw7Z4NXb1P\nJsJFT3CfK4CzmF0GIaJGdiVeK2/uaesMEwSkFJYCfg5ItYboOyGdnf9F9KHy\nsrpxy7/oKV+cGDTe6hdstBauM1a14CoRYb1hfd7xUa5dTc/CaAAc29TU9vWT\nsqw1XxKs3CWd7ujx4+22WVwdu3c5R/4nPdsDb5UyLr4V8EeT84ZIFe1nsf2J\nGOGLBAigVwuR+rpTs8aPEdvAgkie3VOoksrUTh+JU5/KZNEbBIvA6g/0mj2k\nts0XxNyKtmCzh+Hx6kWRxv0yHii3zhT1mUydrjP4sRnTmHMrm3Tf1q1M4F1u\npvgG0UceId5Hqr+trq8FYwlR0m4qT7hbsEZBEM8R11GodocPlGeRMUB4wSkK\n4gspbX9dYn0Rn8rj6r8JR4UTMk0ixkODnunzm0sHzRqtPOXRhr6+U/sWLNUp\nsgwNWyp2ih4xO9sO5newXk+RZ+L3ctigfxr67FS8ggGKv7VdKlcY7SoV2Sn2\nwa1Byqo5PdVskXIT3+Pv5EarLUMEE+b7kpmJF9caYTnou0jys+uSr+82Qirm\nsPz5\r\n=HN7E\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./index.js","types":"./index.d.ts","readme":"# @aws-sdk/client-cost-and-usage-report-service-node\n\n[![NPM version](https://img.shields.io/npm/v/@aws-sdk/client-cost-and-usage-report-service-node/preview.svg)](https://www.npmjs.com/package/@aws-sdk/client-cost-and-usage-report-service-node)\n[![NPM downloads](https://img.shields.io/npm/dm/@aws-sdk/client-cost-and-usage-report-service-node.svg)](https://www.npmjs.com/package/@aws-sdk/client-cost-and-usage-report-service-node)\n\n## Description\n\n<p>The AWS Cost and Usage Report API enables you to programmatically create, query, and delete AWS Cost and Usage report definitions.</p> <p>AWS Cost and Usage reports track the monthly AWS costs and usage associated with your AWS account. The report contains line items for each unique combination of AWS product, usage type, and operation that your AWS account uses. You can configure the AWS Cost and Usage report to show only the data that you want, using the AWS Cost and Usage API.</p> <p>Service Endpoint</p> <p>The AWS Cost and Usage Report API provides the following endpoint:</p> <ul> <li> <p>cur.us-east-1.amazonaws.com</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-cost-and-usage-report-service-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(`CostandUsageReportServiceClient`) and the commands you need, for example `DeleteReportDefinitionCommand`:\n\n```javascript\n//JavaScript\nconst {\n  CostandUsageReportServiceClient,\n  DeleteReportDefinitionCommand\n} = require(\"@aws-sdk/client-cost-and-usage-report-service-node\");\n```\n\n```javascript\n//TypeScript\nimport {\n  CostandUsageReportServiceClient,\n  DeleteReportDefinitionCommand\n} from \"@aws-sdk/client-cost-and-usage-report-service-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 costandUsageReportService = new CostandUsageReportServiceClient({\n  region: \"region\"\n});\n//clients can be shared by different commands\nconst params = {};\nconst deleteReportDefinitionCommand = new DeleteReportDefinitionCommand(params);\ncostandUsageReportService\n  .send(deleteReportDefinitionCommand)\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 costandUsageReportService.send(\n    deleteReportDefinitionCommand\n  );\n  // do something\n} catch (error) {\n  // error handling\n}\n```\n\n```javascript\n// callback\ncostandUsageReportService.send(deleteReportDefinitionCommand, (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-cost-and-usage-report-service-node\";\nconst costandUsageReportService = new AWS.CostandUsageReportService({\n  region: \"region\"\n});\ncostandUsageReportService.deleteReportDefinition(params, (err, data) => {\n  //do something\n});\n```\n\n### Troubleshooting\n\nWhen the service returns an exception, the error will include the exception information, as well as response metadata (e.g. request id).\n\n```javascript\ntry {\n  const data = await costandUsageReportService.send(\n    deleteReportDefinitionCommand\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-cost-and-usage-report-service-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-cost-and-usage-report-service-node has been renamed to @aws-sdk/client-cost-and-usage-report-service. Please install the renamed package.","_npmVersion":"6.9.0","description":"Node SDK for AWS Cost and Usage Report Service","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/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/protocol-json-rpc":"^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":{"jest":"^24.7.1","rimraf":"^2.6.2","typedoc":"^0.14.2","typescript":"~3.4.0","@types/jest":"^24.0.12","@types/node":"^10.0.0","@aws-sdk/client-documentation-generator":"^0.1.0-preview.3"},"_npmOperationalInternal":{"tmp":"tmp/client-cost-and-usage-report-service-node_0.1.0-preview.5_1572463464523_0.91727484056684","host":"s3://npm-registry-packages"}},"0.1.0-preview.6":{"name":"@aws-sdk/client-cost-and-usage-report-service-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-cost-and-usage-report-service-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":"980e1ae70a2d53f355bd6bca2fafd2eff277afa7","tarball":"https://registry.npmjs.org/@aws-sdk/client-cost-and-usage-report-service-node/-/client-cost-and-usage-report-service-node-0.1.0-preview.6.tgz","fileCount":131,"integrity":"sha512-NbYi0nptFa0tq+HYcl5IcOMRc66SyNykYdIZGIW6f9NWcaPGU/Tq/S1xUPPlKxAOVVpUPw1Dw9ss8fHL135K8g==","signatures":[{"sig":"MEYCIQCxLtLfO+qqNxpoBBplSfempeJPftQrk2+gWmrLhwvnlwIhAM3Fj2Me0+QgW5AkIK7JG7Ut1gsKZ4n6218S7CbFKsJW","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":98363,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd1FQaCRA9TVsSAnZWagAAHLAP/0uDcniAUJ8WOh2bVmP9\niJulh8hmhNR11JdoyJUOOnI17aky4veyg+cd39cn3KaSzBfI33gpG8L+ETah\nW3Henfb8bG6ajssmjBwDO6bA3s3hUIvA/F0Ww6EEmCMQjd2FZENwK9UqXsUh\nEILfXNxkcHNjcMJCOyVzfkPD5Sp7bP4xEUcI69fWtpDb8bnyshyAjsYdmg9m\niQgTbwgDyPFJ5dTDUPd9TOY9BjrLK8s/6UkxRK8fJV5CNY86TAbV7CQ+EgFC\njc4WFaesQpL4yEqcNOqBY1ZeZLMb7A+P5+IzvuUi26OxL188Bz5twJCULcel\neNLztz6WZXWDXLIJ/599mL5ziOHebO6j/7OwqsZF8j+KZr1X7O444a2Rubqa\nivGOov+DzVS/cDkmNxLneJN0pHRyyK/T1jPelRYTqbps8HAVbJMdXH5sQux5\nlIwCVW/mCQOPIwbl+ga7cpyph7sMBb3V94Y0//qX+xq3DrazNF6LevRk5Q6K\nLrvQvVCIBEAPjT0lxWOp5nkYeeA3429E0jRXEK1XSj0DBKA8ZhREuYc6HalC\njKmPzIcmYA5pMBTamThBJHCXDYRkhh+CPRgpL2SmR3SzTaTudKLncG/NWzlo\naiH4zw3t2Wg+900TGZVJOWs+TgWlYfk42tjzkDe/7GlWYAE7IXNN0aHUwbet\nUpEx\r\n=YxbR\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./index.js","types":"./index.d.ts","readme":"# @aws-sdk/client-cost-and-usage-report-service-node\n\n[![NPM version](https://img.shields.io/npm/v/@aws-sdk/client-cost-and-usage-report-service-node/preview.svg)](https://www.npmjs.com/package/@aws-sdk/client-cost-and-usage-report-service-node)\n[![NPM downloads](https://img.shields.io/npm/dm/@aws-sdk/client-cost-and-usage-report-service-node.svg)](https://www.npmjs.com/package/@aws-sdk/client-cost-and-usage-report-service-node)\n\n## Description\n\n<p>The AWS Cost and Usage Report API enables you to programmatically create, query, and delete AWS Cost and Usage report definitions.</p> <p>AWS Cost and Usage reports track the monthly AWS costs and usage associated with your AWS account. The report contains line items for each unique combination of AWS product, usage type, and operation that your AWS account uses. You can configure the AWS Cost and Usage report to show only the data that you want, using the AWS Cost and Usage API.</p> <p>Service Endpoint</p> <p>The AWS Cost and Usage Report API provides the following endpoint:</p> <ul> <li> <p>cur.us-east-1.amazonaws.com</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-cost-and-usage-report-service-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(`CostandUsageReportServiceClient`) and the commands you need, for example `DeleteReportDefinitionCommand`:\n\n```javascript\n//JavaScript\nconst {\n  CostandUsageReportServiceClient,\n  DeleteReportDefinitionCommand\n} = require(\"@aws-sdk/client-cost-and-usage-report-service-node\");\n```\n\n```javascript\n//TypeScript\nimport {\n  CostandUsageReportServiceClient,\n  DeleteReportDefinitionCommand\n} from \"@aws-sdk/client-cost-and-usage-report-service-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 costandUsageReportService = new CostandUsageReportServiceClient({\n  region: \"region\"\n});\n//clients can be shared by different commands\nconst params = {};\nconst deleteReportDefinitionCommand = new DeleteReportDefinitionCommand(params);\ncostandUsageReportService\n  .send(deleteReportDefinitionCommand)\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 costandUsageReportService.send(\n    deleteReportDefinitionCommand\n  );\n  // do something\n} catch (error) {\n  // error handling\n}\n```\n\n```javascript\n// callback\ncostandUsageReportService.send(deleteReportDefinitionCommand, (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-cost-and-usage-report-service-node\";\nconst costandUsageReportService = new AWS.CostandUsageReportService({\n  region: \"region\"\n});\ncostandUsageReportService.deleteReportDefinition(params, (err, data) => {\n  //do something\n});\n```\n\n### Troubleshooting\n\nWhen the service returns an exception, the error will include the exception information, as well as response metadata (e.g. request id).\n\n```javascript\ntry {\n  const data = await costandUsageReportService.send(\n    deleteReportDefinitionCommand\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-cost-and-usage-report-service-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-cost-and-usage-report-service-node has been renamed to @aws-sdk/client-cost-and-usage-report-service. Please install the renamed package.","_npmVersion":"6.9.0","description":"Node SDK for AWS Cost and Usage Report Service","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/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/protocol-json-rpc":"^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":{"jest":"^24.7.1","rimraf":"^2.6.2","typedoc":"^0.14.2","typescript":"~3.4.0","@types/jest":"^24.0.12","@types/node":"^10.0.0","@aws-sdk/client-documentation-generator":"^0.1.0-preview.3"},"_npmOperationalInternal":{"tmp":"tmp/client-cost-and-usage-report-service-node_0.1.0-preview.6_1574196250584_0.9741214796427604","host":"s3://npm-registry-packages"}}},"time":{"created":"2019-09-09T17:49:23.124Z","modified":"2025-03-27T18:41:34.940Z","0.1.0-preview.2":"2019-09-09T17:49:23.492Z","0.1.0-preview.3":"2019-09-19T16:03:17.888Z","0.1.0-preview.4":"2019-10-29T23:50:57.536Z","0.1.0-preview.5":"2019-10-30T19:24:24.741Z","0.1.0-preview.6":"2019-11-19T20:44:10.691Z"},"author":{"url":"https://aws.amazon.com/javascript/","name":"AWS SDK for JavaScript Team"},"license":"Apache-2.0","description":"Node SDK for AWS Cost and Usage Report Service","maintainers":[{"email":"osa-3p@amazon.com","name":"amzn-oss"},{"email":"aws-sdk-js-automation@amazon.com","name":"aws-sdk-bot"}],"readme":"","readmeFilename":""}