{"_id":"@aws-sdk/client-cognito-identity-provider-browser","_rev":"19-94558604a1d05160c4dd3732b7c79beb","name":"@aws-sdk/client-cognito-identity-provider-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-cognito-identity-provider-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-cognito-identity-provider-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":"b74f2ac7d6b6eeaa893dd0de356d84821d2c9df8","tarball":"https://registry.npmjs.org/@aws-sdk/client-cognito-identity-provider-browser/-/client-cognito-identity-provider-browser-0.1.0-preview.2.tgz","fileCount":2832,"integrity":"sha512-KdPetDybh+IDSbjrBEAaoNOnFkRYLDCReRyacOuVa8mZJ4AZM7qLbS/Ict21dgERtK+kRSmF770z1xz9iVIGzw==","signatures":[{"sig":"MEUCIQDWuZuSQgrERxQHsNUiBXHe3C5A60Rh9iQZL9He+RR/jgIgblIeoNPWoh0WX5t87F1yOAoh3eR6C3CfwKbIXTyKwtQ=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1872648,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJddpODCRA9TVsSAnZWagAAC/gP/iEihPN0GMN8+gKCbVNR\nRLEygK5jU2LqII0Ih/I8kG5UQofsihO79m+TuT2vDFyHRppBw/4bXlqQfdw3\nU+2/FBDe/wdSthMflSEvoePk67qPfC5qIAQeQyM4DcCwVUUQrj0ElSKU7389\nbuYbiq5485DyOx48XvQI7zqocroDTisIfqn6Y3s5jriWsq02Pa9iv3WvgBaY\npT5J+S8F9DvJc+lmWtzgW2QQO0AzIpit9wMgudq15q6laphDAvnV8l/a9tXR\nYU+a8Ns+ONw1PtLpNSGzedMK3z/wlv9z+dSsBiHhpqjOST8sSOhc3f9EA9w1\n0UfAZ13JXK+i35peFGZvw91grebMvIONVlIVxJq7/Q4TNgCdQ3ywIURW2/UY\n6tJkipEBBXq/bqNFl2rV8gs8qhBhapgB0qb/7FiZOG0pLxcId6SCTMKOeSLT\nekCMSSz+Y6yjMiHI5ZwLtNNsnOoBluRHJleylfhdd0qG3CcI1M6CHyzwTDRi\n2s58I4ZvAWsbszBihgR//vgtu/X0VGYx+KpXgDvcQuyEsBpgWud5gsHEfCJ5\nqGTnX0iMIDlLJEs2ysX/dntOyOnsA/l4ccX6qO5teYdctiJXOz1ktJNarwVJ\nIWNWraGX0bUUy3hqbcOXLQgV8n1Oi7iV5yCyojXJYogGQhc9BjyS8oBu90bz\n7/TQ\r\n=t2VU\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-cognito-identity-provider-browser has been renamed to @aws-sdk/client-cognito-identity-provider. Please install the renamed package.","_npmVersion":"6.9.0","description":"Browser SDK for Amazon Cognito Identity Provider","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-cognito-identity-provider-browser_0.1.0-preview.2_1568052099112_0.5593331505738197","host":"s3://npm-registry-packages"}},"0.1.0-preview.3":{"name":"@aws-sdk/client-cognito-identity-provider-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-cognito-identity-provider-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":"00ddec7a5e32fedef299ce97669eb8eedf39470f","tarball":"https://registry.npmjs.org/@aws-sdk/client-cognito-identity-provider-browser/-/client-cognito-identity-provider-browser-0.1.0-preview.3.tgz","fileCount":2832,"integrity":"sha512-3bGV6Zf9JMuwQIHRXlXuMJw5bLa5ZaHZf28yEVkkY8py+z1G2aT6S9XHUaYRreuTYFntN95bjGVOnWWcFsXWVA==","signatures":[{"sig":"MEUCIQCqvTJvxKCFDzEcB+NfyuVBn1ySVzlNzfp8Rj8emXYvPQIgPSJMzWIunya4NGwC4SpA0aurftfLml5QZAHbjxFmA+o=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1872868,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdg6NxCRA9TVsSAnZWagAA0hcP/17DfrnGhH9Df2EIRQmo\nXg83qdT60RV6hkgXi+0TtO8dMYAdHh005e9+aS6CLvIHuWxJ59IsZ4zFyxfa\n2qX9ki3aG9LZEpXByljzOZvOQX0ZTMdjOqwoVpNykkA8NoV7NxFfy5p2s1Hf\n0b2TY/BeYw4zP5aXQw4voiKkNjVEFClhqjMveFsRtIxdabTubeovDN3FAIMg\nMGOOKlnwVeoLg3zK+zEcTUePtu6fpkVVrhMLpffLnnWUwyoVGqi9bUkP+Pso\njq1TrPan0EYoIO0bgB/BaRdpu4QI3ZboV99mA1tlF31X4Em2dKgxAjsWLDJs\nKGDyXqQBEeFDxRC7pGI3ZQfQVmGHvcskv8boTI46zOf+2rpRlMZMIOIqgckt\nUWv5pKpZ33Xe6JRyCJ5w3RYZFRt4lW7eZzViGV0bYXMv7Ow7CJ8kwcGdRLve\npI1Bf8/3+PmndgG74mGI4JLnr6F3XeKm18E1m5TwCPGbZc1tVlWxk6Ug75m7\nd7v2Q+aGONrZkwwyNFmfINmutLJ6tUlj+cIhR9aQ4rfHUpaj2+nLRxqFkkrL\nu/lkaFFAYZ3iQ+YVhHksQguTAQDqukeEsdG7sJW/l8ogfvJVJKfcHfDlxw67\nFvi3GMLW1mSgzU3BEYtH5/mo7d4yn7E5hqeBejPZgiZfv9kUFHXJSV6crAJS\nDG9M\r\n=jTkP\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./index.js","types":"./index.d.ts","readme":"# @aws-sdk/client-cognito-identity-provider-browser\n\n[![NPM version](https://img.shields.io/npm/v/@aws-sdk/client-cognito-identity-provider-browser/preview.svg)](https://www.npmjs.com/package/@aws-sdk/client-cognito-identity-provider-browser)\n[![NPM downloads](https://img.shields.io/npm/dm/@aws-sdk/client-cognito-identity-provider-browser.svg)](https://www.npmjs.com/package/@aws-sdk/client-cognito-identity-provider-browser)\n\n## Description\n\n<p>Using the Amazon Cognito User Pools API, you can create a user pool to manage directories and users. You can authenticate a user to obtain tokens related to user identity and access policies.</p> <p>This API reference provides information about user pools in Amazon Cognito User Pools.</p> <p>For more information, see the Amazon Cognito Documentation.</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-cognito-identity-provider-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(`CognitoIdentityProviderClient`) and the commands you need, for example `AddCustomAttributesCommand`:\n\n```javascript\n//JavaScript\nconst {\n  CognitoIdentityProviderClient\n} = require(\"@aws-sdk/client-cognito-identity-provider-browser/CognitoIdentityProviderClient\");\nconst {\n  AddCustomAttributesCommand\n} = require(\"@aws-sdk/client-cognito-identity-provider-browser/commands/AddCustomAttributesCommand\");\n```\n\n```javascript\n//TypeScript\nimport { CognitoIdentityProviderClient } from \"@aws-sdk/client-cognito-identity-provider-browser/CognitoIdentityProviderClient\";\nimport { AddCustomAttributesCommand } from \"@aws-sdk/client-cognito-identity-provider-browser/commands/AddCustomAttributesCommand\";\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 cognitoIdentityProvider = new CognitoIdentityProviderClient({region: 'region'});\n//clients can be shared by different commands\nconst params = {\n  UserPoolId: /**a string value*/,\n  CustomAttributes: [ /**a list of structure*/ ],\n};\nconst addCustomAttributesCommand = new AddCustomAttributesCommand(params);\ncognitoIdentityProvider.send(addCustomAttributesCommand).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 cognitoIdentityProvider.send(addCustomAttributesCommand);\n  // do something\n} catch (error) {\n  // error handling\n}\n```\n\n```javascript\n// callback\ncognitoIdentityProvider.send(addCustomAttributesCommand, (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-cognito-identity-provider-browser/CognitoIdentityProvider\";\nconst cognitoIdentityProvider = new AWS.CognitoIdentityProvider({\n  region: \"region\"\n});\ncognitoIdentityProvider.addCustomAttributes(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 cognitoIdentityProvider.send(addCustomAttributesCommand);\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-cognito-identity-provider-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-cognito-identity-provider-browser has been renamed to @aws-sdk/client-cognito-identity-provider. Please install the renamed package.","_npmVersion":"6.9.0","description":"Browser SDK for Amazon Cognito Identity Provider","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-cognito-identity-provider-browser_0.1.0-preview.3_1568908144393_0.5576231082221239","host":"s3://npm-registry-packages"}},"0.1.0-preview.4":{"name":"@aws-sdk/client-cognito-identity-provider-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-cognito-identity-provider-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":"c344f718a1703e7b6e1deb17ac3486421a6f03a2","tarball":"https://registry.npmjs.org/@aws-sdk/client-cognito-identity-provider-browser/-/client-cognito-identity-provider-browser-0.1.0-preview.4.tgz","fileCount":2832,"integrity":"sha512-oQpFtVa9ujJ/67kN3QOpbOFxiMAe55cJzFpfHxdKC90ShUSZNlMhVB2ycXBsvDRsNKvqJx4QSzfS1Rkti/CR2g==","signatures":[{"sig":"MEQCIEpPMXNSSNcNICJBfkbY1f+HqQ2cXPLpc6Ba6aSLWY4PAiAqK0uPZ/++v3JbXb3/iVetW5MKFxiw7SXec3P7PP0wAA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1872810,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJduNK/CRA9TVsSAnZWagAAY9sP/1DJdeBrAEKioCA5L8Tz\n8ZQUquEtgNW5/XUbNX0kNXJcUPW6zDdBnDTTBXNX5driMSpeOiN1ySDoYUSB\nbupi4V1v2lTn7sx2k3IikoVo9diooYtjfDDAaeAuw62NcnE+zk2qJtkt00n2\nwsxSEshYPH9MGKBgkLIFeD/wGXAd5memljJ3kJxcrnbCArFuZ0ohCZeFcdAB\nM22fNGwBTf68jGQAFKC5CgJWc3yg/GLSt7+9MTaUTWJABHWEkF5bjAn6xb7e\niRvzEVJyNave2aoPgWuYW4gg5POxCBBAkMn7w5instHQcDcEIg//gcctPV9v\n2Ed0hcbFxmMndcatoF4FyECg76EuiNRfN0GueXLOLfwI2yrgyWEuF0bxu5mR\nxZrW8/+A/MtWPWHREhbNGFDW6+CcDH4GWGnmao3/PKuHnwL67zLmuoLwhwAF\njHrYkcY9HjXJgDorOyxhiCTXBV6VJY1mYEkXiOs92P21Lqy5rh7aosR0NQFT\nmKjeRfTdWlYcZ5hUIckTPn1IRFQyR83937hBQ16baCR5DMN2zQN9Zv3f+6bT\nqqmED1TRBM9cAkUS3Xs6/haLycFGrzIE6hdD/qiUTCX4lRlG896nOMeEim95\nTxUZRv3tnAqBUEE6RtM+/M2sHhHKCFaQafA6bjlfa6yFtuMFo8Ko7NhB15X1\nlXer\r\n=+LoH\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./index.js","types":"./index.d.ts","readme":"# @aws-sdk/client-cognito-identity-provider-browser\n\n[![NPM version](https://img.shields.io/npm/v/@aws-sdk/client-cognito-identity-provider-browser/preview.svg)](https://www.npmjs.com/package/@aws-sdk/client-cognito-identity-provider-browser)\n[![NPM downloads](https://img.shields.io/npm/dm/@aws-sdk/client-cognito-identity-provider-browser.svg)](https://www.npmjs.com/package/@aws-sdk/client-cognito-identity-provider-browser)\n\n## Description\n\n<p>Using the Amazon Cognito User Pools API, you can create a user pool to manage directories and users. You can authenticate a user to obtain tokens related to user identity and access policies.</p> <p>This API reference provides information about user pools in Amazon Cognito User Pools.</p> <p>For more information, see the Amazon Cognito Documentation.</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-cognito-identity-provider-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(`CognitoIdentityProviderClient`) and the commands you need, for example `AddCustomAttributesCommand`:\n\n```javascript\n//JavaScript\nconst {\n  CognitoIdentityProviderClient,\n  AddCustomAttributesCommand\n} = require(\"@aws-sdk/client-cognito-identity-provider-browser\");\n```\n\n```javascript\n//TypeScript\nimport {\n  CognitoIdentityProviderClient,\n  AddCustomAttributesCommand\n} from \"@aws-sdk/client-cognito-identity-provider-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 cognitoIdentityProvider = new CognitoIdentityProviderClient({region: 'region'});\n//clients can be shared by different commands\nconst params = {\n  UserPoolId: /**a string value*/,\n  CustomAttributes: [ /**a list of structure*/ ],\n};\nconst addCustomAttributesCommand = new AddCustomAttributesCommand(params);\ncognitoIdentityProvider.send(addCustomAttributesCommand).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 cognitoIdentityProvider.send(addCustomAttributesCommand);\n  // do something\n} catch (error) {\n  // error handling\n}\n```\n\n```javascript\n// callback\ncognitoIdentityProvider.send(addCustomAttributesCommand, (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-cognito-identity-provider-browser\";\nconst cognitoIdentityProvider = new AWS.CognitoIdentityProvider({\n  region: \"region\"\n});\ncognitoIdentityProvider.addCustomAttributes(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 cognitoIdentityProvider.send(addCustomAttributesCommand);\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-cognito-identity-provider-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-cognito-identity-provider-browser has been renamed to @aws-sdk/client-cognito-identity-provider. Please install the renamed package.","_npmVersion":"6.9.0","description":"Browser SDK for Amazon Cognito Identity Provider","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-cognito-identity-provider-browser_0.1.0-preview.4_1572393663541_0.03645836728871621","host":"s3://npm-registry-packages"}},"0.1.0-preview.5":{"name":"@aws-sdk/client-cognito-identity-provider-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-cognito-identity-provider-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":"a8e707671a3efd9928a04eddd409bbb88aa753e5","tarball":"https://registry.npmjs.org/@aws-sdk/client-cognito-identity-provider-browser/-/client-cognito-identity-provider-browser-0.1.0-preview.5.tgz","fileCount":2832,"integrity":"sha512-sTIFt5+OQjyNaQXWRLu4a9xGdDW/Ft8s45pGsXiUbaLKadApYVDio0N4J8yQBBncp9ip+TLvlpLsmEUetmqMIg==","signatures":[{"sig":"MEQCIBVmM/rZdS95jA4/YQIiPOUV0LpZ4r6wLGTwprdVwyT8AiBSR1locn18igqXps+K1OWA+RYV+uNUPUww7gzMZ6A8xg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1873054,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdueZKCRA9TVsSAnZWagAAI2EP/jLRUaFZPxuuibXXBvEi\ng1NNO8hnl9r7MyX0AWqRtQ9DWJ8WlAQgu+8pXJRpiXwNZW7D/om5Lc4f8i+I\ntP8kcqI7isWlPXsJxpq7fwg6imDD/UjFnkRKZEaB/6I5Q9TxGbHuYCo1lFG/\nPwRV01IR/TsV6oOBpB/0Q4jRSolFjXt7Yy9JSbR2zwwkrqv5MQnYv+FsI5hX\njJkUWTz/1BFDi49C7fNAYsGIGrSYIfd3D1u7vnFebyhYraTbaySGURoCKJrV\nXJzjTXMGPbXpE2vwS6ixBvptlhygDrYp2f6v8FhxvrExK1DHGqlgDRcC/KgT\nI/MOGvlAyjfBg/zSYs/3AzdCEh6vHprSUdhjyEwVVUZHyT96gmYuEZfsEDOD\ncfFs/LPTfoXECQh6UOj4khWlgl4Q5De73G7Ky9ESqIQiVSTMr9aj1S+Ih/SL\nkqTGYPdCQNorAXI/YZAqI9IkePP9I4ndpa59JRJfMdwFTO3q6UK64N14hZLd\nMpGN1Sn362QfX5aNYIBJZZpaB7Sw4gE9jssd6ISjc0jzksyRa/VN3BXhXSCg\nfPbUIzjeA2uHGsPAVxzbZ1jH6pi8p/O5Gpfwz1G+ILGWJoPsXAINAJzbs+h+\newUoXM8L6fUauQDlA/mK/kAzH0/IRCtW1/X2DY4fqWE2u3Ri9cL2JNRySfNu\nGm+x\r\n=wEuN\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./index.js","types":"./index.d.ts","readme":"# @aws-sdk/client-cognito-identity-provider-browser\n\n[![NPM version](https://img.shields.io/npm/v/@aws-sdk/client-cognito-identity-provider-browser/preview.svg)](https://www.npmjs.com/package/@aws-sdk/client-cognito-identity-provider-browser)\n[![NPM downloads](https://img.shields.io/npm/dm/@aws-sdk/client-cognito-identity-provider-browser.svg)](https://www.npmjs.com/package/@aws-sdk/client-cognito-identity-provider-browser)\n\n## Description\n\n<p>Using the Amazon Cognito User Pools API, you can create a user pool to manage directories and users. You can authenticate a user to obtain tokens related to user identity and access policies.</p> <p>This API reference provides information about user pools in Amazon Cognito User Pools.</p> <p>For more information, see the Amazon Cognito Documentation.</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-cognito-identity-provider-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(`CognitoIdentityProviderClient`) and the commands you need, for example `AddCustomAttributesCommand`:\n\n```javascript\n//JavaScript\nconst {\n  CognitoIdentityProviderClient,\n  AddCustomAttributesCommand\n} = require(\"@aws-sdk/client-cognito-identity-provider-browser\");\n```\n\n```javascript\n//TypeScript\nimport {\n  CognitoIdentityProviderClient,\n  AddCustomAttributesCommand\n} from \"@aws-sdk/client-cognito-identity-provider-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 cognitoIdentityProvider = new CognitoIdentityProviderClient({region: 'region'});\n//clients can be shared by different commands\nconst params = {\n  UserPoolId: /**a string value*/,\n  CustomAttributes: [ /**a list of structure*/ ],\n};\nconst addCustomAttributesCommand = new AddCustomAttributesCommand(params);\ncognitoIdentityProvider.send(addCustomAttributesCommand).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 cognitoIdentityProvider.send(addCustomAttributesCommand);\n  // do something\n} catch (error) {\n  // error handling\n}\n```\n\n```javascript\n// callback\ncognitoIdentityProvider.send(addCustomAttributesCommand, (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-cognito-identity-provider-browser\";\nconst cognitoIdentityProvider = new AWS.CognitoIdentityProvider({\n  region: \"region\"\n});\ncognitoIdentityProvider.addCustomAttributes(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 cognitoIdentityProvider.send(addCustomAttributesCommand);\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-cognito-identity-provider-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-cognito-identity-provider-browser has been renamed to @aws-sdk/client-cognito-identity-provider. Please install the renamed package.","_npmVersion":"6.9.0","description":"Browser SDK for Amazon Cognito Identity Provider","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-cognito-identity-provider-browser_0.1.0-preview.5_1572464201712_0.6186607457808462","host":"s3://npm-registry-packages"}},"0.1.0-preview.6":{"name":"@aws-sdk/client-cognito-identity-provider-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-cognito-identity-provider-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":"eae3e73403f92950f9e7ccf8fd19c7d8df6d67e0","tarball":"https://registry.npmjs.org/@aws-sdk/client-cognito-identity-provider-browser/-/client-cognito-identity-provider-browser-0.1.0-preview.6.tgz","fileCount":2832,"integrity":"sha512-JZL4wzw0O4zl0LLPq2xe9w6aPLpBo3TzLakZhuYLaSkd1ZF6wqBUY1bef7sjEyMJopPMJc77qqpFG8K71wGqOA==","signatures":[{"sig":"MEUCIDav+o9/3tcK+Ow+tEAP+v6fG+kIHe+xDYCQstq/qzSjAiEAhTBTU8mL+TpIPcbUWjo2s619IMwP+xZjFqhSW9U9a1o=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1873325,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd1FU8CRA9TVsSAnZWagAAYswP/1UrgD8SfQVzoGbojfJf\nidA7Li9CVuhrnQ4EfUEZQX3Hxo6qOH5+Zx2Ii9NNE5CpuQu4F+VtGWhNzork\nb00r4QMNk6byPnwhvHXyDD/UdwPgz2azv4XueOORaF6zGjCLwh6RodVRHuV+\n7uxOzflQm9HaUR/tEGyewgQ7sNUOTn/UZ7YnH0n5xMkuM4s4sgFQCULhvA2f\nIe5wyiZPDdl9qLda+NRReOwopGfaJfnJ4byrTjfOie5zOe3v32t+1D5wAi4x\nwkufMzF2VQG21kh3O4PNR/4R3KBsIK6N/pJgER6gXzLORVogmHkkbh+inBlN\nd0KbXtGwlWPJ96N0UXLFQCvacKHTG2EXLf5OOsAbpTWAqiy0BI7VvbVALSSC\nZz+D9K6MEbTGFjyMrrKEkNVj+bA3790orLVR1QvWBO+Q8+WFIvqxZYw+PR4b\nKfiZqb0jtjobOL/0XP9f6+CalIJLqiCaSAo1qGahc41zrE7Qqk4k60kNx1aB\nwZ1cVW93toaPBhV/SMk2yhpxaZF86xGm+hZfzKe5vndjYpXmIhitIqwNKy0b\nK7gbfvHquZqFPL9HwMlmEFUUCx7LPzWNrwaPkp9h9WyAHTJOuIwkXUaL7ZFz\n/8b1JZRm7Yn9hKG3qQnObB0hiovFw9mobrX1QClJs3xxyE9wGbcA9X/LNBfR\n/FyB\r\n=4VvH\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./index.js","types":"./index.d.ts","readme":"# @aws-sdk/client-cognito-identity-provider-browser\n\n[![NPM version](https://img.shields.io/npm/v/@aws-sdk/client-cognito-identity-provider-browser/preview.svg)](https://www.npmjs.com/package/@aws-sdk/client-cognito-identity-provider-browser)\n[![NPM downloads](https://img.shields.io/npm/dm/@aws-sdk/client-cognito-identity-provider-browser.svg)](https://www.npmjs.com/package/@aws-sdk/client-cognito-identity-provider-browser)\n\n## Description\n\n<p>Using the Amazon Cognito User Pools API, you can create a user pool to manage directories and users. You can authenticate a user to obtain tokens related to user identity and access policies.</p> <p>This API reference provides information about user pools in Amazon Cognito User Pools.</p> <p>For more information, see the Amazon Cognito Documentation.</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-cognito-identity-provider-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(`CognitoIdentityProviderClient`) and the commands you need, for example `AddCustomAttributesCommand`:\n\n```javascript\n//JavaScript\nconst {\n  CognitoIdentityProviderClient,\n  AddCustomAttributesCommand\n} = require(\"@aws-sdk/client-cognito-identity-provider-browser\");\n```\n\n```javascript\n//TypeScript\nimport {\n  CognitoIdentityProviderClient,\n  AddCustomAttributesCommand\n} from \"@aws-sdk/client-cognito-identity-provider-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 cognitoIdentityProvider = new CognitoIdentityProviderClient({region: 'region'});\n//clients can be shared by different commands\nconst params = {\n  UserPoolId: /**a string value*/,\n  CustomAttributes: [ /**a list of structure*/ ],\n};\nconst addCustomAttributesCommand = new AddCustomAttributesCommand(params);\ncognitoIdentityProvider.send(addCustomAttributesCommand).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 cognitoIdentityProvider.send(addCustomAttributesCommand);\n  // do something\n} catch (error) {\n  // error handling\n}\n```\n\n```javascript\n// callback\ncognitoIdentityProvider.send(addCustomAttributesCommand, (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-cognito-identity-provider-browser\";\nconst cognitoIdentityProvider = new AWS.CognitoIdentityProvider({\n  region: \"region\"\n});\ncognitoIdentityProvider.addCustomAttributes(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 cognitoIdentityProvider.send(addCustomAttributesCommand);\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-cognito-identity-provider-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-cognito-identity-provider-browser has been renamed to @aws-sdk/client-cognito-identity-provider. Please install the renamed package.","_npmVersion":"6.9.0","description":"Browser SDK for Amazon Cognito Identity Provider","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-cognito-identity-provider-browser_0.1.0-preview.6_1574196539712_0.5156305787861135","host":"s3://npm-registry-packages"}}},"time":{"created":"2019-09-09T18:01:38.948Z","modified":"2025-03-27T18:37:19.179Z","0.1.0-preview.2":"2019-09-09T18:01:39.280Z","0.1.0-preview.3":"2019-09-19T15:49:04.595Z","0.1.0-preview.4":"2019-10-30T00:01:03.734Z","0.1.0-preview.5":"2019-10-30T19:36:41.913Z","0.1.0-preview.6":"2019-11-19T20:48:59.925Z"},"author":{"url":"https://aws.amazon.com/javascript/","name":"AWS SDK for JavaScript Team"},"license":"Apache-2.0","description":"Browser SDK for Amazon Cognito Identity Provider","maintainers":[{"email":"osa-3p@amazon.com","name":"amzn-oss"},{"email":"aws-sdk-js-automation@amazon.com","name":"aws-sdk-bot"}],"readme":"","readmeFilename":""}