AWS Security ChangesHomeSearch

AWS code-library documentation change

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

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

Summary

Added PowerShell V5 example for retrieving account password policy details

Security assessment

Documents password policy inspection capabilities but does not indicate remediation of a security flaw. Password policies are security features but this is routine documentation.

Diff

diff --git a/code-library/latest/ug/iam_example_iam_GetAccountPasswordPolicy_section.md b/code-library/latest/ug/iam_example_iam_GetAccountPasswordPolicy_section.md
index 2a969f2f9..d39ba991d 100644
--- a//code-library/latest/ug/iam_example_iam_GetAccountPasswordPolicy_section.md
+++ b//code-library/latest/ug/iam_example_iam_GetAccountPasswordPolicy_section.md
@@ -218,0 +219,28 @@ PowerShell
+**Tools for PowerShell V5**
+    
+
+**Example 1: This example returns details about the password policy for the current account. If no password policy is defined for the account, the command returns a`NoSuchEntity` error.**
+    
+    
+    Get-IAMAccountPasswordPolicy
+    
+
+**Output:**
+    
+    
+    AllowUsersToChangePassword : True
+    ExpirePasswords            : True
+    HardExpiry                 : False
+    MaxPasswordAge             : 90
+    MinimumPasswordLength      : 8
+    PasswordReusePrevention    : 20
+    RequireLowercaseCharacters : True
+    RequireNumbers             : True
+    RequireSymbols             : False
+    RequireUppercaseCharacters : True
+
+  * For API details, see [GetAccountPasswordPolicy](https://docs.aws.amazon.com/powershell/v5/reference) in _AWS Tools for PowerShell Cmdlet Reference (V5)_. 
+
+
+
+