Skip to content

Commit

Permalink
Fix DSQL SDK token generation example (#3937)
Browse files Browse the repository at this point in the history
## Motivation and Context
This example doesn't reflect the token generation API accurately, this
PR fixes that.

## Description
Fix the example by using the right API.

## Testing
Documentation update on an ignored code block, no testing required

## Checklist
<!--- If a checkbox below is not applicable, then please DELETE it
rather than leaving it unchecked -->

----

_By submitting this pull request, I confirm that you can use, modify,
copy, and redistribute this contribution, under the terms of your
choice._
  • Loading branch information
Benjscho authored Dec 5, 2024
1 parent 20ad770 commit cd4d650
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion aws/rust-runtime/aws-inlineable/src/dsql_auth_token.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ const SERVICE: &str = "dsql";
/// .build()
/// .expect("cfg is valid"),
/// );
/// let token = generator.auth_token(&cfg).await.unwrap();
/// let token = generator.db_connect_admin_auth_token(&cfg).await.unwrap();
/// println!("{token}");
/// }
/// ```
Expand Down

0 comments on commit cd4d650

Please sign in to comment.