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

fix(examples): adjust discovery example wording #738

Merged
merged 2 commits into from
Mar 2, 2022
Merged
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
7 changes: 3 additions & 4 deletions examples/kms_discovery.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -201,10 +201,9 @@ int main(int argc, char **argv) {
.WithKmsClient(create_kms_client(Aws::Region::EU_CENTRAL_1))
.BuildDiscovery());

/* This will only attempt to decrypt using keys owned by the specified AWS
* account. It will succeed if the message was encrypted with any KMS key
* owned by the specified AWS account and for which you have Decrypt
* permissions.
/* This will attempt to decrypt using only KMS keys in the specified AWS account.
* It will succeed if the message was encrypted with any KMS key in the
* specified AWS account and for which you have kms:Decrypt permission.
*/
const Aws::String filter_account_id = parsed_arn_us_west_2.GetAccountId();
std::shared_ptr<Aws::Cryptosdk::KmsKeyring::DiscoveryFilter> discovery_filter =
Expand Down