updateAccountPasswordPolicy

Updates the password policy settings for the Amazon Web Services account.

This operation does not support partial updates. No parameters are required, but if you do not specify a parameter, that parameter's value reverts to its default value. See the Request Parameters section for each parameter's default value. Also note that some parameters do not allow the default parameter to be explicitly set. Instead, to invoke the default value, do not include that parameter when you invoke the operation.

For more information about using a password policy, see Managing an IAM password policy in the IAM User Guide.

Samples


fun main() { 
   //sampleStart 
   // The following command sets the password policy to require a minimum length of eight characters and
// to require one or more numbers in the password
iamClient.updateAccountPasswordPolicy {
    minimumPasswordLength = 8
    requireNumbers = true
} 
   //sampleEnd
}