Skip to content

Instantly share code, notes, and snippets.

@awswithdotnet
Created September 5, 2022 21:45
Embed
What would you like to do?
3 things kms 090122 - list keys
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