{"name":"@aws-sdk/client-sts","version":"1.0.0-gamma.10","author":{"url":"https://aws.amazon.com/javascript/","name":"AWS SDK for JavaScript Team"},"license":"Apache-2.0","_id":"@aws-sdk/client-sts@1.0.0-gamma.10","dist":{"shasum":"a165f487c7c31ae6ca5acc200549afd2f1d08e58","tarball":"http://registry-npm.ywwl.com/@aws-sdk/client-sts/download/@aws-sdk/client-sts-1.0.0-gamma.10.tgz","fileCount":122,"integrity":"sha512-4biIVVVjNXlvFHLiIHcJtcIUnH5QK/tmwQ9fu8AR7Sh59uy0S30MG0CXSuyVJR0zw1Zaxpp2mtLq369vgC8iUQ==","signatures":[{"sig":"MEYCIQCfDf6dobRTAlJ5xS+8ZndYTGWu2qDNlOR27t+/o+cBvwIhAOcAUMUVSx5bw/x468vOAJRkpqLIopaPqj4Rc8hhZwmH","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":784818,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfc4SECRA9TVsSAnZWagAAO3QP/26XDpsjBBhVP9WR58Jn\nJB1T2T1T8Bazg7UMSPtC7e3rjt9Zcmi28L0aRDSNJ9nxMZIJb/hj6UIYb0UZ\nDjNLebMwJWWll5MJK0aYVpFOf7+d21YGbgtQYKG9fUSTgKwlAic9qyCODjSD\nFEpRqKiv+gMiz98qxhc8QP4q+gn046iMhMiwfIttdI/maJnWJQIWv1/wRzzd\nPhPyTAx0qilHRzUK0mfkqXV0H6xHmjfkV1sdD0oMdDKb4uCiZC4m9iCqWllO\nphCxo2WxyNoV1wSB4mHIeYZaInMM9FV711k0CvHrDjdUU2Ql7npqa9T3CzSk\n2Y4xCqU3qyQx5baBNW56a6B+2B60Ypvvv052CiZMbD+yOviM2lDJz4+Uw+cn\nBycgFDG0EvC8oNYih+L0WngGYNzLK1A8gqkVcou2+32yqOj8TiZpIQ5+6G9W\nUk+jjpV1zzWo04KvuiE5sZu/YfzBe+a0eeTfhsBjC6q6KTtk/vc9auVpc9Bp\nz95ulHKviMtweXoeILu2uXxE92+EARsDik1iPDoNq8taBf1qtxcVsN/ZQA6B\nDh90ManYsb2KcbjntjSU7DYSw0QaRka9Fn9gUWeKCFbI8Cm9+mprfcYS0Rs7\ne1XTasFICuz6yfKmD545tc8p0zWmqC6RwbF7syeWo3WIc3ggb7yCInFbw2H2\n5aPY\r\n=6kPj\r\n-----END PGP SIGNATURE-----\r\n","size":94905,"noattachment":false,"key":"/@aws-sdk/client-sts/-/@aws-sdk/client-sts-1.0.0-gamma.10.tgz"},"main":"./dist/cjs/index.js","types":"./types/index.d.ts","module":"./dist/es/index.js","browser":{"./runtimeConfig":"./runtimeConfig.browser"},"engines":{"node":">=8.0.0"},"scripts":{"test":"exit 0","build":"yarn build:cjs && yarn build:es","clean":"npm run remove-definitions && npm run remove-dist","pretest":"yarn build:cjs","build:es":"tsc -p tsconfig.es.json","build:cjs":"tsc -p tsconfig.json","remove-dist":"rimraf ./dist","prepublishOnly":"yarn build","remove-definitions":"rimraf ./types","build-documentation":"npm run clean && typedoc ./","remove-documentation":"rimraf ./docs"},"_npmUser":{"name":"aws-sdk-bot","email":"aws-sdk-js@amazon.com"},"_npmVersion":"6.14.4","description":"@aws-sdk/client-sts client","directories":{},"sideEffects":false,"_nodeVersion":"12.18.0","dependencies":{"tslib":"^2.0.0","@aws-sdk/types":"1.0.0-gamma.6","fast-xml-parser":"^3.16.0","@aws-sdk/hash-node":"1.0.0-gamma.7","@aws-crypto/sha256-js":"^1.0.0-alpha.0","@aws-sdk/protocol-http":"1.0.0-gamma.7","@aws-sdk/smithy-client":"1.0.0-gamma.8","@aws-sdk/util-utf8-node":"1.0.0-gamma.6","@aws-sdk/config-resolver":"1.0.0-gamma.8","@aws-sdk/url-parser-node":"1.0.0-gamma.7","@aws-sdk/middleware-retry":"1.0.0-gamma.8","@aws-sdk/middleware-serde":"1.0.0-gamma.7","@aws-sdk/middleware-stack":"1.0.0-gamma.7","@aws-sdk/util-base64-node":"1.0.0-gamma.6","@aws-crypto/sha256-browser":"^1.0.0-alpha.0","@aws-sdk/middleware-logger":"1.0.0-gamma.2","@aws-sdk/node-http-handler":"1.0.0-gamma.8","@aws-sdk/util-utf8-browser":"1.0.0-gamma.6","@aws-sdk/fetch-http-handler":"1.0.0-gamma.9","@aws-sdk/invalid-dependency":"1.0.0-gamma.5","@aws-sdk/middleware-signing":"1.0.0-gamma.7","@aws-sdk/url-parser-browser":"1.0.0-gamma.7","@aws-sdk/util-base64-browser":"1.0.0-gamma.6","@aws-sdk/node-config-provider":"1.0.0-gamma.3","@aws-sdk/util-user-agent-node":"1.0.0-gamma.8","@aws-sdk/middleware-user-agent":"1.0.0-gamma.7","@aws-sdk/util-body-length-node":"1.0.0-gamma.6","@aws-sdk/middleware-host-header":"1.0.0-gamma.8","@aws-sdk/util-user-agent-browser":"1.0.0-gamma.7","@aws-sdk/credential-provider-node":"1.0.0-gamma.8","@aws-sdk/util-body-length-browser":"1.0.0-gamma.6","@aws-sdk/middleware-content-length":"1.0.0-gamma.7"},"react-native":{"./runtimeConfig":"./runtimeConfig.native"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^26.1.0","rimraf":"^3.0.0","typedoc":"^0.17.8","typescript":"~4.0.2","@types/node":"^12.7.5","@aws-sdk/client-documentation-generator":"1.0.0-gamma.6"},"_npmOperationalInternal":{"tmp":"tmp/client-sts_1.0.0-gamma.10_1601406083678_0.7747492338719464","host":"s3://npm-registry-packages"},"readme":"<!-- generated file, do not edit directly -->\n\n# @aws-sdk/client-sts\n\n## Description\n\nAWS SDK for JavaScript STS Client for Node.js, Browser and React Native.\n\n<fullname>Security Token Service</fullname>\n\n<p>Security Token Service (STS) enables you to request temporary, limited-privilege\ncredentials for users. This guide provides descriptions of the STS API. For\nmore information about using this service, see <a href=\"https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp.html\">Temporary Security Credentials</a>.</p>\n\n## Installing\n\nTo install the this package, simply type add or install @aws-sdk/client-sts\nusing your favorite package manager:\n\n- `npm install @aws-sdk/client-sts`\n- `yarn add @aws-sdk/client-sts`\n- `pnpm add @aws-sdk/client-sts`\n\n## Getting Started\n\n### Import\n\nThe AWS SDK is modulized by clients and commands.\nTo send a request, you only need to import the `STSClient` and\nthe commands you need, for example `GetCallerIdentityCommand`:\n\n```js\n// ES5 example\nconst { STSClient, GetCallerIdentityCommand } = require(\"@aws-sdk/client-sts\");\n```\n\n```ts\n// ES6+ example\nimport { STSClient, GetCallerIdentityCommand } from \"@aws-sdk/client-sts\";\n```\n\n### Usage\n\nTo send a request, you:\n\n- Initiate client with configuration (e.g. credentials, region).\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```js\n// a client can be shared by different commands.\nconst client = new STSClient({ region: \"REGION\" });\n\nconst params = {\n  /** input parameters */\n};\nconst command = new GetCallerIdentityCommand(params);\n```\n\n#### Async/await\n\nWe recommend using [await](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/await)\noperator to wait for the promise returned by send operation as follows:\n\n```js\n// async/await.\ntry {\n  const data = await client.send(command);\n  // process data.\n} catch (error) {\n  // error handling.\n} finally {\n  // finally.\n}\n```\n\nAsync-await is clean, concise, intuitive, easy to debug and has better error handling\nas compared to using Promise chains or callbacks.\n\n#### Promises\n\nYou can also use [Promise chaining](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Using_promises#chaining)\nto execute send operation.\n\n```js\nclient.send(command).then(\n  (data) => {\n    // process data.\n  },\n  (error) => {\n    // error handling.\n  }\n);\n```\n\nPromises can also be called using `.catch()` and `.finally()` as follows:\n\n```js\nclient\n  .send(command)\n  .then((data) => {\n    // process data.\n  })\n  .catch((error) => {\n    // error handling.\n  })\n  .finally(() => {\n    // finally.\n  });\n```\n\n#### Callbacks\n\nWe do not recommend using callbacks because of [callback hell](http://callbackhell.com/),\nbut they are supported by the send operation.\n\n```js\n// callbacks.\nclient.send(command, (err, data) => {\n  // process err and data.\n});\n```\n\n#### v2 compatible style\n\nThe client can also send requests using v2 compatible style.\nHowever, it results in a bigger bundle size and may be dropped in next major version. More details in the blog post\non [modular packages in AWS SDK for JavaScript](https://aws.amazon.com/blogs/developer/modular-packages-in-aws-sdk-for-javascript/)\n\n```ts\nimport * as AWS from \"@aws-sdk/client-sts\";\nconst client = new AWS.STS({ region: \"REGION\" });\n\n// async/await.\ntry {\n  const data = await client.getCallerIdentity(params);\n  // process data.\n} catch (error) {\n  // error handling.\n}\n\n// Promises.\nclient\n  .getCallerIdentity(params)\n  .then((data) => {\n    // process data.\n  })\n  .catch((error) => {\n    // error handling.\n  });\n\n// callbacks.\nclient.getCallerIdentity(params, (err, data) => {\n  // process err and data.\n});\n```\n\n### Troubleshooting\n\nWhen the service returns an exception, the error will include the exception information,\nas well as response metadata (e.g. request id).\n\n```js\ntry {\n  const data = await client.send(command);\n  // process data.\n} catch (error) {\n  const { requestId, cfId, extendedRequestId } = error.$metadata;\n  console.log({ requestId, cfId, extendedRequestId });\n  /**\n   * The keys within exceptions are also parsed.\n   * 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.\nWe use the GitHub issues for tracking bugs and feature requests, but have limited bandwidth to address them.\n\n- Visit [Developer Guide](https://docs.aws.amazon.com/sdk-for-javascript/v3/developer-guide/welcome.html)\n  or [API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/index.html).\n- Check out the blog posts tagged with [`aws-sdk-js`](https://aws.amazon.com/blogs/developer/tag/aws-sdk-js/)\n  on AWS Developer Blog.\n- Ask a question on [StackOverflow](https://stackoverflow.com/questions/tagged/aws-sdk-js) and tag it with `aws-sdk-js`.\n- 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/new/choose).\n\nTo test your universal JavaScript code in Node.js, browser and react-native environments,\nvisit our [code samples repo](https://github.com/aws-samples/aws-sdk-js-tests).\n\n## Contributing\n\nThis client code is generated automatically. Any modifications will be overwritten the next time the `@aws-sdk/client-sts` package is updated.\nTo contribute to client you can check our [generate clients scripts](https://github.com/aws/aws-sdk-js-v3/tree/main/scripts/generate-clients).\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## Client Commands (Operations List)\n\n<details>\n<summary>\nAssumeRole\n</summary>\n\n[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/sts/command/AssumeRoleCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-sts/Interface/AssumeRoleCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-sts/Interface/AssumeRoleCommandOutput/)\n\n</details>\n<details>\n<summary>\nAssumeRoleWithSAML\n</summary>\n\n[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/sts/command/AssumeRoleWithSAMLCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-sts/Interface/AssumeRoleWithSAMLCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-sts/Interface/AssumeRoleWithSAMLCommandOutput/)\n\n</details>\n<details>\n<summary>\nAssumeRoleWithWebIdentity\n</summary>\n\n[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/sts/command/AssumeRoleWithWebIdentityCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-sts/Interface/AssumeRoleWithWebIdentityCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-sts/Interface/AssumeRoleWithWebIdentityCommandOutput/)\n\n</details>\n<details>\n<summary>\nDecodeAuthorizationMessage\n</summary>\n\n[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/sts/command/DecodeAuthorizationMessageCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-sts/Interface/DecodeAuthorizationMessageCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-sts/Interface/DecodeAuthorizationMessageCommandOutput/)\n\n</details>\n<details>\n<summary>\nGetAccessKeyInfo\n</summary>\n\n[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/sts/command/GetAccessKeyInfoCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-sts/Interface/GetAccessKeyInfoCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-sts/Interface/GetAccessKeyInfoCommandOutput/)\n\n</details>\n<details>\n<summary>\nGetCallerIdentity\n</summary>\n\n[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/sts/command/GetCallerIdentityCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-sts/Interface/GetCallerIdentityCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-sts/Interface/GetCallerIdentityCommandOutput/)\n\n</details>\n<details>\n<summary>\nGetFederationToken\n</summary>\n\n[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/sts/command/GetFederationTokenCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-sts/Interface/GetFederationTokenCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-sts/Interface/GetFederationTokenCommandOutput/)\n\n</details>\n<details>\n<summary>\nGetSessionToken\n</summary>\n\n[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/sts/command/GetSessionTokenCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-sts/Interface/GetSessionTokenCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-sts/Interface/GetSessionTokenCommandOutput/)\n\n</details>\n","publish_time":1601406083780,"maintainers":[{"name":"mattsb42-aws","email":"bullocm@amazon.com"},{"name":"kuhe","email":"george.jing.fu+npm@gmail.com"},{"name":"amzn-oss","email":"osa-3p@amazon.com"},{"name":"aws-sdk-bot","email":"aws-sdk-js-automation@amazon.com"},{"name":"trivikr-aws","email":"trivikr@amazon.com"}],"_cnpm_publish_time":1601406083780,"dist-tags":{"alpha":"1.0.0-alpha.18","beta":"1.0.0-beta.5","gamma":"1.0.0-gamma.11","latest":"3.1163.0","rc":"3.5.1-rc.0"}}