Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated SecretsManager code examples #510

Merged
merged 1 commit into from
Jun 16, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
107 changes: 0 additions & 107 deletions aws/sdk/examples/secretsmanager/src/bin/helloworld.rs

This file was deleted.

7 changes: 7 additions & 0 deletions aws/sdk/examples/secretsmanager/src/bin/list-secrets.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,13 @@ struct Opt {
verbose: bool,
}

/// Lists the names of your secrets.
/// # Arguments
///
/// * `[-d DEFAULT-REGION]` - The region in which the client is created.
/// If not supplied, uses the value of the **AWS_DEFAULT_REGION** environment variable.
/// If the environment variable is not set, defaults to **us-west-2**.
/// * `[-v]` - Whether to display additional information.
#[tokio::main]
async fn main() {
let Opt { region, verbose } = Opt::from_args();
Expand Down