Registry / auth / sts
library2.37.1javamavenunverified

The AWS Java SDK for AWS STS module holds the client classes that are used for communicating with AWS Security Token Service.

<dependency> <groupId>software.amazon.awssdk</groupId> <artifactId>sts</artifactId> <version>2.37.1</version> </dependency>
INSTALL
IMPORT
SIG · STS
S
sts
authjavav2.37.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

StsClient
software.amazon.awssdk.services.sts.StsClient

Gets the AWS account ID of the current caller using STS.

import software.amazon.awssdk.services.sts.StsClient; import software.amazon.awssdk.services.sts.model.GetCallerIdentityRequest; import software.amazon.awssdk.services.sts.model.GetCallerIdentityResponse; public class Quickstart { public static void main(String[] args) { try (StsClient stsClient = StsClient.create()) { GetCallerIdentityResponse response = stsClient.getCallerIdentity(GetCallerIdentityRequest.builder().build()); System.out.println("Account: " + response.account()); } } }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
2.37.1latest on Maven
Audit
Dependencies

No dependency data recorded yet.

Agent activity
39 hits · last 30 days
node
32
Amazon
1
Resources