{"_id":"@aws-sdk/client-directory-service-browser","_rev":"19-5c2fb1777ab0d55a843f9feb3bf7875d","name":"@aws-sdk/client-directory-service-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-directory-service-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-directory-service-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":"8b77b00e1fbd2b4192b0e328ec5329cc935f67ac","tarball":"https://registry.npmjs.org/@aws-sdk/client-directory-service-browser/-/client-directory-service-browser-0.1.0-preview.2.tgz","fileCount":1440,"integrity":"sha512-DR2ZiTeYj9E4sHXFX6SFhsBLrxmX1mfSfs4tgyHpHdDYsZiZu//3ryz16tY3Hhm0XkRcaReUvJy0PGJszD7LMA==","signatures":[{"sig":"MEUCIQC5w9iSkc5/PtgzT4XWSDGSyWr0b04X+9n9cAnOU79BoQIgLEE5MjPn/srMb+VRfkYM6K6GevG8VPNOXtwA7R8LBnw=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":832188,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJddpOaCRA9TVsSAnZWagAAsbYP/Ri34Qzvg36MESKubWID\nvqApyq0s5eURsJduYhwHtRQze9joG59iZYMvdAsAldOVfb4f4tgZnzRM1Yxy\nZWqTtAfZCnn2X/i7tMi2AiUeHYumhdJwhNdwdEYdfXvjbzUjb2M91TYgY8Wm\nzZxRcgKZKtZKoD6NypT1GBUj90U9LHW2ZTxXsfbabHIm4fSnbKR2qESwDP3J\nukwrOf4Ig1e/S5hEdWBMlGe+6geuxFRNg82wKa7/Xxh+64h4rTVoLaurMEAh\nNCUoK9SnjMsxkOgIqHtHrtAlQmtgSTXpZEyLVl+EwExowcpHkFrpCY6oUzH5\nGJMRN6cpss16XjK71sxzgS+4fAJ7/PuclxKomL0U3MMqddwMLs497cEetYJE\ne4m2NzZ5V42GxuuaN5Ku45JU9k/XZIRsJQHaE5KVDbdKG5buWQ4Heg1qrnyo\n1qpB0UU7vHd/9L/GDFlVNwFw7IW0gdgaLeRWbIyAvNG0+IZJaTcI5Uy2Cdjr\nntiJ7xZyx1kYwUUCAIvT/oQROmsdD7LZ/7bdANk12Tlq4t8Qph0tmuXJgfj2\nVLeHK79IerQmKYn9r7v0Y+lOn9MfNqEsVSEaKRAOsOO4GTgfMMfzgevhgQEt\nzz2JbbbXW1M+4i16+QzjPSe+XoYFVcewSRUzEyNhgsUuHuvkUA1I25bMWy29\nOnNn\r\n=RCn1\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-directory-service-browser has been renamed to @aws-sdk/client-directory-service. Please install the renamed package.","_npmVersion":"6.9.0","description":"Browser SDK for AWS Directory 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":{"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-directory-service-browser_0.1.0-preview.2_1568052121292_0.6287299451405612","host":"s3://npm-registry-packages"}},"0.1.0-preview.3":{"name":"@aws-sdk/client-directory-service-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-directory-service-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":"3b99ff53be6eff5828329cdf4c5ef125cf4034e6","tarball":"https://registry.npmjs.org/@aws-sdk/client-directory-service-browser/-/client-directory-service-browser-0.1.0-preview.3.tgz","fileCount":1440,"integrity":"sha512-njmk+FpHWTVbgbbbqe33SN7xaRZwx3QL/stZO0MFQZI0zBI7K97hhCdnLvJkIwyAN5IvSrbtuCPZ0MacGfMYTA==","signatures":[{"sig":"MEYCIQCnZ46qjd01R79f/Srix5Y2WIBuQvzUp8OgjvNsg8F61wIhAKFk3HFQpS/OZd1vGoWkxtRiE1SdUfGCCmn4DskeXdnY","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":832408,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdg6O9CRA9TVsSAnZWagAAFEsP/RXp+c9VZsZRW8yCNbpW\n4XfbpMk4E4m1FyuoPtVkoigwsVwfdy197KSFD4jynMM5J6VksEj1MSqcN6Sb\nVLJrx9fgu+7dyKfzAIfYPGq5zb8DMPigmEULVmCw0pDy5+krvlnBwkUbSi0p\nj4OK9j1ltYPhNiRjtR+oK3Z1An5uLaUlov6nJbiG0IoGwxWBrZc9Bukimopp\nDiohN/AC81A/NdJPMruW+xeavUZu4Ma96RGY/UEZIhXTjjzlC6r6TghEpFXK\nRCihl3OgT8xKaqtjOg0dHfNdXcg+28EO4k4QWnXUsXpRn8EbqUgdsskYzauz\ndMwiGcyGOTf7Hd/Kr2yFwCfRb2iS/aKAHjttvVxUTS1okGqLouDw6SjNXfMY\nsxrIfvTcyTnaGg4K/v6SPkV8SCiMWdRdkfZ7LyXSuMnc9VyPCs1RkPsM7q+A\nCDwGMIY12xWMr99jDRmCCOWCLKzZjxZ1J1rg3w6R7lzJv/+6+rT6Rjj/MgZd\n1G/cbavxx985gIfJc/VHnRMqhDZa4oAKJHkxuEzZ0BhEE+AiiTTT1+B96hMn\nKv1okDp+DKwYZT69DM+kfhKpAtBQhoCUEtRju/KanjIZr18v7wCBM0xTFMz/\n9ojbrDkklgi0SVhwkmaIUstEu1/miU/gu/xAfkg/kUkkgLNcdknEI4BMJjlU\ng+My\r\n=tkpg\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./index.js","types":"./index.d.ts","readme":"# @aws-sdk/client-directory-service-browser\n\n[![NPM version](https://img.shields.io/npm/v/@aws-sdk/client-directory-service-browser/preview.svg)](https://www.npmjs.com/package/@aws-sdk/client-directory-service-browser)\n[![NPM downloads](https://img.shields.io/npm/dm/@aws-sdk/client-directory-service-browser.svg)](https://www.npmjs.com/package/@aws-sdk/client-directory-service-browser)\n\n## Description\n\n<fullname>AWS Directory Service</fullname> <p>AWS Directory Service is a web service that makes it easy for you to setup and run directories in the AWS cloud, or connect your AWS resources with an existing on-premises Microsoft Active Directory. This guide provides detailed information about AWS Directory Service operations, data types, parameters, and errors. For information about AWS Directory Services features, see <a href=\"https://aws.amazon.com/directoryservice/\">AWS Directory Service</a> and the <a href=\"http://docs.aws.amazon.com/directoryservice/latest/admin-guide/what_is.html\">AWS Directory Service Administration Guide</a>.</p> <note> <p>AWS provides SDKs that consist of libraries and sample code for various programming languages and platforms (Java, Ruby, .Net, iOS, Android, etc.). The SDKs provide a convenient way to create programmatic access to AWS Directory Service and other AWS services. For more information about the AWS SDKs, including how to download and install them, see <a href=\"http://aws.amazon.com/tools/\">Tools for Amazon Web Services</a>.</p> </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-directory-service-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(`DirectoryServiceClient`) and the commands you need, for example `AcceptSharedDirectoryCommand`:\n\n```javascript\n//JavaScript\nconst {\n  DirectoryServiceClient\n} = require(\"@aws-sdk/client-directory-service-browser/DirectoryServiceClient\");\nconst {\n  AcceptSharedDirectoryCommand\n} = require(\"@aws-sdk/client-directory-service-browser/commands/AcceptSharedDirectoryCommand\");\n```\n\n```javascript\n//TypeScript\nimport { DirectoryServiceClient } from \"@aws-sdk/client-directory-service-browser/DirectoryServiceClient\";\nimport { AcceptSharedDirectoryCommand } from \"@aws-sdk/client-directory-service-browser/commands/AcceptSharedDirectoryCommand\";\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 directoryService = new DirectoryServiceClient({region: 'region'});\n//clients can be shared by different commands\nconst params = {\n  SharedDirectoryId: /**a string value*/,\n};\nconst acceptSharedDirectoryCommand = new AcceptSharedDirectoryCommand(params);\ndirectoryService.send(acceptSharedDirectoryCommand).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 directoryService.send(acceptSharedDirectoryCommand);\n  // do something\n} catch (error) {\n  // error handling\n}\n```\n\n```javascript\n// callback\ndirectoryService.send(acceptSharedDirectoryCommand, (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-directory-service-browser/DirectoryService\";\nconst directoryService = new AWS.DirectoryService({ region: \"region\" });\ndirectoryService.acceptSharedDirectory(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 directoryService.send(acceptSharedDirectoryCommand);\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-directory-service-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-directory-service-browser has been renamed to @aws-sdk/client-directory-service. Please install the renamed package.","_npmVersion":"6.9.0","description":"Browser SDK for AWS Directory 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":{"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-directory-service-browser_0.1.0-preview.3_1568908220729_0.8320830100194829","host":"s3://npm-registry-packages"}},"0.1.0-preview.4":{"name":"@aws-sdk/client-directory-service-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-directory-service-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":"e3eaebb71ea630ceb28c3fe10aef015c174b80a1","tarball":"https://registry.npmjs.org/@aws-sdk/client-directory-service-browser/-/client-directory-service-browser-0.1.0-preview.4.tgz","fileCount":1440,"integrity":"sha512-Xz9aoD4gtrPqUcxLLJvUj2F2qFferKTNItvWm2gs7mvR15DZW6URq9Z8f6RPKZ+mz8pyIqcU89XS4+0eTaJ/QQ==","signatures":[{"sig":"MEUCIQCP//uDoQ9/sI5VG/vCV0Mhl5o7m/XQMH4ZPOZ5zBdalgIgM6/BvkGPXmk+WgOVw98vHm93x7DtHqwAS2SoN8eZN6c=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":832383,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJduNLlCRA9TVsSAnZWagAAn78P+QAbT3JtDjmkq/F9z109\nJlkxL/JHxl4fgiN6qXgLvSlIUGDXWMcljHYK0kmSm4bYAgBW5Rk0T6+s3yn9\n2iFzcqPPJ6UHtmbfc/7fBTeGe8kGZ/MzaFwmjfyXMTk8+7eY5W+PAcEFrcDj\nwH6VUG1oTeUXd9krIvTvKukj7vL2niUA52xo8r8lgzCU6wCWT8fuh1UwIg8S\nSJzuSi+0UeNDsQ0HGOOAFSiRRqvdLQIsZSEM2ciObwW3mrI6rZmLOKa9kWld\nODpIK40fovx6Kg2B7Svv2Ohu16hPOZCusW+I9G2JQhbT7kJSv50j9cOrxc4j\n9kQPLhJvYw+z5rdYGd2G0SvbQ/J+B4STAzWFt5QfpY3t1qv2rUwA3PLIp50O\n7iwuqEpK0B+hSyzCmUsEFIlrMcr1lvlpvttEaqwdpEFMlZ2ATW47/LWLUiE3\nXvuncCcz5U3dL0Rkh4n8YFbaVxVFv3wkJVcNKwSftC/VYmS2LyJEJeLn4Vr0\nZw/u+Os5Lmvb8DR/i4NaKvIeSMtS3APgVxiwRtt3HDzb4KrcDC3X/63LY/Ez\npXw5ZXxMwBo18a5FnqKTJhSlHMxm40F4HYWFUH6PvTT6YwIITfx1COQD1UNs\nRPKe7jm8BBYwQvDy1BQJP0GOamTfBRT/Ji3OqIXLtAs5d4BI39pUlfA48iDp\nq/L+\r\n=AmKd\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./index.js","types":"./index.d.ts","readme":"# @aws-sdk/client-directory-service-browser\n\n[![NPM version](https://img.shields.io/npm/v/@aws-sdk/client-directory-service-browser/preview.svg)](https://www.npmjs.com/package/@aws-sdk/client-directory-service-browser)\n[![NPM downloads](https://img.shields.io/npm/dm/@aws-sdk/client-directory-service-browser.svg)](https://www.npmjs.com/package/@aws-sdk/client-directory-service-browser)\n\n## Description\n\n<fullname>AWS Directory Service</fullname> <p>AWS Directory Service is a web service that makes it easy for you to setup and run directories in the AWS cloud, or connect your AWS resources with an existing on-premises Microsoft Active Directory. This guide provides detailed information about AWS Directory Service operations, data types, parameters, and errors. For information about AWS Directory Services features, see <a href=\"https://aws.amazon.com/directoryservice/\">AWS Directory Service</a> and the <a href=\"http://docs.aws.amazon.com/directoryservice/latest/admin-guide/what_is.html\">AWS Directory Service Administration Guide</a>.</p> <note> <p>AWS provides SDKs that consist of libraries and sample code for various programming languages and platforms (Java, Ruby, .Net, iOS, Android, etc.). The SDKs provide a convenient way to create programmatic access to AWS Directory Service and other AWS services. For more information about the AWS SDKs, including how to download and install them, see <a href=\"http://aws.amazon.com/tools/\">Tools for Amazon Web Services</a>.</p> </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-directory-service-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(`DirectoryServiceClient`) and the commands you need, for example `AcceptSharedDirectoryCommand`:\n\n```javascript\n//JavaScript\nconst {\n  DirectoryServiceClient,\n  AcceptSharedDirectoryCommand\n} = require(\"@aws-sdk/client-directory-service-browser\");\n```\n\n```javascript\n//TypeScript\nimport {\n  DirectoryServiceClient,\n  AcceptSharedDirectoryCommand\n} from \"@aws-sdk/client-directory-service-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 directoryService = new DirectoryServiceClient({region: 'region'});\n//clients can be shared by different commands\nconst params = {\n  SharedDirectoryId: /**a string value*/,\n};\nconst acceptSharedDirectoryCommand = new AcceptSharedDirectoryCommand(params);\ndirectoryService.send(acceptSharedDirectoryCommand).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 directoryService.send(acceptSharedDirectoryCommand);\n  // do something\n} catch (error) {\n  // error handling\n}\n```\n\n```javascript\n// callback\ndirectoryService.send(acceptSharedDirectoryCommand, (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-directory-service-browser\";\nconst directoryService = new AWS.DirectoryService({ region: \"region\" });\ndirectoryService.acceptSharedDirectory(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 directoryService.send(acceptSharedDirectoryCommand);\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-directory-service-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-directory-service-browser has been renamed to @aws-sdk/client-directory-service. Please install the renamed package.","_npmVersion":"6.9.0","description":"Browser SDK for AWS Directory 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":{"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-directory-service-browser_0.1.0-preview.4_1572393701352_0.21669594650349144","host":"s3://npm-registry-packages"}},"0.1.0-preview.5":{"name":"@aws-sdk/client-directory-service-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-directory-service-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":"34cdc246b98230d737d371e1e22178a685676183","tarball":"https://registry.npmjs.org/@aws-sdk/client-directory-service-browser/-/client-directory-service-browser-0.1.0-preview.5.tgz","fileCount":1440,"integrity":"sha512-ZG18l/DQjEIa+4uwz0E1lYW0LzkOjipRQKkNQ5edGHwxrV4GWQvZ1pgrHjesA2VBTVJkIENXwav2gzSqxcJ+Ug==","signatures":[{"sig":"MEUCIQDAdjcQsHBP28fJJcAEi8wqSCirzGO5uyhLRlt8ILWDbQIgKSojxQv64f/RYflxCDSh4nA1pZRhTbsxOfJ0iYPnTlw=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":832627,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdueZ2CRA9TVsSAnZWagAALrUQAKMi/ggRjttFmbMA6W6m\nQ5wzKrv8o2/XVstQdFcWs0uBp5JRsCe/V28s2ysHov+2wK6G7L2d+fEjztcF\n73DlyOe1VSZP4E3PVhhiWIPxeputRdEUQ2tZqnlxNsiqoz97GLxk5MFdhWA/\nALwO7090rhj2XXHaMLNPcPtQQJV3NvDL31Dz0uZDQRyqlkkNLVbFF+fn7Q3E\nprPyhLwaxa/K4IaG1SxRL64SWR+BqzHYrkpFaRF5SDCvEYfh5TV8QP+Mfeb1\nilSvlZZ58fRypiYD0XY6HDsqEDtJJkynvctl+nb4We90GF69IaJarM7pCFmJ\nQD842M7ZZi8Fa069YVeiXsOZ/YRTuNok5s5BOLKzPMdND6pSOycy0AMGGOm8\n5Zm8p5tESKxm/MqDvTFcp/z3EuAshG/QlnidZcK734ilZ3by7V6Y/4+sy/MP\nkvoE7EquDxX3oWCz2p5b97r2ucvqOYfnNYngCPuosRd1OOaxk7ZTFPcXbFpB\nLbF5HD2ChZgoE6XXaeG/iua2JT3krtkeHBr5+5N8C0MguWEKnd2X410AGdn0\nO6o2TK0sHtGOdVL0yyz90b9Y3LfgJRmGwhIQYHKqkm/iVp3YB6CmHkWEj6fd\nVqySr48ZJk5zFzAEtn+UR/N4GIvk74BocOTUzzxNKJ0iT8RWKHcCClzX91Kg\nf+DN\r\n=Ww8a\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./index.js","types":"./index.d.ts","readme":"# @aws-sdk/client-directory-service-browser\n\n[![NPM version](https://img.shields.io/npm/v/@aws-sdk/client-directory-service-browser/preview.svg)](https://www.npmjs.com/package/@aws-sdk/client-directory-service-browser)\n[![NPM downloads](https://img.shields.io/npm/dm/@aws-sdk/client-directory-service-browser.svg)](https://www.npmjs.com/package/@aws-sdk/client-directory-service-browser)\n\n## Description\n\n<fullname>AWS Directory Service</fullname> <p>AWS Directory Service is a web service that makes it easy for you to setup and run directories in the AWS cloud, or connect your AWS resources with an existing on-premises Microsoft Active Directory. This guide provides detailed information about AWS Directory Service operations, data types, parameters, and errors. For information about AWS Directory Services features, see <a href=\"https://aws.amazon.com/directoryservice/\">AWS Directory Service</a> and the <a href=\"http://docs.aws.amazon.com/directoryservice/latest/admin-guide/what_is.html\">AWS Directory Service Administration Guide</a>.</p> <note> <p>AWS provides SDKs that consist of libraries and sample code for various programming languages and platforms (Java, Ruby, .Net, iOS, Android, etc.). The SDKs provide a convenient way to create programmatic access to AWS Directory Service and other AWS services. For more information about the AWS SDKs, including how to download and install them, see <a href=\"http://aws.amazon.com/tools/\">Tools for Amazon Web Services</a>.</p> </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-directory-service-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(`DirectoryServiceClient`) and the commands you need, for example `AcceptSharedDirectoryCommand`:\n\n```javascript\n//JavaScript\nconst {\n  DirectoryServiceClient,\n  AcceptSharedDirectoryCommand\n} = require(\"@aws-sdk/client-directory-service-browser\");\n```\n\n```javascript\n//TypeScript\nimport {\n  DirectoryServiceClient,\n  AcceptSharedDirectoryCommand\n} from \"@aws-sdk/client-directory-service-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 directoryService = new DirectoryServiceClient({region: 'region'});\n//clients can be shared by different commands\nconst params = {\n  SharedDirectoryId: /**a string value*/,\n};\nconst acceptSharedDirectoryCommand = new AcceptSharedDirectoryCommand(params);\ndirectoryService.send(acceptSharedDirectoryCommand).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 directoryService.send(acceptSharedDirectoryCommand);\n  // do something\n} catch (error) {\n  // error handling\n}\n```\n\n```javascript\n// callback\ndirectoryService.send(acceptSharedDirectoryCommand, (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-directory-service-browser\";\nconst directoryService = new AWS.DirectoryService({ region: \"region\" });\ndirectoryService.acceptSharedDirectory(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 directoryService.send(acceptSharedDirectoryCommand);\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-directory-service-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-directory-service-browser has been renamed to @aws-sdk/client-directory-service. Please install the renamed package.","_npmVersion":"6.9.0","description":"Browser SDK for AWS Directory 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":{"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-directory-service-browser_0.1.0-preview.5_1572464245694_0.43139817483637444","host":"s3://npm-registry-packages"}},"0.1.0-preview.6":{"name":"@aws-sdk/client-directory-service-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-directory-service-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":"67687b1b7b702e2d220744dc898de5b922eddac9","tarball":"https://registry.npmjs.org/@aws-sdk/client-directory-service-browser/-/client-directory-service-browser-0.1.0-preview.6.tgz","fileCount":1440,"integrity":"sha512-tGISminq1/CQsIDbM94k83HX3Xl/F9u3HDEZoAaUvJ/ymYmA6Y3JYlBz8JK7VjYvdP06iRF9Qhx3tjLkbMU5Xw==","signatures":[{"sig":"MEQCIEVUARlNS51pDIeujoAR+UnaOblpdTQM0pm9vbgS9yUHAiB9w6jQMrGz38S3BoqMeEWcUTVo0K7hAs87v6pkO8SqOA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":832898,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd1FVGCRA9TVsSAnZWagAAUwwP/i3ZbVa8t4bIqSeD9fDS\nbExrHqS0PBRkE/hFTfrUU927tyuhGXKF0DIR10dezMcII/JzvAHdvvZblIxP\n4jd/4ryT25erBDH9TjM7ROjClMRDCVfTmf8k/lcKAGSuR3jYgwKHtPpE0r9K\nxZHjMAJ2q7ciXPnpPHiCX29xuIl7nzYwuRoseDuXrg40QZeadYg3wJWXLXo8\nzDqqA7iEiJT96nsmebMQOXWr9DVYh5IgxJzdDj+cuWRi8qsWyLWIJKKlQ1o8\nJZgtFepdRs48cfrTdzFigif9Bn/Ei+vLp+UtoyZBCkYwXm3jjGCKsuyF9uvs\nJlCAOyWkculQ9JcnKkxOwdtxzryatzb+MPDDSn6XDc2sfoi8SHHrmJdQPJ8T\n2CuEzZ6LzCsRVOSEJx/r/X5Ye976DPMLZIJjy2LtleWWdC7BKmS4IkVypHoq\no8xEusrGeoP58HVhBUhqFTVhAK43wm/Ef8NC3mIO4EVFVtpklftLGetljTpv\nCnuRObPSADGsPIkWT0bFG229hKTUeu5OnH1S7umEviX6rK6BxVVcNZ4m0xeA\n99kekFjpsd4UbFgV3x5Zpv9fttM2GEJE8WFtEEN+/gSnlZF4Jg/dCSNHvbWl\nfMcpxyx4MT98xTYt7KYPZ6jrQxrXFFqS64tAwdP46z5Ynr2MXrnh/d2bjiX1\nSRjB\r\n=2D1F\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./index.js","types":"./index.d.ts","readme":"# @aws-sdk/client-directory-service-browser\n\n[![NPM version](https://img.shields.io/npm/v/@aws-sdk/client-directory-service-browser/preview.svg)](https://www.npmjs.com/package/@aws-sdk/client-directory-service-browser)\n[![NPM downloads](https://img.shields.io/npm/dm/@aws-sdk/client-directory-service-browser.svg)](https://www.npmjs.com/package/@aws-sdk/client-directory-service-browser)\n\n## Description\n\n<fullname>AWS Directory Service</fullname> <p>AWS Directory Service is a web service that makes it easy for you to setup and run directories in the AWS cloud, or connect your AWS resources with an existing on-premises Microsoft Active Directory. This guide provides detailed information about AWS Directory Service operations, data types, parameters, and errors. For information about AWS Directory Services features, see <a href=\"https://aws.amazon.com/directoryservice/\">AWS Directory Service</a> and the <a href=\"http://docs.aws.amazon.com/directoryservice/latest/admin-guide/what_is.html\">AWS Directory Service Administration Guide</a>.</p> <note> <p>AWS provides SDKs that consist of libraries and sample code for various programming languages and platforms (Java, Ruby, .Net, iOS, Android, etc.). The SDKs provide a convenient way to create programmatic access to AWS Directory Service and other AWS services. For more information about the AWS SDKs, including how to download and install them, see <a href=\"http://aws.amazon.com/tools/\">Tools for Amazon Web Services</a>.</p> </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-directory-service-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(`DirectoryServiceClient`) and the commands you need, for example `AcceptSharedDirectoryCommand`:\n\n```javascript\n//JavaScript\nconst {\n  DirectoryServiceClient,\n  AcceptSharedDirectoryCommand\n} = require(\"@aws-sdk/client-directory-service-browser\");\n```\n\n```javascript\n//TypeScript\nimport {\n  DirectoryServiceClient,\n  AcceptSharedDirectoryCommand\n} from \"@aws-sdk/client-directory-service-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 directoryService = new DirectoryServiceClient({region: 'region'});\n//clients can be shared by different commands\nconst params = {\n  SharedDirectoryId: /**a string value*/,\n};\nconst acceptSharedDirectoryCommand = new AcceptSharedDirectoryCommand(params);\ndirectoryService.send(acceptSharedDirectoryCommand).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 directoryService.send(acceptSharedDirectoryCommand);\n  // do something\n} catch (error) {\n  // error handling\n}\n```\n\n```javascript\n// callback\ndirectoryService.send(acceptSharedDirectoryCommand, (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-directory-service-browser\";\nconst directoryService = new AWS.DirectoryService({ region: \"region\" });\ndirectoryService.acceptSharedDirectory(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 directoryService.send(acceptSharedDirectoryCommand);\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-directory-service-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-directory-service-browser has been renamed to @aws-sdk/client-directory-service. Please install the renamed package.","_npmVersion":"6.9.0","description":"Browser SDK for AWS Directory 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":{"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-directory-service-browser_0.1.0-preview.6_1574196550158_0.3540234203661541","host":"s3://npm-registry-packages"}}},"time":{"created":"2019-09-09T18:02:01.096Z","modified":"2025-03-27T18:42:01.208Z","0.1.0-preview.2":"2019-09-09T18:02:01.523Z","0.1.0-preview.3":"2019-09-19T15:50:20.851Z","0.1.0-preview.4":"2019-10-30T00:01:41.541Z","0.1.0-preview.5":"2019-10-30T19:37:25.870Z","0.1.0-preview.6":"2019-11-19T20:49:10.466Z"},"author":{"url":"https://aws.amazon.com/javascript/","name":"AWS SDK for JavaScript Team"},"license":"Apache-2.0","description":"Browser SDK for AWS Directory Service","maintainers":[{"email":"osa-3p@amazon.com","name":"amzn-oss"},{"email":"aws-sdk-js-automation@amazon.com","name":"aws-sdk-bot"}],"readme":"","readmeFilename":""}