3 things kms 090122 - list keys
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var kmsClient = new AmazonKeyManagementServiceClient(); | |
var listKeysRequest = new ListKeysRequest(); | |
Task<ListKeysResponse> listKeysResponse = await client.ListKeysAsync(listKeysRequest); | |
listKeysResponse.Keys.ForEach(key => | |
{ | |
Console.WriteLine($"ID: {key.KeyId}, {key.KeyArn}"); | |
} | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment