AWS Security ChangesHomeSearch

AWS code-library documentation change

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

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

Summary

Added PowerShell V5 example for service last accessed details

Security assessment

Documents access tracking capabilities relevant to security posture, no vulnerability remediation

Diff

diff --git a/code-library/latest/ug/iam_example_iam_GetServiceLastAccessedDetails_section.md b/code-library/latest/ug/iam_example_iam_GetServiceLastAccessedDetails_section.md
index f747e2027..9347869a5 100644
--- a//code-library/latest/ug/iam_example_iam_GetServiceLastAccessedDetails_section.md
+++ b//code-library/latest/ug/iam_example_iam_GetServiceLastAccessedDetails_section.md
@@ -76,0 +77,23 @@ PowerShell
+**Tools for PowerShell V5**
+    
+
+**Example 1: This example provides details of the service last accessed by the IAM entity(user, group, role or policy) associated in Request call.**
+    
+    
+    Request-IAMServiceLastAccessedDetail -Arn arn:aws:iam::123456789012:user/TestUser
+    
+
+**Output:**
+    
+    
+    f0b7a819-eab0-929b-dc26-ca598911cb9f
+    
+    
+    Get-IAMServiceLastAccessedDetail -JobId f0b7a819-eab0-929b-dc26-ca598911cb9f
+    
+
+  * For API details, see [GetServiceLastAccessedDetails](https://docs.aws.amazon.com/powershell/v5/reference) in _AWS Tools for PowerShell Cmdlet Reference (V5)_. 
+
+
+
+