There are more AWS SDK examples available in the AWS Doc SDK Examples
Code examples for AWS STS using AWS SDKs
The following code examples show you how to use AWS Security Token Service with an AWS software development kit (SDK).
Actions are code excerpts from larger programs and must be run in context. While actions show you how to call individual service functions, you can see actions in context in their related scenarios.
Scenarios are code examples that show you how to accomplish specific tasks by calling multiple functions within a service or combined with other AWS services.
More resources
AWS STS User Guide – More information about AWS STS.
AWS STS API Reference – Details about all available AWS STS actions.
AWS Developer Center
– Code examples that you can filter by category or full-text search. AWS SDK Examples
– GitHub repo with complete code in preferred languages. Includes instructions for setting up and running the code.