{"_id":"@aws-sdk/client-service-catalog-node","_rev":"18-060b5ee1aa7206bfd16942cc536796ad","name":"@aws-sdk/client-service-catalog-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-service-catalog-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-service-catalog-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":"d79c6511f4a6dfd896c51035250b6557cf802f8a","tarball":"https://registry.npmjs.org/@aws-sdk/client-service-catalog-node/-/client-service-catalog-node-0.1.0-preview.2.tgz","fileCount":2306,"integrity":"sha512-CNXozb6M3pro0Ra3Dvdww1aT80THaKDx+aNhTViVR6H00hqxzilWsMSgHynzJnozH+Lc+Etva5Fb5islAaOCeA==","signatures":[{"sig":"MEQCIGoYA/LLG1oFDU/hxrkpu4aEoM+BwOgadd25ro1GP5dNAiANyEzG+JEx8H/WIoPQJtrcuygN9L0dA8XdEsd5ciVU9g==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1354999,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJddpKNCRA9TVsSAnZWagAAap4P/ArSpOU5tDsY9o4/kXAB\ny2ugorvLLUWHUEGY5bNl8n0MAKIAsrgh0PrhAHuIJGirBn61FSg7BIMVn10w\nnJJAK39Yg1S7/EPV2shWj0KQ6tsczsVjOgypHqcBvFz/nXMEH2Be6h5DP1zB\nFp8Ir6c1Id7XbTUj0LuqI+peWqeEr+IXB+WkGOVIyAVmG9BRZhDFKC+zt0HI\nHBvbPZlef8llfy1IKpepabM0YLg8KizLUdt+KZn82s9PHxrMUTXJwoXW93LC\nwcfYM/54Gg/1zv7nKFObl2B0phpDAHZOVCuj+Gx1QTQCwGiTbbuZADMNx5KO\nRW5jftzdAcWrivNU+DJwBvR/cwHC8noWkQJWDP4BoPQClna3Izv63Aq5355R\njcIgfUYf3AgMRU3br4FBSRlrnwsgWROv9puwkuN2T3O3KvqyTDk66QOZ6cFu\np6vpzjZ1uZ2oETHcoVJRdegDHUCEmwezqr/23pkwwHq1VSj7fk0HCsDjf85B\nPNViUt11uM6+Km2s7jAFJSuEOWMC03ggqyrXDZPNJiujXSvqzMqe8g7SeFas\n2g5fqR8IjPtAuCU71HD6VpFACS4oOjoAf8dnyMbk9Y+sDuKjErl0fNFT2Eqp\nZ8rpMJrRjbDxUFK0i98IjFU9QNt3Sl4W07CJvBeMn2O/OC2JSSp1eIPQrj3J\nCb/U\r\n=EC+5\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-service-catalog-node has been renamed to @aws-sdk/client-service-catalog. Please install the renamed package.","_npmVersion":"6.9.0","description":"Node SDK for AWS Service Catalog","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-service-catalog-node_0.1.0-preview.2_1568051852755_0.9933574614518481","host":"s3://npm-registry-packages"}},"0.1.0-preview.3":{"name":"@aws-sdk/client-service-catalog-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-service-catalog-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":"a6043e1fe7a8ca62692ddaee8a8f87c7a779d507","tarball":"https://registry.npmjs.org/@aws-sdk/client-service-catalog-node/-/client-service-catalog-node-0.1.0-preview.3.tgz","fileCount":2306,"integrity":"sha512-sb1iE6uqz37juRCnYm3YLO7hjX0Qk5L9DHg3gMCG3gjXUNFAkcxWG8Qda3vLHk0oE60iZG8ALNEVnxdYJvZFcQ==","signatures":[{"sig":"MEYCIQC2TMCYeJ9llXwfGzrc+jdEhWepTZAtz3TZUDD0Rw6AGgIhAINuIsKV/EzUeKmjqwAVNX26m1xs79Xqx0pEKO+buEFC","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1337057,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdg6jOCRA9TVsSAnZWagAAz+EP/i3MRTyl5fxJ5P5CG7aO\n6hvhV5bE4+Tx8Sd5IHGQiue3c/mliaqVm0ivA9OuXpsp5mnRv2UfW3g9voAm\nndF5uE1RdaFJGtuyD6zRTQzG4wdF16rYSFnCkvvaw+CkXPQhofJmBdXw9kqi\nI/edcJ/S7tlXRkj/+Vnq7vrN6t6pDSTyCHAb1hb9tbZIVKjRoyDa4hg0Tg/0\nL1ghNsykc+Gm5YPfZS6TUvkVH4174PoaCtA/DqmoAbJb3P7Kok8y0WZHBQWl\nw4IY6vedg9ULtOjfrYbIKrx1kefW3bAcfdX93mm9s0EMdhh5SF0PDaXtWjOz\nojMlK/Vx10iP3LhxKc5ictX2pfuNFmINZZ4Ns2X2ryQtswoKS8f7P+XnfT39\nGeaPcyjlq39GrbQiAQlct1bxlZ8BcwiTou38d2yzI/NuZrFPOwzC8NPhWEhe\nd5JvcMrwf5HZuXDsOYxtpqt8UlDBnKcU6sCYHekCeltRT27mGd6pIibqVCJS\n/5RV/4y7Lw2lIoSX9tOLywaINKG9Y3PdBy8ugUpFdoHFe1gIBXNeSFvbIGNr\nEurRFmEA1pijn4yTppLpPoqrFE3K+XBUgyksKwLuAi+5IVUciZ6bS3f3LBAK\nRPhWAR3cCfGPbNM01orzbxi6ncYEBFaxK9rLvV5r0mIL5/atPe/crSjwtAJ5\ncxTy\r\n=J0oY\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./index.js","types":"./index.d.ts","readme":"# @aws-sdk/client-service-catalog-node\n\n[![NPM version](https://img.shields.io/npm/v/@aws-sdk/client-service-catalog-node/preview.svg)](https://www.npmjs.com/package/@aws-sdk/client-service-catalog-node)\n[![NPM downloads](https://img.shields.io/npm/dm/@aws-sdk/client-service-catalog-node.svg)](https://www.npmjs.com/package/@aws-sdk/client-service-catalog-node)\n\n## Description\n\n<fullname>AWS Service Catalog</fullname> <p> <a href=\"https://aws.amazon.com/servicecatalog/\">AWS Service Catalog</a> enables organizations to create and manage catalogs of IT services that are approved for use on AWS. To get the most out of this documentation, you should be familiar with the terminology discussed in <a href=\"http://docs.aws.amazon.com/servicecatalog/latest/adminguide/what-is_concepts.html\">AWS Service Catalog Concepts</a>.</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-service-catalog-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(`ServiceCatalogClient`) and the commands you need, for example `AcceptPortfolioShareCommand`:\n\n```javascript\n//JavaScript\nconst {\n  ServiceCatalogClient\n} = require(\"@aws-sdk/client-service-catalog-node/ServiceCatalogClient\");\nconst {\n  AcceptPortfolioShareCommand\n} = require(\"@aws-sdk/client-service-catalog-node/commands/AcceptPortfolioShareCommand\");\n```\n\n```javascript\n//TypeScript\nimport { ServiceCatalogClient } from \"@aws-sdk/client-service-catalog-node/ServiceCatalogClient\";\nimport { AcceptPortfolioShareCommand } from \"@aws-sdk/client-service-catalog-node/commands/AcceptPortfolioShareCommand\";\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 serviceCatalog = new ServiceCatalogClient({region: 'region'});\n//clients can be shared by different commands\nconst params = {\n  PortfolioId: /**a string value*/,\n};\nconst acceptPortfolioShareCommand = new AcceptPortfolioShareCommand(params);\nserviceCatalog.send(acceptPortfolioShareCommand).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 serviceCatalog.send(acceptPortfolioShareCommand);\n  // do something\n} catch (error) {\n  // error handling\n}\n```\n\n```javascript\n// callback\nserviceCatalog.send(acceptPortfolioShareCommand, (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-service-catalog-node/ServiceCatalog\";\nconst serviceCatalog = new AWS.ServiceCatalog({ region: \"region\" });\nserviceCatalog.acceptPortfolioShare(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 serviceCatalog.send(acceptPortfolioShareCommand);\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-service-catalog-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-service-catalog-node has been renamed to @aws-sdk/client-service-catalog. Please install the renamed package.","_npmVersion":"6.9.0","description":"Node SDK for AWS Service Catalog","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-service-catalog-node_0.1.0-preview.3_1568909518165_0.6169775585763639","host":"s3://npm-registry-packages"}},"0.1.0-preview.4":{"name":"@aws-sdk/client-service-catalog-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-service-catalog-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":"70a0b9735aff8c0808bcd83ee2c9e8ab7ef41ec3","tarball":"https://registry.npmjs.org/@aws-sdk/client-service-catalog-node/-/client-service-catalog-node-0.1.0-preview.4.tgz","fileCount":2306,"integrity":"sha512-HEFDCx4Ajdg5hR4XpUpXBZ37huRQVB7RWc9k/zssagVsyii+kDuIY/aYgJu8eXVI00a01EoxND460PKzfry7EA==","signatures":[{"sig":"MEUCIEdGuynuCJSXZBMyCitwVaG/Mwdexx35uBibnPGPTla8AiEA97iWGjjzWF/ZrShwEOiplhsYWlE3yK8y8BSZRorv5Cw=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1337050,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJduNIFCRA9TVsSAnZWagAAwiMP/RApX1w2SZ7Oy/Y3BYlQ\nIFGIk5Btx5C23bt+sXGRZpUU8g26ep/aAEC3KR/dt6DRFyFn+NCzj6ntBHrB\ne3Ua8jEFuVVnUERLpePy/TmWrIim1bDEXFbXqRCKBki6Xaa5S9kpFYgU+2XZ\nq0+P05mfElzghUqkoWXIFvCyOvpUTxgkWRN31qsjrGNPX9/uWu8RnLfk5PmU\njvTRGL7Up2ykP2XvSba8sfHieOpNBdZbgogVsaegTDxaxAtQsXa0ERvu2XPf\nFUj/nE0TXK+PdUFYxJUDXplnD1+XrRJRuNKfKYzpICup156fSgBYlb4XE29p\nhQnmB2K5PHhIQJv7uPaR+pOwHea1itbYlUhoCKwnbezsX6ZSdurGu6jLsGVn\nfJ+JseCrhXkrrEPxq100Fke72mJv4fyYAfKD8yt53wdBlZkEDe/JC9HYcRvw\nCYL2iLxueikkYP8Nt9JsBjQ5rti5cHXdUxeStjz9+dU2Ydq+orNyDOFMkAD2\nkqrI0iW7Xnx26Twi2SQibsvpTciV2WjeQE3X8s6vV1kgW+O8PzgJf5gv2q7B\ncLUnub76WPdVNVGF9LH87oNVV5JrTR70NRqNtFVO9vY0yobT2P1FvhIuKGqz\nXTKcXCg6/1Jsbxm6JHAPWLnkG2ZyJS957pRQfFlulaG1dQ+C2KyDmcW3WUp1\nBGd+\r\n=oEfF\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./index.js","types":"./index.d.ts","readme":"# @aws-sdk/client-service-catalog-node\n\n[![NPM version](https://img.shields.io/npm/v/@aws-sdk/client-service-catalog-node/preview.svg)](https://www.npmjs.com/package/@aws-sdk/client-service-catalog-node)\n[![NPM downloads](https://img.shields.io/npm/dm/@aws-sdk/client-service-catalog-node.svg)](https://www.npmjs.com/package/@aws-sdk/client-service-catalog-node)\n\n## Description\n\n<fullname>AWS Service Catalog</fullname> <p> <a href=\"https://aws.amazon.com/servicecatalog/\">AWS Service Catalog</a> enables organizations to create and manage catalogs of IT services that are approved for use on AWS. To get the most out of this documentation, you should be familiar with the terminology discussed in <a href=\"http://docs.aws.amazon.com/servicecatalog/latest/adminguide/what-is_concepts.html\">AWS Service Catalog Concepts</a>.</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-service-catalog-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(`ServiceCatalogClient`) and the commands you need, for example `AcceptPortfolioShareCommand`:\n\n```javascript\n//JavaScript\nconst {\n  ServiceCatalogClient,\n  AcceptPortfolioShareCommand\n} = require(\"@aws-sdk/client-service-catalog-node\");\n```\n\n```javascript\n//TypeScript\nimport {\n  ServiceCatalogClient,\n  AcceptPortfolioShareCommand\n} from \"@aws-sdk/client-service-catalog-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 serviceCatalog = new ServiceCatalogClient({region: 'region'});\n//clients can be shared by different commands\nconst params = {\n  PortfolioId: /**a string value*/,\n};\nconst acceptPortfolioShareCommand = new AcceptPortfolioShareCommand(params);\nserviceCatalog.send(acceptPortfolioShareCommand).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 serviceCatalog.send(acceptPortfolioShareCommand);\n  // do something\n} catch (error) {\n  // error handling\n}\n```\n\n```javascript\n// callback\nserviceCatalog.send(acceptPortfolioShareCommand, (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-service-catalog-node\";\nconst serviceCatalog = new AWS.ServiceCatalog({ region: \"region\" });\nserviceCatalog.acceptPortfolioShare(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 serviceCatalog.send(acceptPortfolioShareCommand);\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-service-catalog-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-service-catalog-node has been renamed to @aws-sdk/client-service-catalog. Please install the renamed package.","_npmVersion":"6.9.0","description":"Node SDK for AWS Service Catalog","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-service-catalog-node_0.1.0-preview.4_1572393477282_0.6305355651639735","host":"s3://npm-registry-packages"}},"0.1.0-preview.5":{"name":"@aws-sdk/client-service-catalog-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-service-catalog-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":"f04970b5ada0df6864cdda9c5a83f5fd14625c3d","tarball":"https://registry.npmjs.org/@aws-sdk/client-service-catalog-node/-/client-service-catalog-node-0.1.0-preview.5.tgz","fileCount":2306,"integrity":"sha512-NVYW5rwJUpBi1A+IaYYNazlxo5APqO0KoGwJEmBGT505M3tg+WAnaVkiilaoFpXNoatW0G/Wyz59dtKu3F6E5Q==","signatures":[{"sig":"MEYCIQDS1J5jUk6eCgaFX8nnxvhSQ5UjLzyJnpqJn3dNy2nr4QIhALHf/8K2uquoZZ3/sdp0WTHlynvb/RvA8s5CF1DkVksz","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1337294,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdueWACRA9TVsSAnZWagAAa+MP/iJp6QDIoYtJm5+08Hwo\n50cb6YsK19M7M04yKwegUB1yQswfI8UXCqntgtF4RSMlVFdgOXsLIPfc7XnQ\nKWi7bQlah71SCqRElqg2jbXUpJbQVAC65tZQP/b5IFkalx7HRFwxQ+kWma4Z\n30SLJ1GG7Yg63nZkbViQVPG0NduqajnM+Q53aq1nKLjB4RQ5A4hAX7GLyc5W\nI25T7B7Y5WrJC/fXszLiPzKwyEtdXFu5z2o8ibjt40SddO5AecmvEl8I5KSs\n2GwnB3WlcLdW0X98uxwRt8ih3JiiDiSi45JJb8E2e2sbG7gr5frhL8hduF/k\nUwIJchwWO6mgiJxpoy2+HHKUG9DnGDjpnSbAZD0VMVgn8OlL1VMGjCTJmFVQ\nC6WAOgINAudMPmq+PTc0Yz2cHKQYznawHEpPykI4pEB5GfEBdS7rOPxvDfAT\nip0nXN/GTi6exG1mbTAeabI5kDv/gQSQ9ppIci8c7QJv3iNhWCHJdbaxCHBT\nso8D3jwcIOqjmt9/iFSLK7Pjk9gUmGqJASeWwCCUKoF4aQE9KSMg8TS1M5ig\nDrJVpIpHdDOtwa2nb9LwB1qvN00jZNEBeY/PscPrVOTBveoH9vBwoBCrqOHD\n263U9FTaMEDv89Onz82fvvurDmE5TGYhAYelt9ty573u2MW/6Xw9DOHGClXx\nPP0D\r\n=ce2z\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./index.js","types":"./index.d.ts","readme":"# @aws-sdk/client-service-catalog-node\n\n[![NPM version](https://img.shields.io/npm/v/@aws-sdk/client-service-catalog-node/preview.svg)](https://www.npmjs.com/package/@aws-sdk/client-service-catalog-node)\n[![NPM downloads](https://img.shields.io/npm/dm/@aws-sdk/client-service-catalog-node.svg)](https://www.npmjs.com/package/@aws-sdk/client-service-catalog-node)\n\n## Description\n\n<fullname>AWS Service Catalog</fullname> <p> <a href=\"https://aws.amazon.com/servicecatalog/\">AWS Service Catalog</a> enables organizations to create and manage catalogs of IT services that are approved for use on AWS. To get the most out of this documentation, you should be familiar with the terminology discussed in <a href=\"http://docs.aws.amazon.com/servicecatalog/latest/adminguide/what-is_concepts.html\">AWS Service Catalog Concepts</a>.</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-service-catalog-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(`ServiceCatalogClient`) and the commands you need, for example `AcceptPortfolioShareCommand`:\n\n```javascript\n//JavaScript\nconst {\n  ServiceCatalogClient,\n  AcceptPortfolioShareCommand\n} = require(\"@aws-sdk/client-service-catalog-node\");\n```\n\n```javascript\n//TypeScript\nimport {\n  ServiceCatalogClient,\n  AcceptPortfolioShareCommand\n} from \"@aws-sdk/client-service-catalog-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 serviceCatalog = new ServiceCatalogClient({region: 'region'});\n//clients can be shared by different commands\nconst params = {\n  PortfolioId: /**a string value*/,\n};\nconst acceptPortfolioShareCommand = new AcceptPortfolioShareCommand(params);\nserviceCatalog.send(acceptPortfolioShareCommand).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 serviceCatalog.send(acceptPortfolioShareCommand);\n  // do something\n} catch (error) {\n  // error handling\n}\n```\n\n```javascript\n// callback\nserviceCatalog.send(acceptPortfolioShareCommand, (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-service-catalog-node\";\nconst serviceCatalog = new AWS.ServiceCatalog({ region: \"region\" });\nserviceCatalog.acceptPortfolioShare(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 serviceCatalog.send(acceptPortfolioShareCommand);\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-service-catalog-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-service-catalog-node has been renamed to @aws-sdk/client-service-catalog. Please install the renamed package.","_npmVersion":"6.9.0","description":"Node SDK for AWS Service Catalog","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-service-catalog-node_0.1.0-preview.5_1572463999192_0.17459431400851533","host":"s3://npm-registry-packages"}},"0.1.0-preview.6":{"name":"@aws-sdk/client-service-catalog-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-service-catalog-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":"e36159c49c902265e0e8af1ce83229a8e87602f8","tarball":"https://registry.npmjs.org/@aws-sdk/client-service-catalog-node/-/client-service-catalog-node-0.1.0-preview.6.tgz","fileCount":2306,"integrity":"sha512-BmOc+mPl/147+srkUytvx5nAjUXzKxWNlu/qNF7oUBMptSdvvc4HG6UGnQIuZpmGTJT9koNvyppS48UgApCuDg==","signatures":[{"sig":"MEUCIAqG22IDW4p2Ssd70WLjt1cO41VCuCyBEovsz2XzqopiAiEA8WiCqc4DEX4M4xpn/Xu5lWjuy0vfTpBvmgaAgRSzKtU=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1337566,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd1FTbCRA9TVsSAnZWagAABr4P/izsgAbr5loSMb9zBebi\noHu89Gise/gddjPYq/LC7KgXY/hawVZYNqcsffpi3dEFNvc3wkh866bsb1UR\nto8owCUJcg525gZ2v6w2NjFGMTkbQWFDhnIZfLdDQUviWc2yNOQpEgajghAc\nBQdRhJGYKfIFfveHxW66Jyu1z43OLAEDWF3GztzPLt5vFgj6cUC3gB3wiUjH\nmw8iqNLhBLRaDvhm3opx0ln5ZKN2RtaPXZjan0ZaG45iq/cYXBInP/7E3k0a\n3A084zZBfoMKulxzrZI6QFSQoiFWXaIiRbnkVRHHIZrFCT/DWcINFD430Ag3\niwKZMOWetdt0O+fExG227igxRJakBSn9Txa7NbGQawTCBTN9VKDqfAtQh5sb\nMajAzyag+GdDUx5yyDYuffqd1JMkkBH+3jNWJ53a54pNnit/ObABoSwFe9/7\nWr0s3o6cU8Z9+P33PFDQwyLfEdRPpRmMpr7aQ6ejw9yFSele1nYaOkcoCNPR\nUWiWAkQYNHa/WjlLIHLBSzH5zLNdE1phguak3jd5v8Z74MgGCP0aTROEcSl5\ntEm8j4s/BfxuMTYyZU0ucwpaq1JC86cIF9/USRLHpDdTnp+4V5Aq3pL+ERZS\naKi4RT8+ULwt/LSkz0AOx+gHFmNGtsvCjBkImMFu1Y6dBJJhYcAB6a+XCsrt\nwHvb\r\n=J9Z8\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./index.js","types":"./index.d.ts","readme":"# @aws-sdk/client-service-catalog-node\n\n[![NPM version](https://img.shields.io/npm/v/@aws-sdk/client-service-catalog-node/preview.svg)](https://www.npmjs.com/package/@aws-sdk/client-service-catalog-node)\n[![NPM downloads](https://img.shields.io/npm/dm/@aws-sdk/client-service-catalog-node.svg)](https://www.npmjs.com/package/@aws-sdk/client-service-catalog-node)\n\n## Description\n\n<fullname>AWS Service Catalog</fullname> <p> <a href=\"https://aws.amazon.com/servicecatalog/\">AWS Service Catalog</a> enables organizations to create and manage catalogs of IT services that are approved for use on AWS. To get the most out of this documentation, you should be familiar with the terminology discussed in <a href=\"http://docs.aws.amazon.com/servicecatalog/latest/adminguide/what-is_concepts.html\">AWS Service Catalog Concepts</a>.</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-service-catalog-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(`ServiceCatalogClient`) and the commands you need, for example `AcceptPortfolioShareCommand`:\n\n```javascript\n//JavaScript\nconst {\n  ServiceCatalogClient,\n  AcceptPortfolioShareCommand\n} = require(\"@aws-sdk/client-service-catalog-node\");\n```\n\n```javascript\n//TypeScript\nimport {\n  ServiceCatalogClient,\n  AcceptPortfolioShareCommand\n} from \"@aws-sdk/client-service-catalog-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 serviceCatalog = new ServiceCatalogClient({region: 'region'});\n//clients can be shared by different commands\nconst params = {\n  PortfolioId: /**a string value*/,\n};\nconst acceptPortfolioShareCommand = new AcceptPortfolioShareCommand(params);\nserviceCatalog.send(acceptPortfolioShareCommand).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 serviceCatalog.send(acceptPortfolioShareCommand);\n  // do something\n} catch (error) {\n  // error handling\n}\n```\n\n```javascript\n// callback\nserviceCatalog.send(acceptPortfolioShareCommand, (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-service-catalog-node\";\nconst serviceCatalog = new AWS.ServiceCatalog({ region: \"region\" });\nserviceCatalog.acceptPortfolioShare(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 serviceCatalog.send(acceptPortfolioShareCommand);\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-service-catalog-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-service-catalog-node has been renamed to @aws-sdk/client-service-catalog. Please install the renamed package.","_npmVersion":"6.9.0","description":"Node SDK for AWS Service Catalog","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-service-catalog-node_0.1.0-preview.6_1574196443139_0.721371421124605","host":"s3://npm-registry-packages"}}},"time":{"created":"2019-09-09T17:57:32.569Z","modified":"2025-03-27T18:46:37.041Z","0.1.0-preview.2":"2019-09-09T17:57:33.041Z","0.1.0-preview.3":"2019-09-19T16:11:58.390Z","0.1.0-preview.4":"2019-10-29T23:57:57.527Z","0.1.0-preview.5":"2019-10-30T19:33:19.455Z","0.1.0-preview.6":"2019-11-19T20:47:23.359Z"},"author":{"url":"https://aws.amazon.com/javascript/","name":"AWS SDK for JavaScript Team"},"license":"Apache-2.0","description":"Node SDK for AWS Service Catalog","maintainers":[{"email":"osa-3p@amazon.com","name":"amzn-oss"},{"email":"aws-sdk-js-automation@amazon.com","name":"aws-sdk-bot"}],"readme":"","readmeFilename":""}