Skip to content

Commit

Permalink
Added doc comments to SecretsManager ListSecrets code example; remove…
Browse files Browse the repository at this point in the history
…d SecretsManage helloworld as it is a duplicate of the create-secret code example (#510)
  • Loading branch information
Doug-AWS authored Jun 16, 2021
1 parent ff958ba commit 04dfa49
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 107 deletions.
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

0 comments on commit 04dfa49

Please sign in to comment.