{"_id":"@aws-sdk/client-eventbridge-browser","_rev":"19-2907db66a676d349990276f85077b6fa","name":"@aws-sdk/client-eventbridge-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-eventbridge-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-eventbridge-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":"e505e8142a4209ccdc885155a672fd650afdb84c","tarball":"https://registry.npmjs.org/@aws-sdk/client-eventbridge-browser/-/client-eventbridge-browser-0.1.0-preview.2.tgz","fileCount":948,"integrity":"sha512-ZokaPjbVMScUSqP/igz1wxzFrJAOtKBI0PQSWpS3Iyljtb+TK/cTjGZBrB135jyJ6bhAJuOX5+r/us5k1PcsIA==","signatures":[{"sig":"MEQCIDkTsK2FTMPMY6rRU6en2x6oGR5JKOMl9gYzjfKjqFWRAiBVOq4nwaNuoqQ+B+Zwc8x4IZdSIL4gOG9vnKjb3EIKpg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":530705,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJddpPzCRA9TVsSAnZWagAA94gP/0SxO6WzmgJddj3XUxNh\nqOr+R68u6JkN7vjfFhFVgJfz4z7o7LnGdEoB3+jkcGtdReS+rkmBfaTwxKMs\nb8IUdSKxPC3WJRSWNmK1aOk9i68BAu+cO3ABfec3qnR9eRA4z5ArOgL4D3dX\n9z4R6P1maAko3cv5CGTJqt8g8kfBAy9nigDNJkNGLD3yj37eGG8ITo/PZPz5\niyjOPzY5GhYFacCwEqwDMp+zwvofVladcveZqnnyOfGZQWf2NO+uYMeEIVmB\npMxKMfdBCrztcjqIxeNEHcO2PfldkyjBJWOUHvPwV2yaEJH/M4lk+XCCPuXV\n6YJIVn9TE9zacOuc+mcibL3oEqjH/PY/wrXxxDOlK/Wg/5fzUPF004v6+m7u\n7OnLy21aOLtPt0T+Ic0AvtDFgPBNouYDuLMSC4KDyVh9SrFnrSy2WNw5U6+c\nmSkMKKbJrRv89pgbQ05eY69bi61nolbvQq33cL+FXdLoKOh4HW3kOBetPOgg\n4ODBZddFoBzAe7k4G4wYf+NbNCC7zOWOKTH6CwMJ7ZmB175ZgnbNifCzbl4g\nIV4FK23/O80qmjPGpqTuErDHNW6uZu+iF9IO2PqQvb6o+F7Y0O75haFH7uYO\nPrUQtLDJQVJz5T4aJXoPkMFNZd0FwDhx9ZKMVJhaAR7KtL4iu6OdAMdgObmx\nO8R6\r\n=p47F\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-eventbridge-browser has been renamed to @aws-sdk/client-eventbridge. Please install the renamed package.","_npmVersion":"6.9.0","description":"Browser SDK for Amazon EventBridge","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":{"jest":"^24.7.1","karma":"^4.1.0","rimraf":"^2.6.2","typedoc":"^0.14.2","puppeteer":"^1.0.0","typescript":"~3.4.0","@types/jest":"^24.0.12","jasmine-core":"^3.4.0","karma-jasmine":"^2.0.1","karma-coverage":"^1.1.1","karma-typescript":"^4.0.0","karma-chrome-launcher":"^3.0.0","@aws-sdk/karma-credential-loader":"^0.1.0-preview.6","@aws-sdk/client-documentation-generator":"^0.1.0-preview.3"},"_npmOperationalInternal":{"tmp":"tmp/client-eventbridge-browser_0.1.0-preview.2_1568052211210_0.8846975118523992","host":"s3://npm-registry-packages"}},"0.1.0-preview.3":{"name":"@aws-sdk/client-eventbridge-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-eventbridge-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":"53c5a94b64090b2db34492c243832c17483e925e","tarball":"https://registry.npmjs.org/@aws-sdk/client-eventbridge-browser/-/client-eventbridge-browser-0.1.0-preview.3.tgz","fileCount":948,"integrity":"sha512-DvjyFPh0MJyEyNX8f8iOuy2PBcfqMY7yET8nzGOnb7z/y2hrmu5KsQTSuT2RQWO0H44bcr4DzWX20vEB0V4d1g==","signatures":[{"sig":"MEYCIQC2D6s0XET2unxzt/50rMP1e35aIZHegv5M4F/QinriQQIhAPfdaECoGJrGos6YmV+s/aq50Sw27G/NgRVaHlRXTRpr","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":530925,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdg6QDCRA9TVsSAnZWagAAASQP/2JnGcoXxKmK++6MXIWe\nS8iwWLhjc44nwiInWMASYpxbK5L7k9RHV0CvkNlPcWZPpgLBfcrDMrMoFjXP\nyGAIgEyq/AVOmeuWUUiPo36f4Kb+nJ7l1NKINkyxzvreG8YATutWdJ9QIG4p\ngB9ZHp9oXoxaAoGZ1vd3egZQYyBbYkTQUGLsUFBATmxtB7ddKUgWtFFcIOzL\n7T1PpZ4C6TQFlVQRPPMgFrYDdzEhNKpbxeSaqd/7i9AACC75WvByuNaWMhJa\nJTppm76e2TrFKDLTiDXo5O7ypszeYUvrSPilO0ojEsqQEE+ZxrKMl0p/kzDc\nK+mvx9nX17yScyjiCsRnOE3xNt99YLRfJG+pEuMdODRxZvE8wjdu5MO3V47O\nDPjcvMJG4ou3QhEDem1A1d3iUFJc/ClR8POto/Oy9mLAyT8641W0bhd8Vbmw\n44ft5EqR+rLK1QTXgPGxyUk1SN/1cLHbv/dWRwyEmJa6WE3Nxi19sMs2iI94\nVvlXRk/aKf88tKLrq1MxQo1IykfqT8UUkg7vmbojNRnByTUGVjVb8LQti7PF\ntOaNWUWYyfaEBpZNpIUNwA529PlFT8TIfsZDkZz33tU8dAz7rbL/7cm85OsT\n7T/j3OfgaOYnfglFOVhZSN9MCR3+fyW/qrn5DFtSfYOCbm/enlLbTlPQdme1\nsTkd\r\n=otjL\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./index.js","types":"./index.d.ts","readme":"# @aws-sdk/client-eventbridge-browser\n\n[![NPM version](https://img.shields.io/npm/v/@aws-sdk/client-eventbridge-browser/preview.svg)](https://www.npmjs.com/package/@aws-sdk/client-eventbridge-browser)\n[![NPM downloads](https://img.shields.io/npm/dm/@aws-sdk/client-eventbridge-browser.svg)](https://www.npmjs.com/package/@aws-sdk/client-eventbridge-browser)\n\n## Description\n\n<p>Amazon EventBridge helps you to respond to state changes in your AWS resources. When your resources change state, they automatically send events into an event stream. You can create rules that match selected events in the stream and route them to targets to take action. You can also use rules to take action on a predetermined schedule. For example, you can configure rules to:</p> <ul> <li> <p>Automatically invoke an AWS Lambda function to update DNS entries when an event notifies you that Amazon EC2 instance enters the running state</p> </li> <li> <p>Direct specific API records from AWS CloudTrail to an Amazon Kinesis data stream for detailed analysis of potential security or availability risks</p> </li> <li> <p>Periodically invoke a built-in target to create a snapshot of an Amazon EBS volume</p> </li> </ul> <p>For more information about the features of Amazon EventBridge, see the <a href=\"https://docs.aws.amazon.com/eventbridge/latest/userguide/\">Amazon EventBridge User Guide</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-eventbridge-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(`EventBridgeClient`) and the commands you need, for example `ActivateEventSourceCommand`:\n\n```javascript\n//JavaScript\nconst {\n  EventBridgeClient\n} = require(\"@aws-sdk/client-eventbridge-browser/EventBridgeClient\");\nconst {\n  ActivateEventSourceCommand\n} = require(\"@aws-sdk/client-eventbridge-browser/commands/ActivateEventSourceCommand\");\n```\n\n```javascript\n//TypeScript\nimport { EventBridgeClient } from \"@aws-sdk/client-eventbridge-browser/EventBridgeClient\";\nimport { ActivateEventSourceCommand } from \"@aws-sdk/client-eventbridge-browser/commands/ActivateEventSourceCommand\";\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 eventBridge = new EventBridgeClient({region: 'region'});\n//clients can be shared by different commands\nconst params = {\n  Name: /**a string value*/,\n};\nconst activateEventSourceCommand = new ActivateEventSourceCommand(params);\neventBridge.send(activateEventSourceCommand).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 eventBridge.send(activateEventSourceCommand);\n  // do something\n} catch (error) {\n  // error handling\n}\n```\n\n```javascript\n// callback\neventBridge.send(activateEventSourceCommand, (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-eventbridge-browser/EventBridge\";\nconst eventBridge = new AWS.EventBridge({ region: \"region\" });\neventBridge.activateEventSource(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 eventBridge.send(activateEventSourceCommand);\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-eventbridge-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-eventbridge-browser has been renamed to @aws-sdk/client-eventbridge. Please install the renamed package.","_npmVersion":"6.9.0","description":"Browser SDK for Amazon EventBridge","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":{"jest":"^24.7.1","karma":"^4.1.0","rimraf":"^2.6.2","typedoc":"^0.14.2","puppeteer":"^1.0.0","typescript":"~3.4.0","@types/jest":"^24.0.12","jasmine-core":"^3.4.0","karma-jasmine":"^2.0.1","karma-coverage":"^1.1.1","karma-typescript":"^4.0.0","karma-chrome-launcher":"^3.0.0","@aws-sdk/karma-credential-loader":"^0.1.0-preview.7","@aws-sdk/client-documentation-generator":"^0.1.0-preview.3"},"_npmOperationalInternal":{"tmp":"tmp/client-eventbridge-browser_0.1.0-preview.3_1568908291295_0.8206089913055388","host":"s3://npm-registry-packages"}},"0.1.0-preview.4":{"name":"@aws-sdk/client-eventbridge-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-eventbridge-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":"56e9fe1d35a7d44f814de010daeb1fda509459c7","tarball":"https://registry.npmjs.org/@aws-sdk/client-eventbridge-browser/-/client-eventbridge-browser-0.1.0-preview.4.tgz","fileCount":948,"integrity":"sha512-6QEXnXtz7UYU2Gz4Do4NQI2yU0hMKFm56hc7ngV2YvOFrJeSpOONFMPwImzBHrnAPVnSHcc/vB7mzm343aMWYA==","signatures":[{"sig":"MEQCICymgqWpXutWJWVEUR5CaUBpmUgL8wipWtsgKWueZFjaAiAg/WDjjlxg2HRr/G+90mnLk1K46jsh/ScH4g4vC4aDNA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":530931,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJduNMfCRA9TVsSAnZWagAAP1oP/0O9ibAFD/W1ysmqgY7o\nUVLE8V8eHleBMvx1o3N35BbJgR1CfvEO6hiLmFAhcjIkCDFdmsl2fYhLKb9t\ncRfp7xSGUpkLMo2pwJjNG1+p0fsWw5AIYT2WSuopRoL25CErtp3XHnPZ/myD\nogkwVw2mMP0wQFRUgm4EDDqnuh2sM8lm/x2mNSOeb6VzvJkBpZFpmJdDxcmr\nMHZac2CBHpeN4m6BPX3P9V56SecOlaIMWEcLhDpbrtATN74vIw5SNOjwYpTB\nq+G/HBe+8m2OcRM9kPJGLxGZ16ozy3S83hGpNMZG5xpD9Z8ydLgHJEm+TjG6\nXsqz8H7+GLE367IO4NUYHI28HEIlh/U8e66vFf0p7tiD/3VnX6KBL0XFAx1c\nhm3l10i4je4vzJNf2LCIaDz5L5MTks24vcksxE4uJ6ZXJGeCwqFywNfIpQf5\naPTDWB+QqHVOZXrlqCEoVNextLDS4SIrmsQ2YXLmapeSMxvq9Up1f+HorzWF\ncxuIOafhJfymKr4B19iF5Rdmgri6seUXjsjr6r7QmrUZesxcZdAdlW/Oivb+\nIa9SQLglQuC1xCylJ82C8f8mjlh00TANyzLgQu5b2c1OWYuP6Rrwfthq8zuP\nP7ocma/WWw0UDbd6b62Oqn9XH7T4brHECgnnfrg0df9koi3vtnwabFkMYr4p\n9BBL\r\n=H5M1\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./index.js","types":"./index.d.ts","readme":"# @aws-sdk/client-eventbridge-browser\n\n[![NPM version](https://img.shields.io/npm/v/@aws-sdk/client-eventbridge-browser/preview.svg)](https://www.npmjs.com/package/@aws-sdk/client-eventbridge-browser)\n[![NPM downloads](https://img.shields.io/npm/dm/@aws-sdk/client-eventbridge-browser.svg)](https://www.npmjs.com/package/@aws-sdk/client-eventbridge-browser)\n\n## Description\n\n<p>Amazon EventBridge helps you to respond to state changes in your AWS resources. When your resources change state, they automatically send events into an event stream. You can create rules that match selected events in the stream and route them to targets to take action. You can also use rules to take action on a predetermined schedule. For example, you can configure rules to:</p> <ul> <li> <p>Automatically invoke an AWS Lambda function to update DNS entries when an event notifies you that Amazon EC2 instance enters the running state</p> </li> <li> <p>Direct specific API records from AWS CloudTrail to an Amazon Kinesis data stream for detailed analysis of potential security or availability risks</p> </li> <li> <p>Periodically invoke a built-in target to create a snapshot of an Amazon EBS volume</p> </li> </ul> <p>For more information about the features of Amazon EventBridge, see the <a href=\"https://docs.aws.amazon.com/eventbridge/latest/userguide/\">Amazon EventBridge User Guide</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-eventbridge-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(`EventBridgeClient`) and the commands you need, for example `ActivateEventSourceCommand`:\n\n```javascript\n//JavaScript\nconst {\n  EventBridgeClient,\n  ActivateEventSourceCommand\n} = require(\"@aws-sdk/client-eventbridge-browser\");\n```\n\n```javascript\n//TypeScript\nimport {\n  EventBridgeClient,\n  ActivateEventSourceCommand\n} from \"@aws-sdk/client-eventbridge-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 eventBridge = new EventBridgeClient({region: 'region'});\n//clients can be shared by different commands\nconst params = {\n  Name: /**a string value*/,\n};\nconst activateEventSourceCommand = new ActivateEventSourceCommand(params);\neventBridge.send(activateEventSourceCommand).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 eventBridge.send(activateEventSourceCommand);\n  // do something\n} catch (error) {\n  // error handling\n}\n```\n\n```javascript\n// callback\neventBridge.send(activateEventSourceCommand, (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-eventbridge-browser\";\nconst eventBridge = new AWS.EventBridge({ region: \"region\" });\neventBridge.activateEventSource(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 eventBridge.send(activateEventSourceCommand);\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-eventbridge-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-eventbridge-browser has been renamed to @aws-sdk/client-eventbridge. Please install the renamed package.","_npmVersion":"6.9.0","description":"Browser SDK for Amazon EventBridge","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":{"jest":"^24.7.1","karma":"^4.1.0","rimraf":"^2.6.2","typedoc":"^0.14.2","puppeteer":"^1.0.0","typescript":"~3.4.0","@types/jest":"^24.0.12","jasmine-core":"^3.4.0","karma-jasmine":"^2.0.1","karma-coverage":"^1.1.1","karma-typescript":"^4.0.0","karma-chrome-launcher":"^3.0.0","@aws-sdk/karma-credential-loader":"^0.1.0-preview.8","@aws-sdk/client-documentation-generator":"^0.1.0-preview.3"},"_npmOperationalInternal":{"tmp":"tmp/client-eventbridge-browser_0.1.0-preview.4_1572393759322_0.4329215942518785","host":"s3://npm-registry-packages"}},"0.1.0-preview.5":{"name":"@aws-sdk/client-eventbridge-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-eventbridge-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":"5a0f8f49ed438d598f3e1991318223d0e21288f4","tarball":"https://registry.npmjs.org/@aws-sdk/client-eventbridge-browser/-/client-eventbridge-browser-0.1.0-preview.5.tgz","fileCount":948,"integrity":"sha512-O/CcRSPT9QX9OxLP/d7FGuKbO6RjY9JTvjCLF2UejrF18LKLY4leaB/dUBCiIy2FVazEU0iGiVsz0bWhFjtC4g==","signatures":[{"sig":"MEQCIBRIg7Ds3SXKUCYgoEUW14/HNb7kFjU4OqSUmiOso4azAiAKfdGY1wZRhOx6xlMCGNk8Gemg3mpykW3hSrHTmKNB2g==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":531175,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdueasCRA9TVsSAnZWagAAeW8P/1UFGtQz18V9AfcVuzDW\nSCVwBjVOsje0E1toAG9npbmRM87W+il/ltyo27EqU5+DuwNUygM5QMw3VQMH\nVEFrZv88PpNknJVwBLciT6bHmwBQw8JfB8MAA7rAmrV4Bd82nY1AlMv8491l\nuto4qFL5ou+K8qdyNpaaXpvOErZiNukERZwRnpLjOPblNc985Tb6tYSKH+Jb\np/JgxhChPVxwY6nmtmiyjWZ6dmGXk8ij8PPLTCQtaKs5PUPisGddJP4lvcua\nSICGU0Sj2cPduJmL2zFhgdc57QtoA02Jy/Sqna/q7tptXo56N7c5nLL9apv/\nbITbCv6KD2wcYznZwajXg/nvjYFbeL4pzhbIbecAKexmRxs2HbiGUcAmopjF\nDho3pSZY8Ysi+Cad3kTw7aMqLshvCa7P6T0VIkQgohKTN5x6E+CjQHTQt2MT\nVxP71dwoMZoGK32kt5ow6IkSbYDo72kSujmfAUMkS2f0v2+mSfBhUvtDpe5M\n+UR+DodRfp+PWD/Yko9UzaatloV+67+xdLnLDw1Tih2LcMmss9ldJkX2r9Li\nj/yikNVSVQL/D1e/L3qSWNEPpgd5hzPa1Y1jHfluyqVY32M/T0Ufse8BxUGA\n7tOB4TyQZrcbmesOlsUPXe9CBM3Zq3ye13KV7J5Fg74CYAniMPwxVGSvUBIx\nw26i\r\n=gi9u\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./index.js","types":"./index.d.ts","readme":"# @aws-sdk/client-eventbridge-browser\n\n[![NPM version](https://img.shields.io/npm/v/@aws-sdk/client-eventbridge-browser/preview.svg)](https://www.npmjs.com/package/@aws-sdk/client-eventbridge-browser)\n[![NPM downloads](https://img.shields.io/npm/dm/@aws-sdk/client-eventbridge-browser.svg)](https://www.npmjs.com/package/@aws-sdk/client-eventbridge-browser)\n\n## Description\n\n<p>Amazon EventBridge helps you to respond to state changes in your AWS resources. When your resources change state, they automatically send events into an event stream. You can create rules that match selected events in the stream and route them to targets to take action. You can also use rules to take action on a predetermined schedule. For example, you can configure rules to:</p> <ul> <li> <p>Automatically invoke an AWS Lambda function to update DNS entries when an event notifies you that Amazon EC2 instance enters the running state</p> </li> <li> <p>Direct specific API records from AWS CloudTrail to an Amazon Kinesis data stream for detailed analysis of potential security or availability risks</p> </li> <li> <p>Periodically invoke a built-in target to create a snapshot of an Amazon EBS volume</p> </li> </ul> <p>For more information about the features of Amazon EventBridge, see the <a href=\"https://docs.aws.amazon.com/eventbridge/latest/userguide/\">Amazon EventBridge User Guide</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-eventbridge-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(`EventBridgeClient`) and the commands you need, for example `ActivateEventSourceCommand`:\n\n```javascript\n//JavaScript\nconst {\n  EventBridgeClient,\n  ActivateEventSourceCommand\n} = require(\"@aws-sdk/client-eventbridge-browser\");\n```\n\n```javascript\n//TypeScript\nimport {\n  EventBridgeClient,\n  ActivateEventSourceCommand\n} from \"@aws-sdk/client-eventbridge-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 eventBridge = new EventBridgeClient({region: 'region'});\n//clients can be shared by different commands\nconst params = {\n  Name: /**a string value*/,\n};\nconst activateEventSourceCommand = new ActivateEventSourceCommand(params);\neventBridge.send(activateEventSourceCommand).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 eventBridge.send(activateEventSourceCommand);\n  // do something\n} catch (error) {\n  // error handling\n}\n```\n\n```javascript\n// callback\neventBridge.send(activateEventSourceCommand, (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-eventbridge-browser\";\nconst eventBridge = new AWS.EventBridge({ region: \"region\" });\neventBridge.activateEventSource(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 eventBridge.send(activateEventSourceCommand);\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-eventbridge-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-eventbridge-browser has been renamed to @aws-sdk/client-eventbridge. Please install the renamed package.","_npmVersion":"6.9.0","description":"Browser SDK for Amazon EventBridge","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":{"jest":"^24.7.1","karma":"^4.1.0","rimraf":"^2.6.2","typedoc":"^0.14.2","puppeteer":"^1.0.0","typescript":"~3.4.0","@types/jest":"^24.0.12","jasmine-core":"^3.4.0","karma-jasmine":"^2.0.1","karma-coverage":"^1.1.1","karma-typescript":"^4.0.0","karma-chrome-launcher":"^3.0.0","@aws-sdk/karma-credential-loader":"^0.1.0-preview.9","@aws-sdk/client-documentation-generator":"^0.1.0-preview.3"},"_npmOperationalInternal":{"tmp":"tmp/client-eventbridge-browser_0.1.0-preview.5_1572464299440_0.841616315347518","host":"s3://npm-registry-packages"}},"0.1.0-preview.6":{"name":"@aws-sdk/client-eventbridge-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-eventbridge-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":"4c4813b11827d996824f7348409f6414b5fe1f0d","tarball":"https://registry.npmjs.org/@aws-sdk/client-eventbridge-browser/-/client-eventbridge-browser-0.1.0-preview.6.tgz","fileCount":948,"integrity":"sha512-EPbVjEKCk3Bkd5cZKbOwuGhoSNgga9qPpM0CaPbqVRmWc8cWrz5euOE+cpmSzAZqFVikG2QbX7lkpxG8Px6myA==","signatures":[{"sig":"MEQCIDXFgwssLIEtJLeo/QZ9VRrS7s+ynqZq7oQPI050tqByAiAi+D2242bLY4X9FgQPzETL2Imb9kZ2bDzfS/kBDllD0g==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":531446,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd1FVnCRA9TVsSAnZWagAAtXAP/iV3a9wdGLY64iGbP82k\nnOkrthJEqUVVGsh4Q4bfW9OfkId7eRHCZu491XF1gS/WbBzy7fyJMHBPhnh4\na+E9Hqpq+P7GNR7HOvYT9uq6DP3ES0NfhSzv+l2Ws1OYlbMqzQ3S+0apAokW\ntSqUrSjKLP2VrBirB1lEFj7JXmstJ7dJtkvwFL9ik25RqnsJyRpsmWxE4WH7\nksPfsAMa9qEoObVXXYGxljN6fG5Yf3NGVyW0VvHZdmVo2czWbge+JNQ04QOh\nAp3vt+vwxo7Zf27BrM9BS95mSLdACClXH+ewFHQC1zYUjqztKgR6g0iA+LyW\nLvB7wkEvT0eYsqqvSl67ThSDgMwX3kf5oP4yAu3GpLeMHkVUds8R892hYinV\nr9Bd3+TH6mYXtGi7QrLoNL7XdrrMW/IokElXOtWlxVIy8ZTDE3g5JfKYEEJe\nqzpDiVW6h0HaUZ70Bsa/TXIMqrQGqUSjty2AoYmB2Wch7BU/zCHT5C8G27Ki\ngyv3b6KoQbyh37Hj19zNAoXsX3wOoNg9OUDXeoDn8USUp0c93oZDX4qF4vy1\nRzAfIg5eQ2p4ZDXJsbQ4OGa2iHAt4M/HHG8m1SuYHze5HmegNjKT6upgWDCc\nhoacN92uRHg8z8/23hp6hhN5v5WIV9N+d/wbJ1jLAkLWZiYGLXd24lHVvDgg\nXiOI\r\n=ffAM\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./index.js","types":"./index.d.ts","readme":"# @aws-sdk/client-eventbridge-browser\n\n[![NPM version](https://img.shields.io/npm/v/@aws-sdk/client-eventbridge-browser/preview.svg)](https://www.npmjs.com/package/@aws-sdk/client-eventbridge-browser)\n[![NPM downloads](https://img.shields.io/npm/dm/@aws-sdk/client-eventbridge-browser.svg)](https://www.npmjs.com/package/@aws-sdk/client-eventbridge-browser)\n\n## Description\n\n<p>Amazon EventBridge helps you to respond to state changes in your AWS resources. When your resources change state, they automatically send events into an event stream. You can create rules that match selected events in the stream and route them to targets to take action. You can also use rules to take action on a predetermined schedule. For example, you can configure rules to:</p> <ul> <li> <p>Automatically invoke an AWS Lambda function to update DNS entries when an event notifies you that Amazon EC2 instance enters the running state</p> </li> <li> <p>Direct specific API records from AWS CloudTrail to an Amazon Kinesis data stream for detailed analysis of potential security or availability risks</p> </li> <li> <p>Periodically invoke a built-in target to create a snapshot of an Amazon EBS volume</p> </li> </ul> <p>For more information about the features of Amazon EventBridge, see the <a href=\"https://docs.aws.amazon.com/eventbridge/latest/userguide/\">Amazon EventBridge User Guide</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-eventbridge-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(`EventBridgeClient`) and the commands you need, for example `ActivateEventSourceCommand`:\n\n```javascript\n//JavaScript\nconst {\n  EventBridgeClient,\n  ActivateEventSourceCommand\n} = require(\"@aws-sdk/client-eventbridge-browser\");\n```\n\n```javascript\n//TypeScript\nimport {\n  EventBridgeClient,\n  ActivateEventSourceCommand\n} from \"@aws-sdk/client-eventbridge-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 eventBridge = new EventBridgeClient({region: 'region'});\n//clients can be shared by different commands\nconst params = {\n  Name: /**a string value*/,\n};\nconst activateEventSourceCommand = new ActivateEventSourceCommand(params);\neventBridge.send(activateEventSourceCommand).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 eventBridge.send(activateEventSourceCommand);\n  // do something\n} catch (error) {\n  // error handling\n}\n```\n\n```javascript\n// callback\neventBridge.send(activateEventSourceCommand, (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-eventbridge-browser\";\nconst eventBridge = new AWS.EventBridge({ region: \"region\" });\neventBridge.activateEventSource(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 eventBridge.send(activateEventSourceCommand);\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-eventbridge-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-eventbridge-browser has been renamed to @aws-sdk/client-eventbridge. Please install the renamed package.","_npmVersion":"6.9.0","description":"Browser SDK for Amazon EventBridge","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":{"jest":"^24.7.1","karma":"^4.1.0","rimraf":"^2.6.2","typedoc":"^0.14.2","puppeteer":"^1.0.0","typescript":"~3.4.0","@types/jest":"^24.0.12","jasmine-core":"^3.4.0","karma-jasmine":"^2.0.1","karma-coverage":"^1.1.1","karma-typescript":"^4.0.0","karma-chrome-launcher":"^3.0.0","@aws-sdk/karma-credential-loader":"^0.1.0-preview.10","@aws-sdk/client-documentation-generator":"^0.1.0-preview.3"},"_npmOperationalInternal":{"tmp":"tmp/client-eventbridge-browser_0.1.0-preview.6_1574196583517_0.06595595172850754","host":"s3://npm-registry-packages"}}},"time":{"created":"2019-09-09T18:03:31.036Z","modified":"2025-03-27T18:38:37.656Z","0.1.0-preview.2":"2019-09-09T18:03:31.411Z","0.1.0-preview.3":"2019-09-19T15:51:31.459Z","0.1.0-preview.4":"2019-10-30T00:02:39.492Z","0.1.0-preview.5":"2019-10-30T19:38:19.537Z","0.1.0-preview.6":"2019-11-19T20:49:43.684Z"},"author":{"url":"https://aws.amazon.com/javascript/","name":"AWS SDK for JavaScript Team"},"license":"Apache-2.0","description":"Browser SDK for Amazon EventBridge","maintainers":[{"email":"osa-3p@amazon.com","name":"amzn-oss"},{"email":"aws-sdk-js-automation@amazon.com","name":"aws-sdk-bot"}],"readme":"","readmeFilename":""}