getAccountPasswordPolicy

abstract suspend fun getAccountPasswordPolicy(input: GetAccountPasswordPolicyRequest = GetAccountPasswordPolicyRequest { }): GetAccountPasswordPolicyResponse

Retrieves the password policy for the Amazon Web Services account. This tells you the complexity requirements and mandatory rotation periods for the IAM user passwords in your account. For more information about using a password policy, see Managing an IAM password policy.

Samples


fun main() { 
   //sampleStart 
   // The following command displays details about the password policy for the current AWS account.
val resp = iamClient.getAccountPasswordPolicy() 
   //sampleEnd
}