Skip to content

Commit

Permalink
Update examples/kms_discovery.cpp
Browse files Browse the repository at this point in the history
Co-authored-by: June Blender <juneb@users.noreply.github.com>
  • Loading branch information
2 people authored and smswz committed Mar 2, 2022
1 parent 20254c5 commit 64a6157
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/kms_discovery.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -201,9 +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 in the specified AWS account.
/* 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 Decrypt permissions.
* 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

0 comments on commit 64a6157

Please sign in to comment.