AWS Security ChangesHomeSearch

AWS code-library documentation change

Service: code-library · 2025-06-28 · Documentation low

File: code-library/latest/ug/iam_example_iam_ListAccessKeys_section.md

Summary

Added PowerShell V5 example for ListAccessKeys command with sample output and API reference

Security assessment

The change adds a usage example but does not address any security vulnerability or weakness. It mentions standard procedure for lost keys without indicating any security incident.

Diff

diff --git a/code-library/latest/ug/iam_example_iam_ListAccessKeys_section.md b/code-library/latest/ug/iam_example_iam_ListAccessKeys_section.md
index c80f39a05..7508bb59f 100644
--- a//code-library/latest/ug/iam_example_iam_ListAccessKeys_section.md
+++ b//code-library/latest/ug/iam_example_iam_ListAccessKeys_section.md
@@ -529,0 +530,22 @@ PowerShell
+**Tools for PowerShell V5**
+    
+
+**Example 1: This command lists the access keys for the IAM user named`Bob`. Note that you cannot list the secret access keys for IAM users. If the secret access keys are lost, you must create new access keys with the `New-IAMAccessKey` cmdlet.**
+    
+    
+    Get-IAMAccessKey -UserName "Bob"
+    
+
+**Output:**
+    
+    
+    AccessKeyId                CreateDate                   Status              UserName
+    -----------                ----------                   ------              --------
+    AKIAIOSFODNN7EXAMPLE       12/3/2014 10:53:41 AM        Active              Bob
+    AKIAI44QH8DHBEXAMPLE       6/6/2013 8:42:26 PM          Inactive            Bob
+
+  * For API details, see [ListAccessKeys](https://docs.aws.amazon.com/powershell/v5/reference) in _AWS Tools for PowerShell Cmdlet Reference (V5)_. 
+
+
+
+