Skip to content
Snippets Groups Projects
Unverified Commit 28c9d764 authored by Doug's avatar Doug Committed by GitHub
Browse files

Added doc comment to STS credentials-provider code example (#513)

parent 80bfbcd1
Branches
Tags
No related merge requests found
...@@ -8,6 +8,8 @@ use std::sync::{Arc, Mutex}; ...@@ -8,6 +8,8 @@ use std::sync::{Arc, Mutex};
use std::time::{Duration, SystemTime}; use std::time::{Duration, SystemTime};
use sts::Credentials; use sts::Credentials;
/// Implements a basic version of ProvideCredentials with AWS STS
/// and lists the tables in the region based on those credentials.
#[tokio::main] #[tokio::main]
async fn main() -> Result<(), dynamodb::Error> { async fn main() -> Result<(), dynamodb::Error> {
tracing_subscriber::fmt::init(); tracing_subscriber::fmt::init();
...@@ -26,7 +28,7 @@ async fn main() -> Result<(), dynamodb::Error> { ...@@ -26,7 +28,7 @@ async fn main() -> Result<(), dynamodb::Error> {
Ok(()) Ok(())
} }
/// This is a rough example of how you could implement ProvideCredentials with Sts /// This is a rough example of how you could implement ProvideCredentials with Amazon STS.
/// ///
/// Do not use this in production! A high quality implementation is in the roadmap. /// Do not use this in production! A high quality implementation is in the roadmap.
#[derive(Clone)] #[derive(Clone)]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment