Skip to content

Commit 28c9d76

Browse files
authored
Added doc comment to STS credentials-provider code example (#513)
1 parent 80bfbcd commit 28c9d76

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

aws/sdk/examples/sts/src/bin/credentials-provider.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ use std::sync::{Arc, Mutex};
88
use std::time::{Duration, SystemTime};
99
use sts::Credentials;
1010

11+
/// Implements a basic version of ProvideCredentials with AWS STS
12+
/// and lists the tables in the region based on those credentials.
1113
#[tokio::main]
1214
async fn main() -> Result<(), dynamodb::Error> {
1315
tracing_subscriber::fmt::init();
@@ -26,7 +28,7 @@ async fn main() -> Result<(), dynamodb::Error> {
2628
Ok(())
2729
}
2830

29-
/// This is a rough example of how you could implement ProvideCredentials with Sts
31+
/// This is a rough example of how you could implement ProvideCredentials with Amazon STS.
3032
///
3133
/// Do not use this in production! A high quality implementation is in the roadmap.
3234
#[derive(Clone)]

0 commit comments

Comments
 (0)