@aws-sdk/client-sts
AWS SDK client for the Security Token Service, providing AssumeRole and GetCallerIdentity for temporary credentials.
Official Documentation ↗v3.658. Check the official docs for the latest API surface.Installation
npm install @aws-sdk/client-stsMethods
No methods match this filter.
@aws-sdk/client-sts is aws sdk client for the security token service, providing assumerole and getcalleridentity for temporary credentials. This page documents the core methods, installation, and common usage patterns for the current stable release.
Installation
Install @aws-sdk/client-sts with your preferred package manager using the command shown in the frontmatter. The package is published to the npm registry and ships with TypeScript types where applicable.
Core methods
The methods listed in the frontmatter cover the primary API surface. Each signature reflects the v3.658 release. Consult the official documentation linked in sourceUrl for advanced options, edge cases, and breaking changes between major versions.
Frequently asked questions
The faq section in the frontmatter answers the most common questions about @aws-sdk/client-sts, including comparisons with alternatives, configuration tips, and runtime requirements. If your question is not covered, check the source URL for the full guide.
FAQ
- When should I use STS?
- Use AssumeRole to get temporary credentials for cross-account access or to scope down permissions.
- What is a session name?
- RoleSessionName identifies the session in CloudTrail logs; use a meaningful value like the service name.
- How long do credentials last?
- 1 to 12 hours; set DurationSeconds or use the role default max session duration.
Report a problem with this API docOpens a pre-filled issue on GitHub.