Registry / cloud / aws-sdk-sts

aws-sdk-sts

JSON →
library1.107.0rscratesunverified

AWS SDK for AWS Security Token Service, providing APIs to request temporary credentials for AWS resources.

# Cargo.toml [dependencies] aws-sdk-sts = "1.107.0"
INSTALL
IMPORT
SIG · AWS-SDK-STS
A
aws-sdk-sts
cloudrustv1.107.0
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.

Client
use aws_sdk_sts::Client;

Creates an STS client and retrieves the caller identity.

use aws_sdk_sts::Client; #[tokio::main] async fn main() { let config = aws_config::load_from_env().await; let client = Client::new(&config); let caller = client.get_caller_identity().send().await.unwrap(); println!("Account: {:?}", caller.account()); }
Debug
Known issues
gotchaRequires an async runtime (e.g., Tokio) to execute requests.
fix
Add tokio as a dependency and annotate main with #[tokio::main].
affects: >=1.0.0
Upgrade
Version history
1.107.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
31 hits · last 30 days
node
28
Resources
aws-sdk-sts — cargo add aws-sdk-sts · libregistry