{"_id":"@aws-sdk/client-app-mesh-browser","_rev":"19-2feb0ff6548d4625a40437fd79f9fc4a","name":"@aws-sdk/client-app-mesh-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-app-mesh-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-app-mesh-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":"1fbd26069e2c26c5970ec49892666f76b5ab0cd7","tarball":"https://registry.npmjs.org/@aws-sdk/client-app-mesh-browser/-/client-app-mesh-browser-0.1.0-preview.2.tgz","fileCount":980,"integrity":"sha512-Zeoi+KkdV3YIgrUFueQ/PSYIypeYxkWtczmzBFwnocYkWqNZzysKJSNMWXbQ8hUgQ4Qq/l/sVTODEa6QVeLYzg==","signatures":[{"sig":"MEQCIA7VauXOxJ1yamBUeZDRnQLYX0L0Nt6dBql71IBtzR4rAiA3cR3HFC7CwIJg+fbdG/Ebl8FzYru2+NZV3/uZ9ahmxA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":563893,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJddo4cCRA9TVsSAnZWagAA9zAP/3CKd5tK6Q92LmOnRFfD\nXia6n+QVI+mBYLtEhVw87YYf6/KpVF2OMOQEqhw0g70RDoENCwh42lDdRCC9\nFj7jtEb4quikfWY4HopSQcAGT2tjj9jotXrHLI1pW/g9vKgQ7xtfyrN07oWj\nAefEy3VOW3hbhuTJB/NCN1Jc1oRv0xZ76YD0D5p0iGWXUuBN/KsHhCJI18bG\nBvNRXaWRrtX9bTWD/bnxziWVG1d56ZyW44ivlFEuO6Czw2M6udsukOFBDE1T\nPRPDPj4EXw7OgxGyNM8eEC1Ry3QNpGHz9oRvjeHQ2QxlLT8UDiUK8jOd96Wu\n8E+8uGDVPkme9fp+lcXOlQKGy1QmR0Bv6kDC2E24WlgnPXiXNc0iRw9DISKP\nDhy6sTENiS2svaA/8CfPskENGmJ+xIMlgHUVxDP6YortDP/Y2q1N1KY2sQQJ\npaFwSOt6g8n7HUz+Y0jAMey6DtdSr45RO6L9VOCLzyv8CWscqZFeB6+bhgLl\nglTisf3dOcajROlBNUuj7kR8nI+FJJSpRzkuOO5Qbz2nfjpIfITR3NcXU1ZZ\nC34QWTyRW/uk/1Mx8ba9tzKMdiUbPJtq/ddyBC8snrMF4Yv8MXua/akH5WCS\nCrm4V4Sp0i59Uc+rfJUMzj26ZUAtmTyb4xeU60D3Ava9F8ilWnIWMCxUr+vY\ni1MZ\r\n=Lo1r\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-app-mesh-browser has been renamed to @aws-sdk/client-app-mesh. Please install the renamed package.","_npmVersion":"6.9.0","description":"Browser SDK for AWS App Mesh","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/protocol-rest":"^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/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-app-mesh-browser_0.1.0-preview.2_1568050715834_0.2335816850954342","host":"s3://npm-registry-packages"}},"0.1.0-preview.3":{"name":"@aws-sdk/client-app-mesh-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-app-mesh-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":"e73ae7a460b784a4415a921c4bf85c2f7a09586b","tarball":"https://registry.npmjs.org/@aws-sdk/client-app-mesh-browser/-/client-app-mesh-browser-0.1.0-preview.3.tgz","fileCount":980,"integrity":"sha512-ET4qAXqsty71Vgc+vg9o5x0QANfMUNWsBjNbCNh3CRB3j2JJ5xFyNYZns4SK7d2T3xXBdBOIWLtKJ7+GqvjO/w==","signatures":[{"sig":"MEUCIHzaJh01UauYG91LDWuQWQXeNHvN7GTzMEbhWYotZWD/AiEA0MZmlsrhP5FPbEa87FZYutLxZl8WLVg0dBHtTpmbGDg=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":564113,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdg6LOCRA9TVsSAnZWagAA7gsP/Re7SL+WT3iNoPejtwE3\n2Rp3QcPHmj8DuY3E2D2qncrSE+EsjTSxr2A1yU74j0U5s/CMAxEZFn/5X0MZ\nLpZQsWL0YnOW/gY8fEztD07riJFy09bNDfdZNYPKFGi9aOAgifMgTFyLkWpd\nxqpx4rfKHlER5a2h2qYeeQHs5OWND60eAUlB3/Ochk2XVHCm/Ir8abtZojec\nyuvYBmgy8bOkMGglXHUWjX8v2zHfKdfn73yEyTlGE+Eora8w1EsGSqnpMjj4\nEVc4vErRtFKaAADcxgReFEG4s+9jmUaSnVRdzQD0SuOb4HILr4bXTS9i/Edo\n3mnT15l9KhQbPWsOgMCIv/5fVlDARtWgZZSOopAlj5qpjLUgO4xvNohy7Apt\nd3kFVfqn+w0dhnoMmRgyN0ktafbdQcFTPBh1j+K0QQ7DfBPxL8MSfhoVtGF4\nk7DqpsDftE/h+fdw99ZxZfTcM35UnJFfxLnPjvAAW0GZL2t0gA0TVjaGsij3\nIGchIWr49jL/93xzVoCX6nXEdZ1mKxZVXlYXexltswPRJGscj4Y2pb9nObOG\nuE2yRBnCVrG80EfZaXgbTvtQyIxYDFC03Ox3tOOzDByHgGKXA6OPJ53SLklH\nrLY3rJ18HxG01wm2mvqxaLz9in+JJL8phKe8OCmAOo9gwWonz8gHxopmHmxe\nCJf2\r\n=Eq3V\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./index.js","types":"./index.d.ts","readme":"# @aws-sdk/client-app-mesh-browser\n\n[![NPM version](https://img.shields.io/npm/v/@aws-sdk/client-app-mesh-browser/preview.svg)](https://www.npmjs.com/package/@aws-sdk/client-app-mesh-browser)\n[![NPM downloads](https://img.shields.io/npm/dm/@aws-sdk/client-app-mesh-browser.svg)](https://www.npmjs.com/package/@aws-sdk/client-app-mesh-browser)\n\n## Description\n\n<p>AWS App Mesh is a service mesh based on the Envoy proxy that makes it easy to monitor and\n         control microservices. App Mesh standardizes how your microservices communicate, giving you\n         end-to-end visibility and helping to ensure high availability for your applications.</p>\n         <p>App Mesh gives you consistent visibility and network traffic controls for every\n         microservice in an application. You can use App Mesh with AWS Fargate, Amazon ECS, Amazon EKS,\n         Kubernetes on AWS, and Amazon EC2.</p>\n         <note>\n            <p>App Mesh supports microservice applications that use service discovery naming for their\n            components. For more information about service discovery on Amazon ECS, see <a href=\"http://docs.aws.amazon.com/AmazonECS/latest/developerguide/service-discovery.html\">Service Discovery</a> in the\n               <i>Amazon Elastic Container Service Developer Guide</i>. Kubernetes <code>kube-dns</code> and\n               <code>coredns</code> are supported. For more information, see <a href=\"https://kubernetes.io/docs/concepts/services-networking/dns-pod-service/\">DNS\n               for Services and Pods</a> in the Kubernetes documentation.</p>\n         </note>\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-app-mesh-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(`AppMeshClient`) and the commands you need, for example `CreateMeshCommand`:\n\n```javascript\n//JavaScript\nconst {\n  AppMeshClient\n} = require(\"@aws-sdk/client-app-mesh-browser/AppMeshClient\");\nconst {\n  CreateMeshCommand\n} = require(\"@aws-sdk/client-app-mesh-browser/commands/CreateMeshCommand\");\n```\n\n```javascript\n//TypeScript\nimport { AppMeshClient } from \"@aws-sdk/client-app-mesh-browser/AppMeshClient\";\nimport { CreateMeshCommand } from \"@aws-sdk/client-app-mesh-browser/commands/CreateMeshCommand\";\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 appMesh = new AppMeshClient({region: 'region'});\n//clients can be shared by different commands\nconst params = {\n  meshName: /**a string value*/,\n};\nconst createMeshCommand = new CreateMeshCommand(params);\nappMesh.send(createMeshCommand).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 appMesh.send(createMeshCommand);\n  // do something\n} catch (error) {\n  // error handling\n}\n```\n\n```javascript\n// callback\nappMesh.send(createMeshCommand, (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-app-mesh-browser/AppMesh\";\nconst appMesh = new AWS.AppMesh({ region: \"region\" });\nappMesh.createMesh(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 appMesh.send(createMeshCommand);\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-app-mesh-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-app-mesh-browser has been renamed to @aws-sdk/client-app-mesh. Please install the renamed package.","_npmVersion":"6.9.0","description":"Browser SDK for AWS App Mesh","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/protocol-rest":"^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/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-app-mesh-browser_0.1.0-preview.3_1568907981588_0.7304552226188581","host":"s3://npm-registry-packages"}},"0.1.0-preview.4":{"name":"@aws-sdk/client-app-mesh-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-app-mesh-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":"415b717dc3ee81fdcd0c43106e33804656c5e533","tarball":"https://registry.npmjs.org/@aws-sdk/client-app-mesh-browser/-/client-app-mesh-browser-0.1.0-preview.4.tgz","fileCount":980,"integrity":"sha512-Fb7tac7UJgJnlM805qjab+30Mz6MHY5QBu/IoElzFzCyJjmIPSw1HMbGgEjeDFgCv/Qq+fr3+GKWmIju+SiChQ==","signatures":[{"sig":"MEUCIQCzCd0bFbD68ZpoGPimGqb9SZ8AXKsrlgM86KavktP/QAIgXEnltWGCxsm+kwVCK47WrW3BVeVd1D6RdEODeVK49z8=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":564155,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJduM5ECRA9TVsSAnZWagAAI5wP/ib+bqo1qKtcB7DfAH53\nOT97AB2zg451I8YVYAxC59eKgqdNRhlWtqhcULY0ctrz31kOs/8FpoWQhLRx\n20ln6bl/ckNya3AsiS2wtW7uhB+fJNxzANcsckXZQ5XdDF4JCn00/Ld7lKas\nCqle9Um5K2zNLsdmrsZe9Qx9pjewTVu8caZWvr2Zwxf7QYbdmk8YpaaMjXrq\nNMxbP86s9gNkqFuENutyH+toCy131qy2AVEuuEGEDBZUcpnxyieXT+ABawRA\nEg5zLwgyBwNG9VFQ2EkXCRoI9uvAKK0/kbkkFEFmof0yLM8Ti98rUjwCe170\nA6pMNMA0zIt3lFxtQE5hMTWdSeDeZe3R0NzM9Do4FVAFV55MQJdg4au8nyH6\nl4EUeVYrwWNdCQheFAcF4TzrBjFyq92/siiS2sRyr8D043uEAvcbScOb6U5v\njCzlr/n2r0VFxq1tGZYeJiSx0+plqgiDGWbdcjJzOHdJ1lTYD5wvKXnZLt37\n7vFFn2M2nlCm3AVONgnhrWc7YjITlMMx8wdt8lKhnEfXzdw7ENXg22Tx6jGH\nD1DzUxZus+HWGcwhZ8LH5xUZzzcIvoPRXkyW2YAzY0i5u9hcRPrKNdQ2LKwD\n6PfsWSNnodJoScfYFn+MORt3W2p51B+t48onAx/mTVKYB9S0PCsS90t+miPH\nY821\r\n=DdVV\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./index.js","types":"./index.d.ts","readme":"# @aws-sdk/client-app-mesh-browser\n\n[![NPM version](https://img.shields.io/npm/v/@aws-sdk/client-app-mesh-browser/preview.svg)](https://www.npmjs.com/package/@aws-sdk/client-app-mesh-browser)\n[![NPM downloads](https://img.shields.io/npm/dm/@aws-sdk/client-app-mesh-browser.svg)](https://www.npmjs.com/package/@aws-sdk/client-app-mesh-browser)\n\n## Description\n\n<p>AWS App Mesh is a service mesh based on the Envoy proxy that makes it easy to monitor and\n         control microservices. App Mesh standardizes how your microservices communicate, giving you\n         end-to-end visibility and helping to ensure high availability for your applications.</p>\n         <p>App Mesh gives you consistent visibility and network traffic controls for every\n         microservice in an application. You can use App Mesh with AWS Fargate, Amazon ECS, Amazon EKS,\n         Kubernetes on AWS, and Amazon EC2.</p>\n         <note>\n            <p>App Mesh supports microservice applications that use service discovery naming for their\n            components. For more information about service discovery on Amazon ECS, see <a href=\"http://docs.aws.amazon.com/AmazonECS/latest/developerguide/service-discovery.html\">Service Discovery</a> in the\n               <i>Amazon Elastic Container Service Developer Guide</i>. Kubernetes <code>kube-dns</code> and\n               <code>coredns</code> are supported. For more information, see <a href=\"https://kubernetes.io/docs/concepts/services-networking/dns-pod-service/\">DNS\n               for Services and Pods</a> in the Kubernetes documentation.</p>\n         </note>\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-app-mesh-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(`AppMeshClient`) and the commands you need, for example `CreateMeshCommand`:\n\n```javascript\n//JavaScript\nconst {\n  AppMeshClient,\n  CreateMeshCommand\n} = require(\"@aws-sdk/client-app-mesh-browser\");\n```\n\n```javascript\n//TypeScript\nimport {\n  AppMeshClient,\n  CreateMeshCommand\n} from \"@aws-sdk/client-app-mesh-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 appMesh = new AppMeshClient({region: 'region'});\n//clients can be shared by different commands\nconst params = {\n  meshName: /**a string value*/,\n};\nconst createMeshCommand = new CreateMeshCommand(params);\nappMesh.send(createMeshCommand).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 appMesh.send(createMeshCommand);\n  // do something\n} catch (error) {\n  // error handling\n}\n```\n\n```javascript\n// callback\nappMesh.send(createMeshCommand, (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-app-mesh-browser\";\nconst appMesh = new AWS.AppMesh({ region: \"region\" });\nappMesh.createMesh(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 appMesh.send(createMeshCommand);\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-app-mesh-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-app-mesh-browser has been renamed to @aws-sdk/client-app-mesh. Please install the renamed package.","_npmVersion":"6.9.0","description":"Browser SDK for AWS App Mesh","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/protocol-rest":"^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/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-app-mesh-browser_0.1.0-preview.4_1572392515869_0.12553502802926553","host":"s3://npm-registry-packages"}},"0.1.0-preview.5":{"name":"@aws-sdk/client-app-mesh-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-app-mesh-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":"901c64a664b2da5ee59beb006b497ece4484d64d","tarball":"https://registry.npmjs.org/@aws-sdk/client-app-mesh-browser/-/client-app-mesh-browser-0.1.0-preview.5.tgz","fileCount":980,"integrity":"sha512-DjxY565lOD8JQVFN/gXokLTGHgAboWm4vO+AZL6g5Ec9yvcZ7ReNNEk3aP+NAGa3EDotEPG42Y0dBqLvIxJVsg==","signatures":[{"sig":"MEUCIQCWsfQhGTS9D2Ke7CqRmHCX80VDTajQiNLSv0dBUy0SYgIgch/iDu/BL1bqQJ0E+srIa7ihDJGXN7ZypdKTZJeub5w=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":564399,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdueEiCRA9TVsSAnZWagAAzaEP/21DH7xLJXfQEdGhjXCc\n0GHrXzp3EIP4edYcdnmP9451dgih2XLM9cdOSZgmHVJZFBZc6k/hvTT0RzKh\n0AJSDh5hPa95AaraibcFgoQYAGdosywdDy6/8U45sn84lKFO5DqNz4DnF/RW\nzRGrsbCMxnH9F8/O35SlsfCbsm8Uw6Lx5IY+zoglNIfIcGXZKqWukLw2hOG2\nQ3gNbo2aoviiRo6I1sFLf2yG3FUxQpIBTgZl8RoxbCHTYLGmHZ3mHWyjH26k\nI5qBBrRLBnmGXUowYTp2yJ94CIwDRtek57U8+WocJf+sYRCBes2QdQzBZSIU\niqyMQaSDuXMC3iRKy4Uw7Kl1x6kvA9h3Vi92HM9bB2IDAHaOLznn3KaPmJRJ\nwcXE1bfZMvHBgUCaWhW2/Q76rnty8RVc6U6A6AEbD35adzA2xLC3SvXEqmF9\nH9BErR+6qTSZ04voApcj+zSXlX9coKsSAUhO1idYJrn34qftiQNx48R4OmRj\nsapdiFCGL2htr8Ux6ClvTMwWeyotZctlUmj62GpWowEjXy6D59LjNJRZgqa6\nlqRWl3iuw4M8XEcIy/Ksmy5Egq46g98IDCvtLwMzDlaHLCSZbSGabhrQ9+Us\nx+cBFHhy4dMAtexGjmeNKY3O3EY7EneJ1pi9SBYV4grvRSYmZpQpQJj0sLNA\nW2KJ\r\n=3m5R\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./index.js","types":"./index.d.ts","readme":"# @aws-sdk/client-app-mesh-browser\n\n[![NPM version](https://img.shields.io/npm/v/@aws-sdk/client-app-mesh-browser/preview.svg)](https://www.npmjs.com/package/@aws-sdk/client-app-mesh-browser)\n[![NPM downloads](https://img.shields.io/npm/dm/@aws-sdk/client-app-mesh-browser.svg)](https://www.npmjs.com/package/@aws-sdk/client-app-mesh-browser)\n\n## Description\n\n<p>AWS App Mesh is a service mesh based on the Envoy proxy that makes it easy to monitor and\n         control microservices. App Mesh standardizes how your microservices communicate, giving you\n         end-to-end visibility and helping to ensure high availability for your applications.</p>\n         <p>App Mesh gives you consistent visibility and network traffic controls for every\n         microservice in an application. You can use App Mesh with AWS Fargate, Amazon ECS, Amazon EKS,\n         Kubernetes on AWS, and Amazon EC2.</p>\n         <note>\n            <p>App Mesh supports microservice applications that use service discovery naming for their\n            components. For more information about service discovery on Amazon ECS, see <a href=\"http://docs.aws.amazon.com/AmazonECS/latest/developerguide/service-discovery.html\">Service Discovery</a> in the\n               <i>Amazon Elastic Container Service Developer Guide</i>. Kubernetes <code>kube-dns</code> and\n               <code>coredns</code> are supported. For more information, see <a href=\"https://kubernetes.io/docs/concepts/services-networking/dns-pod-service/\">DNS\n               for Services and Pods</a> in the Kubernetes documentation.</p>\n         </note>\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-app-mesh-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(`AppMeshClient`) and the commands you need, for example `CreateMeshCommand`:\n\n```javascript\n//JavaScript\nconst {\n  AppMeshClient,\n  CreateMeshCommand\n} = require(\"@aws-sdk/client-app-mesh-browser\");\n```\n\n```javascript\n//TypeScript\nimport {\n  AppMeshClient,\n  CreateMeshCommand\n} from \"@aws-sdk/client-app-mesh-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 appMesh = new AppMeshClient({region: 'region'});\n//clients can be shared by different commands\nconst params = {\n  meshName: /**a string value*/,\n};\nconst createMeshCommand = new CreateMeshCommand(params);\nappMesh.send(createMeshCommand).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 appMesh.send(createMeshCommand);\n  // do something\n} catch (error) {\n  // error handling\n}\n```\n\n```javascript\n// callback\nappMesh.send(createMeshCommand, (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-app-mesh-browser\";\nconst appMesh = new AWS.AppMesh({ region: \"region\" });\nappMesh.createMesh(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 appMesh.send(createMeshCommand);\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-app-mesh-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-app-mesh-browser has been renamed to @aws-sdk/client-app-mesh. Please install the renamed package.","_npmVersion":"6.9.0","description":"Browser SDK for AWS App Mesh","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/protocol-rest":"^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/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-app-mesh-browser_0.1.0-preview.5_1572462881790_0.783167962299985","host":"s3://npm-registry-packages"}},"0.1.0-preview.6":{"name":"@aws-sdk/client-app-mesh-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-app-mesh-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":"7b87049b837716dee364436b2c626a7594dc219d","tarball":"https://registry.npmjs.org/@aws-sdk/client-app-mesh-browser/-/client-app-mesh-browser-0.1.0-preview.6.tgz","fileCount":980,"integrity":"sha512-2RtK+eGJ+nrikzxPdrkq/RXrslunNOBB+wuFJ4o1Ut9Yj2FRhXU8L+YSctmr8Fyp9lVR1KpimtQHxD8jpWrrSg==","signatures":[{"sig":"MEUCIQDvK/TudpnlFf1apKaksLjAPbcAGDiV5KIYUTXlMXNL4gIgJCgmdaeOOf+5jR5DJBAtX6NrmZJ1E3gJphum18ccUIE=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":564670,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd1FMACRA9TVsSAnZWagAARpEP/j9gx4MhmSGBF5vg3Asw\nAkNttE/rK+SWgyNOKnNgUYr2QcmRqeBG9+BmEdIO7foLYUI2d6V2UgeQetCJ\n2ipsbDB++qJVxjF0tq7fomwodDxZbkzClsFgKuvX1H6ihtPwZPP5WbE8GJxk\nNU6R5qpgRhTFrQwXGAh/x7ES8rrOvi7i3Y/SW6n44jIn3hTkUNmxZHHHndE6\n+6N6TYZJJdlBvDFFZeDuUrDBDgKGOow8WCnVq1vxSGThhgR6mH1/zUdPMn6Z\n2dUcCtmwiU3qT2QXJ4i/lBsrwUT5Qw/Z0OslVC+TRHNFcROZOYt4JqhUA0Vf\n1Z1yuH39bT4LM2S1w334+48QwZNdaT8Luy0sFXHK1cFJFaaUS5luB03lVwOK\n7pSYX999ivWPTekRMM9E84b1UusH4lSUbg2dmBZ1M1y23+mr8h1U/2Jl1UlF\nPb0eVn8WfQ6AjIYQcpnthuTdPHSFqVw2RhGfFt4vf1EDdLAPOTJ9Ov8Uhw3h\n4UONncjZEE2WyGBu1LQKx5n8f/MaJVu2E1i6MDvXR2nEmu0rbGr8JgbvU831\n1fuzAekkYoj8L5PURtHhXfFJugYAuEAYH0Ow5KD9vDHwKeo8t3ig04GepZxK\ntAhbE+eAA5zvsSxE48lQ3oq7lXkYxr8or+56u2TFWBwdbP3rzSOnUJ2uA7//\n9ESG\r\n=oTkm\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./index.js","types":"./index.d.ts","readme":"# @aws-sdk/client-app-mesh-browser\n\n[![NPM version](https://img.shields.io/npm/v/@aws-sdk/client-app-mesh-browser/preview.svg)](https://www.npmjs.com/package/@aws-sdk/client-app-mesh-browser)\n[![NPM downloads](https://img.shields.io/npm/dm/@aws-sdk/client-app-mesh-browser.svg)](https://www.npmjs.com/package/@aws-sdk/client-app-mesh-browser)\n\n## Description\n\n<p>AWS App Mesh is a service mesh based on the Envoy proxy that makes it easy to monitor and\n         control microservices. App Mesh standardizes how your microservices communicate, giving you\n         end-to-end visibility and helping to ensure high availability for your applications.</p>\n         <p>App Mesh gives you consistent visibility and network traffic controls for every\n         microservice in an application. You can use App Mesh with AWS Fargate, Amazon ECS, Amazon EKS,\n         Kubernetes on AWS, and Amazon EC2.</p>\n         <note>\n            <p>App Mesh supports microservice applications that use service discovery naming for their\n            components. For more information about service discovery on Amazon ECS, see <a href=\"http://docs.aws.amazon.com/AmazonECS/latest/developerguide/service-discovery.html\">Service Discovery</a> in the\n               <i>Amazon Elastic Container Service Developer Guide</i>. Kubernetes <code>kube-dns</code> and\n               <code>coredns</code> are supported. For more information, see <a href=\"https://kubernetes.io/docs/concepts/services-networking/dns-pod-service/\">DNS\n               for Services and Pods</a> in the Kubernetes documentation.</p>\n         </note>\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-app-mesh-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(`AppMeshClient`) and the commands you need, for example `CreateMeshCommand`:\n\n```javascript\n//JavaScript\nconst {\n  AppMeshClient,\n  CreateMeshCommand\n} = require(\"@aws-sdk/client-app-mesh-browser\");\n```\n\n```javascript\n//TypeScript\nimport {\n  AppMeshClient,\n  CreateMeshCommand\n} from \"@aws-sdk/client-app-mesh-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 appMesh = new AppMeshClient({region: 'region'});\n//clients can be shared by different commands\nconst params = {\n  meshName: /**a string value*/,\n};\nconst createMeshCommand = new CreateMeshCommand(params);\nappMesh.send(createMeshCommand).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 appMesh.send(createMeshCommand);\n  // do something\n} catch (error) {\n  // error handling\n}\n```\n\n```javascript\n// callback\nappMesh.send(createMeshCommand, (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-app-mesh-browser\";\nconst appMesh = new AWS.AppMesh({ region: \"region\" });\nappMesh.createMesh(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 appMesh.send(createMeshCommand);\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-app-mesh-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-app-mesh-browser has been renamed to @aws-sdk/client-app-mesh. Please install the renamed package.","_npmVersion":"6.9.0","description":"Browser SDK for AWS App Mesh","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/protocol-rest":"^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/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-app-mesh-browser_0.1.0-preview.6_1574195967891_0.8210436509130756","host":"s3://npm-registry-packages"}}},"time":{"created":"2019-09-09T17:38:35.653Z","modified":"2025-03-27T18:35:41.372Z","0.1.0-preview.2":"2019-09-09T17:38:36.031Z","0.1.0-preview.3":"2019-09-19T15:46:21.712Z","0.1.0-preview.4":"2019-10-29T23:41:56.083Z","0.1.0-preview.5":"2019-10-30T19:14:41.898Z","0.1.0-preview.6":"2019-11-19T20:39:28.063Z"},"author":{"url":"https://aws.amazon.com/javascript/","name":"AWS SDK for JavaScript Team"},"license":"Apache-2.0","description":"Browser SDK for AWS App Mesh","maintainers":[{"email":"osa-3p@amazon.com","name":"amzn-oss"},{"email":"aws-sdk-js-automation@amazon.com","name":"aws-sdk-bot"}],"readme":"","readmeFilename":""}