{"_id":"@aws-sdk/client-swf-browser","_rev":"19-894340d4d851f1b9a53ca38a2d76c3ee","name":"@aws-sdk/client-swf-browser","dist-tags":{"latest":"0.1.0-preview.2","preview":"0.1.0-preview.6"},"versions":{"0.1.0-preview.2":{"name":"@aws-sdk/client-swf-browser","version":"0.1.0-preview.2","author":{"url":"https://aws.amazon.com/javascript/","name":"AWS SDK for JavaScript Team"},"license":"Apache-2.0","_id":"@aws-sdk/client-swf-browser@0.1.0-preview.2","maintainers":[{"name":"trivikr-aws","email":"trivikr@amazon.com"},{"name":"aws-sdk-bot","email":"aws-sdk-js@amazon.com"},{"name":"zheallan","email":"zheallan@amazon.com"},{"name":"amzn-oss","email":"osa-3p@amazon.com"}],"dist":{"shasum":"cc3b4b82f5483917f43989a2afd7e9dd44d668a2","tarball":"https://registry.npmjs.org/@aws-sdk/client-swf-browser/-/client-swf-browser-0.1.0-preview.2.tgz","fileCount":1418,"integrity":"sha512-/xoUFhG4Sd2d9rND+3HwUPn/8yWZfFnpCv+gdh/0FBkseRjV9lHxa18Ly+oh2y3c9w58ENgZrFmYdyDf9/Df/g==","signatures":[{"sig":"MEYCIQDq4N5/mYO/6lBdpfG8pwBZ8r84lbKi3lxFklgi1myBKgIhAOEku4rljq4ny7WLdEwKn1cv4jyQMN4fAKpB5tNFZ4Gp","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1009151,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJddo+tCRA9TVsSAnZWagAAi44P/RvgRHCLlxyFMg1mm3/1\nkI5RFIfsZTYZftu7IcDB8T2htonAn50L0PffE3sCItpZxsrIMDDrrr4n7+Sg\noJzj3L971t7TB3P88PmT/hq0i2zbQDDCRppRZGkq8V9gpVMbnhCzFhB+2VCL\n8bbdLZOUA9+cy+FPFwRBcptT+F30rSHIQQNW1fcXScdSByAculTGvF/vDiO1\nqQf20X4NTwozlMxYHA0sbaMfo1YtinlYA0KW6EV5RHfbb8pkb7iqa4ww84Kg\n8qwqStTXimA5Q/vAQ6Y9rnTcur32ML5DavEZEKRW4tH7OAiopc7prkF9Oqc9\nx6C4wpxDmtDTIpIV/p/fRDQQR6KAD+ObwX7vx4OvKdKnZqVb+aUAbXDZUxi6\nZxfx4wpmrIoLjpn+ie1pIlOZQrAvyKHfgmZWaxnF+TMMAuJ7trcvhqS+20Xk\nBU48NHdLVpWNQtllbl3N6Ud5zSjjEFxL1ilwlraLrrYsrIqtgNkjtP/d1KRp\nvs4lNCiJg9QJWM4V4dy4MAvFtccXubUxUSXJiA0Zgghn6nXA2jBuQDmbWdir\npkicPlmBS3JOOMEA7dzhS601yEvev9WAKg02SZR8ZhmzyY1VBJks8HruAkEs\n53m03SdXVVz/S5NlL9ZeWArNVWbROFqFFrhbuizyEbO3bwEC5VS3bkQzEepi\n8Jbo\r\n=gBbG\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./index.js","types":"./index.d.ts","scripts":{"test":"exit 0","clean":"npm run remove-definitions && npm run remove-maps && npm run remove-js","pretest":"tsc","remove-js":"rimraf *.js && rimraf ./commands/*.js && rimraf ./model/*.js && rimraf ./types/*.js","smoke-test":"karma start karma.conf","remove-maps":"rimraf *.js.map && rimraf ./commands/*.js.map && rimraf ./model/*.js.map && rimraf ./types/*.js.map","prepublishOnly":"tsc","remove-definitions":"rimraf *.d.ts && rimraf ./commands/*.d.ts && rimraf ./model/*.d.ts rimraf ./types/*.d.ts","build-documentation":"npm run clean && typedoc ./","remove-documentation":"rimraf ./docs"},"_npmUser":{"name":"aws-sdk-bot","email":"aws-sdk-js@amazon.com"},"deprecated":"The package @aws-sdk/client-swf-browser has been renamed to @aws-sdk/client-swf. Please install the renamed package.","_npmVersion":"6.9.0","description":"Browser SDK for Amazon Simple Workflow Service","directories":{},"_nodeVersion":"10.1.0","dependencies":{"tslib":"^1.8.0","@aws-sdk/types":"^0.1.0-preview.5","@aws-sdk/json-parser":"^0.1.0-preview.5","@aws-sdk/core-handler":"^0.1.0-preview.5","@aws-sdk/json-builder":"^0.1.0-preview.5","@aws-sdk/signature-v4":"^0.1.0-preview.6","@aws-sdk/config-resolver":"^0.1.0-preview.5","@aws-sdk/middleware-stack":"^0.1.0-preview.6","@aws-sdk/retry-middleware":"^0.1.0-preview.5","@aws-crypto/sha256-browser":"^0.1.0-preview.1","@aws-sdk/protocol-json-rpc":"^0.1.0-preview.6","@aws-sdk/util-utf8-browser":"^0.1.0-preview.3","@aws-sdk/fetch-http-handler":"^0.1.0-preview.5","@aws-sdk/signing-middleware":"^0.1.0-preview.6","@aws-sdk/url-parser-browser":"^0.1.0-preview.5","@aws-sdk/util-base64-browser":"^0.1.0-preview.3","@aws-sdk/middleware-serializer":"^0.1.0-preview.5","@aws-sdk/json-error-unmarshaller":"^0.1.0-preview.6","@aws-sdk/util-user-agent-browser":"^0.1.0-preview.6","@aws-sdk/stream-collector-browser":"^0.1.0-preview.5","@aws-sdk/util-body-length-browser":"^0.1.0-preview.3","@aws-sdk/middleware-content-length":"^0.1.0-preview.5","@aws-sdk/middleware-header-default":"^0.1.0-preview.5"},"_hasShrinkwrap":false,"devDependencies":{"rimraf":"^2.6.2","typedoc":"^0.14.2","typescript":"~3.4.0","@aws-sdk/client-documentation-generator":"^0.1.0-preview.3"},"_npmOperationalInternal":{"tmp":"tmp/client-swf-browser_0.1.0-preview.2_1568051116794_0.6397475830109289","host":"s3://npm-registry-packages"}},"0.1.0-preview.3":{"name":"@aws-sdk/client-swf-browser","version":"0.1.0-preview.3","author":{"url":"https://aws.amazon.com/javascript/","name":"AWS SDK for JavaScript Team"},"license":"Apache-2.0","_id":"@aws-sdk/client-swf-browser@0.1.0-preview.3","maintainers":[{"name":"amzn-oss","email":"osa-3p@amazon.com"},{"name":"aws-sdk-bot","email":"aws-sdk-js@amazon.com"},{"name":"trivikr-aws","email":"trivikr@amazon.com"},{"name":"zheallan","email":"zheallan@amazon.com"}],"dist":{"shasum":"ea5da581616bab4867299f4411516eca94fe422b","tarball":"https://registry.npmjs.org/@aws-sdk/client-swf-browser/-/client-swf-browser-0.1.0-preview.3.tgz","fileCount":1418,"integrity":"sha512-DIpq8TOx4hvE9Ga+Eid+puBjSVLQoXMYRI2ikiug8G8cwxwtS4eejek7kCicR760elIlLqgEb+CIS6w8LRxc9Q==","signatures":[{"sig":"MEUCIQCvfSpu8XjP7HrE0uFxU25KvXRybRJ5MiPbZf0LMl10vAIgQlNNex2aDNNTaigpr0b2zlr6KyftI2NRUWtI+H3kmn8=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1009371,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdg6WvCRA9TVsSAnZWagAAOLIP/RYOzLy+a1MTKMyWVtWW\neAxS60BGT3BjmyLqigF0KrnhrdrWCf/63v+jg6vwGpScUvcSbjUzaw2whI1Y\ngeH1UYvb3JVNLO21yzEv1fc7Q1GK2BNKmApypsWPmalYB1XHUeqVFoD91NCw\nqhMnJt9zmmxhel0JNJmrwxLLVYWGQyPXJ64eYP7x2igM9rNexVxPSsYHaDnp\n8FlYYHj9m+R4wAUV7cosFyyAD019yUbFd607F7NBa1Ee6L9UfZodCFKFeADh\nONXLeSEVPAYgEw56/rkSFuyqb4T7DkmqrzDmEmBldFZZ1oSWg2BCptaUenFM\n6p28IiOOrD+Zf1Dbz4xdsDrDk7i9DPfNjfRsHopfbRBEciaWi7gadTayu+ZW\nKHgO2m0PI+9zB8OhUB09K6jkRqhQ4B7D/Z6JRWhIdwdC6JgFPAWPn0/o/yPw\nH0B31vMs1zOlO/n/L4hgS5+555bO2p7TvI5sRFRVzzn4b20Qprti7BDcfQSe\n7aP2jmlH+QF+synesJ6/jd2pFrbbQCV/iztQ0hr1Eyj9h9urWJdRpBiyadrL\nkpzSFwPE2JJRUcvsBOFFuk5Wt4QTnwrkt4IumTVZdKdkS1PI19/JCxEi65Qd\nUEzOcFZhJvqZ3Y75+kBs6PfuJPGSqgG8dA9UYLbYKmaA5K50gNzrA1rhin0x\nEdAp\r\n=GzRq\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./index.js","types":"./index.d.ts","readme":"# @aws-sdk/client-swf-browser\n\n[![NPM version](https://img.shields.io/npm/v/@aws-sdk/client-swf-browser/preview.svg)](https://www.npmjs.com/package/@aws-sdk/client-swf-browser)\n[![NPM downloads](https://img.shields.io/npm/dm/@aws-sdk/client-swf-browser.svg)](https://www.npmjs.com/package/@aws-sdk/client-swf-browser)\n\n## Description\n\n<fullname>Amazon Simple Workflow Service</fullname> <p>The Amazon Simple Workflow Service (Amazon SWF) makes it easy to build applications that use Amazon's cloud to coordinate work across distributed components. In Amazon SWF, a <i>task</i> represents a logical unit of work that is performed by a component of your workflow. Coordinating tasks in a workflow involves managing intertask dependencies, scheduling, and concurrency in accordance with the logical flow of the application.</p> <p>Amazon SWF gives you full control over implementing tasks and coordinating them without worrying about underlying complexities such as tracking their progress and maintaining their state.</p> <p>This documentation serves as reference only. For a broader overview of the Amazon SWF programming model, see the <i> <a href=\"https://docs.aws.amazon.com/amazonswf/latest/developerguide/\">Amazon SWF Developer Guide</a> </i>.</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-swf-browser\n```\n\n## Getting Started\n\n### Import\n\nThe AWS SDK is modulized by clients and commands in CommonJS modules. To send a request, you only need to import the client(`SWFClient`) and the commands you need, for example `CountClosedWorkflowExecutionsCommand`:\n\n```javascript\n//JavaScript\nconst { SWFClient } = require(\"@aws-sdk/client-swf-browser/SWFClient\");\nconst {\n  CountClosedWorkflowExecutionsCommand\n} = require(\"@aws-sdk/client-swf-browser/commands/CountClosedWorkflowExecutionsCommand\");\n```\n\n```javascript\n//TypeScript\nimport { SWFClient } from \"@aws-sdk/client-swf-browser/SWFClient\";\nimport { CountClosedWorkflowExecutionsCommand } from \"@aws-sdk/client-swf-browser/commands/CountClosedWorkflowExecutionsCommand\";\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 sWF = new SWFClient({region: 'region'});\n//clients can be shared by different commands\nconst params = {\n  domain: /**a string value*/,\n};\nconst countClosedWorkflowExecutionsCommand = new CountClosedWorkflowExecutionsCommand(params);\nsWF.send(countClosedWorkflowExecutionsCommand).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 sWF.send(countClosedWorkflowExecutionsCommand);\n  // do something\n} catch (error) {\n  // error handling\n}\n```\n\n```javascript\n// callback\nsWF.send(countClosedWorkflowExecutionsCommand, (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-swf-browser/SWF\";\nconst sWF = new AWS.SWF({ region: \"region\" });\nsWF.countClosedWorkflowExecutions(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 sWF.send(countClosedWorkflowExecutionsCommand);\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-swf-browser' package is updated. To contribute to SDK you can checkout our [code generator package][].\n\n## License\n\nThis SDK is distributed under the\n[Apache License, Version 2.0](http://www.apache.org/licenses/LICENSE-2.0),\nsee LICENSE for more information.\n\n[code generator package]: https://github.com/aws/aws-sdk-js-v3/tree/master/packages/service-types-generator\n[api reference]: https://docs.aws.amazon.com/AWSJavaScriptSDK/latest/\n","scripts":{"test":"exit 0","clean":"npm run remove-definitions && npm run remove-maps && npm run remove-js","pretest":"tsc","remove-js":"rimraf *.js && rimraf ./commands/*.js && rimraf ./model/*.js && rimraf ./types/*.js","smoke-test":"karma start karma.conf","remove-maps":"rimraf *.js.map && rimraf ./commands/*.js.map && rimraf ./model/*.js.map && rimraf ./types/*.js.map","prepublishOnly":"tsc","remove-definitions":"rimraf *.d.ts && rimraf ./commands/*.d.ts && rimraf ./model/*.d.ts rimraf ./types/*.d.ts","build-documentation":"npm run clean && typedoc ./","remove-documentation":"rimraf ./docs"},"_npmUser":{"name":"aws-sdk-bot","email":"aws-sdk-js@amazon.com"},"deprecated":"The package @aws-sdk/client-swf-browser has been renamed to @aws-sdk/client-swf. Please install the renamed package.","_npmVersion":"6.9.0","description":"Browser SDK for Amazon Simple Workflow Service","directories":{},"_nodeVersion":"10.1.0","dependencies":{"tslib":"^1.8.0","@aws-sdk/types":"^0.1.0-preview.5","@aws-sdk/json-parser":"^0.1.0-preview.5","@aws-sdk/core-handler":"^0.1.0-preview.5","@aws-sdk/json-builder":"^0.1.0-preview.5","@aws-sdk/signature-v4":"^0.1.0-preview.7","@aws-sdk/config-resolver":"^0.1.0-preview.5","@aws-sdk/middleware-stack":"^0.1.0-preview.6","@aws-sdk/retry-middleware":"^0.1.0-preview.5","@aws-crypto/sha256-browser":"^0.1.0-preview.1","@aws-sdk/protocol-json-rpc":"^0.1.0-preview.6","@aws-sdk/util-utf8-browser":"^0.1.0-preview.3","@aws-sdk/fetch-http-handler":"^0.1.0-preview.5","@aws-sdk/signing-middleware":"^0.1.0-preview.7","@aws-sdk/url-parser-browser":"^0.1.0-preview.5","@aws-sdk/util-base64-browser":"^0.1.0-preview.3","@aws-sdk/middleware-serializer":"^0.1.0-preview.5","@aws-sdk/json-error-unmarshaller":"^0.1.0-preview.6","@aws-sdk/util-user-agent-browser":"^0.1.0-preview.6","@aws-sdk/stream-collector-browser":"^0.1.0-preview.5","@aws-sdk/util-body-length-browser":"^0.1.0-preview.3","@aws-sdk/middleware-content-length":"^0.1.0-preview.5","@aws-sdk/middleware-header-default":"^0.1.0-preview.5"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"rimraf":"^2.6.2","typedoc":"^0.14.2","typescript":"~3.4.0","@aws-sdk/client-documentation-generator":"^0.1.0-preview.3"},"_npmOperationalInternal":{"tmp":"tmp/client-swf-browser_0.1.0-preview.3_1568908719073_0.169112075792349","host":"s3://npm-registry-packages"}},"0.1.0-preview.4":{"name":"@aws-sdk/client-swf-browser","version":"0.1.0-preview.4","author":{"url":"https://aws.amazon.com/javascript/","name":"AWS SDK for JavaScript Team"},"license":"Apache-2.0","_id":"@aws-sdk/client-swf-browser@0.1.0-preview.4","maintainers":[{"name":"amzn-oss","email":"osa-3p@amazon.com"},{"name":"aws-sdk-bot","email":"aws-sdk-js@amazon.com"},{"name":"trivikr-aws","email":"trivikr@amazon.com"},{"name":"zheallan","email":"zheallan@amazon.com"}],"dist":{"shasum":"25b33dc8dec6103dcabd04719dfa769655e7c148","tarball":"https://registry.npmjs.org/@aws-sdk/client-swf-browser/-/client-swf-browser-0.1.0-preview.4.tgz","fileCount":1418,"integrity":"sha512-jsN2AULTldDzpcMR3tReQg9ReXNbxTTGYsrOHqEgYnXLSLAM53BvlqThcW3s4Pt1R64kc3c3MabEWw6/EH2OZA==","signatures":[{"sig":"MEQCIHm5RBIWkaifvDuS+a8YlCsi8RNWrj2xhielSkaHsbtMAiBiQC6iLPQwYJ92cYux6nwYfKHAtQ0swL+9x5lQyuDl7g==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1009399,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJduM+cCRA9TVsSAnZWagAAujcP/0i0GtfYKBVM3hhAVg1D\nvWLEF62gpvK4YRi1QVo/eHzZpwg5Y0BPD2Dxh0ovCjZZS2clX+LO5SZYA25c\nNGOPKMpvvXhSWXyST6vj5ExncObLJJur4U2ADWQQrrNZ9LUqzR8GtfNjv+3N\nLapXNWb4wTQ27NWHEg/7C1kBtB7Xj7ANiqBdIR2UHfV56231opXfdFzuS4UP\nOR1s3KV8TrH+VYyDeq/dpsJ909/qeW6tz6OjqHqreLBb8BDrS6ZqwSaznv8k\nLqKmhwlv+HwsMqbKW42sqRs2Wac0TREDIqSqg5oWH86QjTcQwXqjIEyDZwEG\nTjPGP/DYku7jyM+oemRN7vQenXw/G0b1SzPgmuzoztt33GU4k+m+/f5uREzI\n95K0vXk1f00ULXaY56vUdsgYBhKbuHHy8rmyzBWS08DOdW6igp1TVbkrd/lN\nZ0R1KBEOJpQzkBlNq3IRo1fswNDWmLu4JSeAzJlyKaXhmff5MYn6niWjx0A0\nYD5ND4j3+umO9C7fvrsRCYTuFQXnQRr8Cw1eU0KPhTZ2A6GfdJLOJmfGsoBB\nS7IA5UN05eNZqqCxdY8j/T+3S5zuKxnkUq4Y0t+yzQE32iarqbZ51xtU8fAG\nascDNwKTn7WMJmNHWYKsbfu9CQ8CU5Jewp50tzdPF0RUXQjOycTIM4s5nTOL\nA851\r\n=we0z\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./index.js","types":"./index.d.ts","readme":"# @aws-sdk/client-swf-browser\n\n[![NPM version](https://img.shields.io/npm/v/@aws-sdk/client-swf-browser/preview.svg)](https://www.npmjs.com/package/@aws-sdk/client-swf-browser)\n[![NPM downloads](https://img.shields.io/npm/dm/@aws-sdk/client-swf-browser.svg)](https://www.npmjs.com/package/@aws-sdk/client-swf-browser)\n\n## Description\n\n<fullname>Amazon Simple Workflow Service</fullname> <p>The Amazon Simple Workflow Service (Amazon SWF) makes it easy to build applications that use Amazon's cloud to coordinate work across distributed components. In Amazon SWF, a <i>task</i> represents a logical unit of work that is performed by a component of your workflow. Coordinating tasks in a workflow involves managing intertask dependencies, scheduling, and concurrency in accordance with the logical flow of the application.</p> <p>Amazon SWF gives you full control over implementing tasks and coordinating them without worrying about underlying complexities such as tracking their progress and maintaining their state.</p> <p>This documentation serves as reference only. For a broader overview of the Amazon SWF programming model, see the <i> <a href=\"https://docs.aws.amazon.com/amazonswf/latest/developerguide/\">Amazon SWF Developer Guide</a> </i>.</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-swf-browser\n```\n\n## Getting Started\n\n### Import\n\nThe AWS SDK is modulized by clients and commands in CommonJS modules. To send a request, you only need to import the client(`SWFClient`) and the commands you need, for example `CountClosedWorkflowExecutionsCommand`:\n\n```javascript\n//JavaScript\nconst {\n  SWFClient,\n  CountClosedWorkflowExecutionsCommand\n} = require(\"@aws-sdk/client-swf-browser\");\n```\n\n```javascript\n//TypeScript\nimport {\n  SWFClient,\n  CountClosedWorkflowExecutionsCommand\n} from \"@aws-sdk/client-swf-browser\";\n```\n\n### Usage\n\nTo send a request, you:\n\n- Initiate client with configuration (e.g. credentials, region). For more information you can refer to the [API reference][].\n- Initiate command with input parameters.\n- Call `send` operation on client with command object as input.\n- If you are using a custom http handler, you may call `destroy()` to close open connections.\n\n```javascript\nconst sWF = new SWFClient({region: 'region'});\n//clients can be shared by different commands\nconst params = {\n  domain: /**a string value*/,\n};\nconst countClosedWorkflowExecutionsCommand = new CountClosedWorkflowExecutionsCommand(params);\nsWF.send(countClosedWorkflowExecutionsCommand).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 sWF.send(countClosedWorkflowExecutionsCommand);\n  // do something\n} catch (error) {\n  // error handling\n}\n```\n\n```javascript\n// callback\nsWF.send(countClosedWorkflowExecutionsCommand, (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-swf-browser\";\nconst sWF = new AWS.SWF({ region: \"region\" });\nsWF.countClosedWorkflowExecutions(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 sWF.send(countClosedWorkflowExecutionsCommand);\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-swf-browser' package is updated. To contribute to SDK you can checkout our [code generator package][].\n\n## License\n\nThis SDK is distributed under the\n[Apache License, Version 2.0](http://www.apache.org/licenses/LICENSE-2.0),\nsee LICENSE for more information.\n\n[code generator package]: https://github.com/aws/aws-sdk-js-v3/tree/master/packages/service-types-generator\n[api reference]: https://docs.aws.amazon.com/AWSJavaScriptSDK/latest/\n","scripts":{"test":"exit 0","clean":"npm run remove-definitions && npm run remove-maps && npm run remove-js","pretest":"tsc","remove-js":"rimraf *.js && rimraf ./commands/*.js && rimraf ./model/*.js && rimraf ./types/*.js","smoke-test":"karma start karma.conf","remove-maps":"rimraf *.js.map && rimraf ./commands/*.js.map && rimraf ./model/*.js.map && rimraf ./types/*.js.map","prepublishOnly":"tsc","remove-definitions":"rimraf *.d.ts && rimraf ./commands/*.d.ts && rimraf ./model/*.d.ts rimraf ./types/*.d.ts","build-documentation":"npm run clean && typedoc ./","remove-documentation":"rimraf ./docs"},"_npmUser":{"name":"aws-sdk-bot","email":"aws-sdk-js@amazon.com"},"deprecated":"The package @aws-sdk/client-swf-browser has been renamed to @aws-sdk/client-swf. Please install the renamed package.","_npmVersion":"6.9.0","description":"Browser SDK for Amazon Simple Workflow Service","directories":{},"_nodeVersion":"10.1.0","dependencies":{"tslib":"^1.8.0","@aws-sdk/types":"^0.1.0-preview.6","@aws-sdk/json-parser":"^0.1.0-preview.6","@aws-sdk/core-handler":"^0.1.0-preview.6","@aws-sdk/json-builder":"^0.1.0-preview.6","@aws-sdk/signature-v4":"^0.1.0-preview.8","@aws-sdk/config-resolver":"^0.1.0-preview.6","@aws-sdk/middleware-stack":"^0.1.0-preview.7","@aws-sdk/retry-middleware":"^0.1.0-preview.6","@aws-crypto/sha256-browser":"^0.1.0-preview.1","@aws-sdk/protocol-json-rpc":"^0.1.0-preview.7","@aws-sdk/util-utf8-browser":"^0.1.0-preview.3","@aws-sdk/fetch-http-handler":"^0.1.0-preview.6","@aws-sdk/signing-middleware":"^0.1.0-preview.8","@aws-sdk/url-parser-browser":"^0.1.0-preview.6","@aws-sdk/util-base64-browser":"^0.1.0-preview.3","@aws-sdk/middleware-serializer":"^0.1.0-preview.6","@aws-sdk/json-error-unmarshaller":"^0.1.0-preview.7","@aws-sdk/util-user-agent-browser":"^0.1.0-preview.7","@aws-sdk/stream-collector-browser":"^0.1.0-preview.6","@aws-sdk/util-body-length-browser":"^0.1.0-preview.3","@aws-sdk/middleware-content-length":"^0.1.0-preview.6","@aws-sdk/middleware-header-default":"^0.1.0-preview.6"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"rimraf":"^2.6.2","typedoc":"^0.14.2","typescript":"~3.4.0","@aws-sdk/client-documentation-generator":"^0.1.0-preview.3"},"_npmOperationalInternal":{"tmp":"tmp/client-swf-browser_0.1.0-preview.4_1572392859965_0.7608383653999224","host":"s3://npm-registry-packages"}},"0.1.0-preview.5":{"name":"@aws-sdk/client-swf-browser","version":"0.1.0-preview.5","author":{"url":"https://aws.amazon.com/javascript/","name":"AWS SDK for JavaScript Team"},"license":"Apache-2.0","_id":"@aws-sdk/client-swf-browser@0.1.0-preview.5","maintainers":[{"name":"amzn-oss","email":"osa-3p@amazon.com"},{"name":"aws-sdk-bot","email":"aws-sdk-js@amazon.com"},{"name":"trivikr-aws","email":"trivikr@amazon.com"},{"name":"zheallan","email":"zheallan@amazon.com"}],"dist":{"shasum":"d89c92e1e4a81fd08a987b1df81127c5e1625ad1","tarball":"https://registry.npmjs.org/@aws-sdk/client-swf-browser/-/client-swf-browser-0.1.0-preview.5.tgz","fileCount":1418,"integrity":"sha512-rKVKapjIcvyY1In21HMpRDBDowJywydn/xjDZV2A+KHoYJ5u8r29i2FuhdoJ3/qqThZmDgwTE2eE78Hec2Evpg==","signatures":[{"sig":"MEUCICH7W243F94ik1yUKdYOl+asCNwuua95cf4cCACYX0BAAiEA4yG2VSJCoJRcyiPZbq50GEhmXIaleLeWt+r1sL9FUe8=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1009643,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdueKMCRA9TVsSAnZWagAATg0QAKAgkWTAboTgb7BpIvBu\nj2YhTFwLqcyEKbluITiQiO05OI6Xbg29xZj641WEwV5+obS3MkII5hZppIPT\n/sYhM8hier/VrMdqvbGyAo2P3TekOwIL23tHajzL2saNEhJSM1232EoEJynu\nXI62b3whieR5zpbwbL7Ab6Ins2BL3XO/yxvTf3nIxml2rI0VsWPIFW2P1g3t\ndrwFo/royBJkF5RWwJMMnEtsQ+1iWrqVvzV6orgn8ft3TLOds97nIR6abuVG\n3Y9JUdLcyBTlICTrYyCfyVltNpsu9d137B0ydag3/1LcocIscUp4MonzrAJF\n1Clnb2jWASHiOBbxSBqB2kJ2nd/wiOrq85DFJ4iJPURR8KgDUkWA64xUxvg1\nUXKzmt1Ke1w5MNqAYOg1BjbhBItmMjI/6T03MKoi7i7w/hNqMssXSR2mS653\neaCO1aE6KyAgQvqxgmT2SnlRhcfEYEG5GPVf7bJxXhoGnes84SKb6cIPP6/Q\nqQiYDzOny1vQLib8bjUkwMrKvYL3CLhVPxqvc0BExHJ/ZofyK4VRKWjQqsGk\nRieFNTv9KXZweoynkXzgVf8jXmADl9KOiCaCO+cxpDPfHWoy/veFXTwD9fCm\n7+7sh/OxPTgT//wvykfKfXxH72z6LTfVlhFqIj1x0Qnk0GCCdSC1s349RVPk\nZiVG\r\n=cEHA\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./index.js","types":"./index.d.ts","readme":"# @aws-sdk/client-swf-browser\n\n[![NPM version](https://img.shields.io/npm/v/@aws-sdk/client-swf-browser/preview.svg)](https://www.npmjs.com/package/@aws-sdk/client-swf-browser)\n[![NPM downloads](https://img.shields.io/npm/dm/@aws-sdk/client-swf-browser.svg)](https://www.npmjs.com/package/@aws-sdk/client-swf-browser)\n\n## Description\n\n<fullname>Amazon Simple Workflow Service</fullname> <p>The Amazon Simple Workflow Service (Amazon SWF) makes it easy to build applications that use Amazon's cloud to coordinate work across distributed components. In Amazon SWF, a <i>task</i> represents a logical unit of work that is performed by a component of your workflow. Coordinating tasks in a workflow involves managing intertask dependencies, scheduling, and concurrency in accordance with the logical flow of the application.</p> <p>Amazon SWF gives you full control over implementing tasks and coordinating them without worrying about underlying complexities such as tracking their progress and maintaining their state.</p> <p>This documentation serves as reference only. For a broader overview of the Amazon SWF programming model, see the <i> <a href=\"https://docs.aws.amazon.com/amazonswf/latest/developerguide/\">Amazon SWF Developer Guide</a> </i>.</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-swf-browser\n```\n\n## Getting Started\n\n### Import\n\nThe AWS SDK is modulized by clients and commands in CommonJS modules. To send a request, you only need to import the client(`SWFClient`) and the commands you need, for example `CountClosedWorkflowExecutionsCommand`:\n\n```javascript\n//JavaScript\nconst {\n  SWFClient,\n  CountClosedWorkflowExecutionsCommand\n} = require(\"@aws-sdk/client-swf-browser\");\n```\n\n```javascript\n//TypeScript\nimport {\n  SWFClient,\n  CountClosedWorkflowExecutionsCommand\n} from \"@aws-sdk/client-swf-browser\";\n```\n\n### Usage\n\nTo send a request, you:\n\n- Initiate client with configuration (e.g. credentials, region). For more information you can refer to the [API reference][].\n- Initiate command with input parameters.\n- Call `send` operation on client with command object as input.\n- If you are using a custom http handler, you may call `destroy()` to close open connections.\n\n```javascript\nconst sWF = new SWFClient({region: 'region'});\n//clients can be shared by different commands\nconst params = {\n  domain: /**a string value*/,\n};\nconst countClosedWorkflowExecutionsCommand = new CountClosedWorkflowExecutionsCommand(params);\nsWF.send(countClosedWorkflowExecutionsCommand).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 sWF.send(countClosedWorkflowExecutionsCommand);\n  // do something\n} catch (error) {\n  // error handling\n}\n```\n\n```javascript\n// callback\nsWF.send(countClosedWorkflowExecutionsCommand, (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-swf-browser\";\nconst sWF = new AWS.SWF({ region: \"region\" });\nsWF.countClosedWorkflowExecutions(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 sWF.send(countClosedWorkflowExecutionsCommand);\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-swf-browser' package is updated. To contribute to SDK you can checkout our [code generator package][].\n\n## License\n\nThis SDK is distributed under the\n[Apache License, Version 2.0](http://www.apache.org/licenses/LICENSE-2.0),\nsee LICENSE for more information.\n\n[code generator package]: https://github.com/aws/aws-sdk-js-v3/tree/master/packages/service-types-generator\n[api reference]: https://docs.aws.amazon.com/AWSJavaScriptSDK/latest/\n","scripts":{"test":"exit 0","clean":"npm run remove-definitions && npm run remove-maps && npm run remove-js","pretest":"tsc","remove-js":"rimraf *.js && rimraf ./commands/*.js && rimraf ./model/*.js && rimraf ./types/*.js","smoke-test":"karma start karma.conf","remove-maps":"rimraf *.js.map && rimraf ./commands/*.js.map && rimraf ./model/*.js.map && rimraf ./types/*.js.map","prepublishOnly":"tsc","remove-definitions":"rimraf *.d.ts && rimraf ./commands/*.d.ts && rimraf ./model/*.d.ts rimraf ./types/*.d.ts","build-documentation":"npm run clean && typedoc ./","remove-documentation":"rimraf ./docs"},"_npmUser":{"name":"aws-sdk-bot","email":"aws-sdk-js@amazon.com"},"deprecated":"The package @aws-sdk/client-swf-browser has been renamed to @aws-sdk/client-swf. Please install the renamed package.","_npmVersion":"6.9.0","description":"Browser SDK for Amazon Simple Workflow Service","directories":{},"_nodeVersion":"10.1.0","dependencies":{"tslib":"^1.8.0","@aws-sdk/types":"^0.1.0-preview.7","@aws-sdk/json-parser":"^0.1.0-preview.7","@aws-sdk/core-handler":"^0.1.0-preview.7","@aws-sdk/json-builder":"^0.1.0-preview.7","@aws-sdk/signature-v4":"^0.1.0-preview.9","@aws-sdk/config-resolver":"^0.1.0-preview.7","@aws-sdk/middleware-stack":"^0.1.0-preview.8","@aws-sdk/retry-middleware":"^0.1.0-preview.7","@aws-crypto/sha256-browser":"^0.1.0-preview.1","@aws-sdk/protocol-json-rpc":"^0.1.0-preview.8","@aws-sdk/util-utf8-browser":"^0.1.0-preview.3","@aws-sdk/fetch-http-handler":"^0.1.0-preview.7","@aws-sdk/signing-middleware":"^0.1.0-preview.9","@aws-sdk/url-parser-browser":"^0.1.0-preview.7","@aws-sdk/util-base64-browser":"^0.1.0-preview.3","@aws-sdk/middleware-serializer":"^0.1.0-preview.7","@aws-sdk/json-error-unmarshaller":"^0.1.0-preview.8","@aws-sdk/util-user-agent-browser":"^0.1.0-preview.8","@aws-sdk/stream-collector-browser":"^0.1.0-preview.7","@aws-sdk/util-body-length-browser":"^0.1.0-preview.3","@aws-sdk/middleware-content-length":"^0.1.0-preview.7","@aws-sdk/middleware-header-default":"^0.1.0-preview.7"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"rimraf":"^2.6.2","typedoc":"^0.14.2","typescript":"~3.4.0","@aws-sdk/client-documentation-generator":"^0.1.0-preview.3"},"_npmOperationalInternal":{"tmp":"tmp/client-swf-browser_0.1.0-preview.5_1572463244016_0.6098174843623494","host":"s3://npm-registry-packages"}},"0.1.0-preview.6":{"name":"@aws-sdk/client-swf-browser","version":"0.1.0-preview.6","author":{"url":"https://aws.amazon.com/javascript/","name":"AWS SDK for JavaScript Team"},"license":"Apache-2.0","_id":"@aws-sdk/client-swf-browser@0.1.0-preview.6","maintainers":[{"name":"amzn-oss","email":"osa-3p@amazon.com"},{"name":"aws-sdk-bot","email":"aws-sdk-js@amazon.com"},{"name":"trivikr-aws","email":"trivikr@amazon.com"},{"name":"zheallan","email":"zheallan@amazon.com"}],"dist":{"shasum":"ce031ae8fcc24c9889eb184cbb69b1e44ca714ff","tarball":"https://registry.npmjs.org/@aws-sdk/client-swf-browser/-/client-swf-browser-0.1.0-preview.6.tgz","fileCount":1418,"integrity":"sha512-mUju55bDOn93WBeGfe3IZVIw2WxeMtKiJS2I/fcrqBEjlpdwVo1rfCFuIRfep1VWczGXwYOI26a01LD8PLn6RQ==","signatures":[{"sig":"MEYCIQCdaNhjNh8izhLTMo+S5+t0LYy0bYlebHP5vrDQqd7jiwIhAPe5hysZEMMiwB6jkOstcq61Yrqg7fq91A6YR6KqvlGm","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1009913,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd1FPFCRA9TVsSAnZWagAAqBQP/A82B0imqiMq6OoM1Fak\nwfdd14OtENuZgRukFx/m2B+B7LR0muWNREqOVu1g/LnMCHwIDLQ3BN/Nak44\nDeoaZsImgx960rTRBXSF/pBlZtRLKvU0aemWIryQ2e93aQNiUlGtTkKKMxIC\nt8cM3wFndIPL0RBirDOn7rUBUw+81Pn4sPcjCfHNQAfEOntVT/Idn2GSdCnR\n0OeiqZDI65SICYSQH5xjM1mfGCqwqgdP5H18tqa5RCdACLABTmzaxiOdK4dO\nfFAwptN335UNTtimD9qNVH2MPpUIerB8Izd+08otNUP3b0GxMn5tftymwvhY\nG8SCa2dKhRQkkRHRgvt7mNkozTPTl/6bcgMBPj7LqxtJmm90GWj99PbddPW0\nBpAkNVLmoJSO3ETcczlAORywz4lJvrj1eFUtcEVj5mosCcLgD6N3eByO4QGC\nO04gpF/q7+BvPzryx3zS95iYyh/FyHyX1QV2wNtSwssLE/LbUtBdtZK+Kagk\ny5K0qnAiNaRIMjD37XskDhyvAIbQJVgh0mrGvJWJB2Z+zmTcjQU/Hssd5ro1\nvPgjaZKyWCW+iA1f93AAhhYHJZ1i5M4Bv8y8qfejrQ2TAuWGWn5Z8sEkvZI8\nAKufjN75K0HH6iqVSBKKR66nqNblwj0HH7c4PWE3BmPdsZ9116S2jB2klT+G\nTEwr\r\n=3Gln\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./index.js","types":"./index.d.ts","readme":"# @aws-sdk/client-swf-browser\n\n[![NPM version](https://img.shields.io/npm/v/@aws-sdk/client-swf-browser/preview.svg)](https://www.npmjs.com/package/@aws-sdk/client-swf-browser)\n[![NPM downloads](https://img.shields.io/npm/dm/@aws-sdk/client-swf-browser.svg)](https://www.npmjs.com/package/@aws-sdk/client-swf-browser)\n\n## Description\n\n<fullname>Amazon Simple Workflow Service</fullname> <p>The Amazon Simple Workflow Service (Amazon SWF) makes it easy to build applications that use Amazon's cloud to coordinate work across distributed components. In Amazon SWF, a <i>task</i> represents a logical unit of work that is performed by a component of your workflow. Coordinating tasks in a workflow involves managing intertask dependencies, scheduling, and concurrency in accordance with the logical flow of the application.</p> <p>Amazon SWF gives you full control over implementing tasks and coordinating them without worrying about underlying complexities such as tracking their progress and maintaining their state.</p> <p>This documentation serves as reference only. For a broader overview of the Amazon SWF programming model, see the <i> <a href=\"https://docs.aws.amazon.com/amazonswf/latest/developerguide/\">Amazon SWF Developer Guide</a> </i>.</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-swf-browser\n```\n\n## Getting Started\n\n### Import\n\nThe AWS SDK is modulized by clients and commands in CommonJS modules. To send a request, you only need to import the client(`SWFClient`) and the commands you need, for example `CountClosedWorkflowExecutionsCommand`:\n\n```javascript\n//JavaScript\nconst {\n  SWFClient,\n  CountClosedWorkflowExecutionsCommand\n} = require(\"@aws-sdk/client-swf-browser\");\n```\n\n```javascript\n//TypeScript\nimport {\n  SWFClient,\n  CountClosedWorkflowExecutionsCommand\n} from \"@aws-sdk/client-swf-browser\";\n```\n\n### Usage\n\nTo send a request, you:\n\n- Initiate client with configuration (e.g. credentials, region). For more information you can refer to the [API reference][].\n- Initiate command with input parameters.\n- Call `send` operation on client with command object as input.\n- If you are using a custom http handler, you may call `destroy()` to close open connections.\n\n```javascript\nconst sWF = new SWFClient({region: 'region'});\n//clients can be shared by different commands\nconst params = {\n  domain: /**a string value*/,\n};\nconst countClosedWorkflowExecutionsCommand = new CountClosedWorkflowExecutionsCommand(params);\nsWF.send(countClosedWorkflowExecutionsCommand).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 sWF.send(countClosedWorkflowExecutionsCommand);\n  // do something\n} catch (error) {\n  // error handling\n}\n```\n\n```javascript\n// callback\nsWF.send(countClosedWorkflowExecutionsCommand, (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-swf-browser\";\nconst sWF = new AWS.SWF({ region: \"region\" });\nsWF.countClosedWorkflowExecutions(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 sWF.send(countClosedWorkflowExecutionsCommand);\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-swf-browser' package is updated. To contribute to SDK you can checkout our [code generator package][].\n\n## License\n\nThis SDK is distributed under the\n[Apache License, Version 2.0](http://www.apache.org/licenses/LICENSE-2.0),\nsee LICENSE for more information.\n\n[code generator package]: https://github.com/aws/aws-sdk-js-v3/tree/master/packages/service-types-generator\n[api reference]: https://docs.aws.amazon.com/AWSJavaScriptSDK/latest/\n","scripts":{"test":"exit 0","clean":"npm run remove-definitions && npm run remove-maps && npm run remove-js","pretest":"tsc","remove-js":"rimraf *.js && rimraf ./commands/*.js && rimraf ./model/*.js && rimraf ./types/*.js","smoke-test":"karma start karma.conf","remove-maps":"rimraf *.js.map && rimraf ./commands/*.js.map && rimraf ./model/*.js.map && rimraf ./types/*.js.map","prepublishOnly":"tsc","remove-definitions":"rimraf *.d.ts && rimraf ./commands/*.d.ts && rimraf ./model/*.d.ts rimraf ./types/*.d.ts","build-documentation":"npm run clean && typedoc ./","remove-documentation":"rimraf ./docs"},"_npmUser":{"name":"aws-sdk-bot","email":"aws-sdk-js@amazon.com"},"deprecated":"The package @aws-sdk/client-swf-browser has been renamed to @aws-sdk/client-swf. Please install the renamed package.","_npmVersion":"6.9.0","description":"Browser SDK for Amazon Simple Workflow Service","directories":{},"_nodeVersion":"10.16.3","dependencies":{"tslib":"^1.8.0","@aws-sdk/types":"^0.1.0-preview.7","@aws-sdk/json-parser":"^0.1.0-preview.7","@aws-sdk/core-handler":"^0.1.0-preview.7","@aws-sdk/json-builder":"^0.1.0-preview.7","@aws-sdk/signature-v4":"^0.1.0-preview.10","@aws-sdk/config-resolver":"^0.1.0-preview.7","@aws-sdk/middleware-stack":"^0.1.0-preview.9","@aws-sdk/retry-middleware":"^0.1.0-preview.7","@aws-crypto/sha256-browser":"^0.1.0-preview.1","@aws-sdk/protocol-json-rpc":"^0.1.0-preview.8","@aws-sdk/util-utf8-browser":"^0.1.0-preview.3","@aws-sdk/fetch-http-handler":"^0.1.0-preview.8","@aws-sdk/signing-middleware":"^0.1.0-preview.10","@aws-sdk/url-parser-browser":"^0.1.0-preview.7","@aws-sdk/util-base64-browser":"^0.1.0-preview.3","@aws-sdk/middleware-serializer":"^0.1.0-preview.7","@aws-sdk/json-error-unmarshaller":"^0.1.0-preview.8","@aws-sdk/util-user-agent-browser":"^0.1.0-preview.9","@aws-sdk/stream-collector-browser":"^0.1.0-preview.7","@aws-sdk/util-body-length-browser":"^0.1.0-preview.3","@aws-sdk/middleware-content-length":"^0.1.0-preview.7","@aws-sdk/middleware-header-default":"^0.1.0-preview.7"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"rimraf":"^2.6.2","typedoc":"^0.14.2","typescript":"~3.4.0","@aws-sdk/client-documentation-generator":"^0.1.0-preview.3"},"_npmOperationalInternal":{"tmp":"tmp/client-swf-browser_0.1.0-preview.6_1574196164799_0.30579456269645533","host":"s3://npm-registry-packages"}}},"time":{"created":"2019-09-09T17:45:16.618Z","modified":"2025-03-27T18:43:13.643Z","0.1.0-preview.2":"2019-09-09T17:45:16.958Z","0.1.0-preview.3":"2019-09-19T15:58:39.268Z","0.1.0-preview.4":"2019-10-29T23:47:40.229Z","0.1.0-preview.5":"2019-10-30T19:20:44.144Z","0.1.0-preview.6":"2019-11-19T20:42:45.020Z"},"author":{"url":"https://aws.amazon.com/javascript/","name":"AWS SDK for JavaScript Team"},"license":"Apache-2.0","description":"Browser SDK for Amazon Simple Workflow Service","maintainers":[{"email":"osa-3p@amazon.com","name":"amzn-oss"},{"email":"aws-sdk-js-automation@amazon.com","name":"aws-sdk-bot"}],"readme":"","readmeFilename":""}