You are viewing documentation for version 3 of the AWS SDK for Ruby. Version 2 documentation can be found here.

Class: Aws::IAM::Types::UpdateAccountPasswordPolicyRequest

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-iam/lib/aws-sdk-iam/types.rb

Overview

Note:

When making an API call, you may pass UpdateAccountPasswordPolicyRequest data as a hash:

{
  minimum_password_length: 1,
  require_symbols: false,
  require_numbers: false,
  require_uppercase_characters: false,
  require_lowercase_characters: false,
  allow_users_to_change_password: false,
  max_password_age: 1,
  password_reuse_prevention: 1,
  hard_expiry: false,
}

Instance Attribute Summary collapse

Instance Attribute Details

#allow_users_to_change_passwordBoolean

Allows all IAM users in your account to use the AWS Management Console to change their own passwords. For more information, see Letting IAM Users Change Their Own Passwords in the IAM User Guide.

If you do not specify a value for this parameter, then the operation uses the default value of false. The result is that IAM users in the account do not automatically have permissions to change their own password.

Returns:

  • (Boolean)


10147
10148
10149
10150
10151
10152
10153
10154
10155
10156
10157
10158
# File 'gems/aws-sdk-iam/lib/aws-sdk-iam/types.rb', line 10147

class UpdateAccountPasswordPolicyRequest < Struct.new(
  :minimum_password_length,
  :require_symbols,
  :require_numbers,
  :require_uppercase_characters,
  :require_lowercase_characters,
  :allow_users_to_change_password,
  :max_password_age,
  :password_reuse_prevention,
  :hard_expiry)
  include Aws::Structure
end

#hard_expiryBoolean

Prevents IAM users from setting a new password after their password has expired. The IAM user cannot be accessed until an administrator resets the password.

If you do not specify a value for this parameter, then the operation uses the default value of false. The result is that IAM users can change their passwords after they expire and continue to sign in as the user.

Returns:

  • (Boolean)


10147
10148
10149
10150
10151
10152
10153
10154
10155
10156
10157
10158
# File 'gems/aws-sdk-iam/lib/aws-sdk-iam/types.rb', line 10147

class UpdateAccountPasswordPolicyRequest < Struct.new(
  :minimum_password_length,
  :require_symbols,
  :require_numbers,
  :require_uppercase_characters,
  :require_lowercase_characters,
  :allow_users_to_change_password,
  :max_password_age,
  :password_reuse_prevention,
  :hard_expiry)
  include Aws::Structure
end

#max_password_ageInteger

The number of days that an IAM user password is valid.

If you do not specify a value for this parameter, then the operation uses the default value of 0. The result is that IAM user passwords never expire.

Returns:

  • (Integer)


10147
10148
10149
10150
10151
10152
10153
10154
10155
10156
10157
10158
# File 'gems/aws-sdk-iam/lib/aws-sdk-iam/types.rb', line 10147

class UpdateAccountPasswordPolicyRequest < Struct.new(
  :minimum_password_length,
  :require_symbols,
  :require_numbers,
  :require_uppercase_characters,
  :require_lowercase_characters,
  :allow_users_to_change_password,
  :max_password_age,
  :password_reuse_prevention,
  :hard_expiry)
  include Aws::Structure
end

#minimum_password_lengthInteger

The minimum number of characters allowed in an IAM user password.

If you do not specify a value for this parameter, then the operation uses the default value of 6.

Returns:

  • (Integer)


10147
10148
10149
10150
10151
10152
10153
10154
10155
10156
10157
10158
# File 'gems/aws-sdk-iam/lib/aws-sdk-iam/types.rb', line 10147

class UpdateAccountPasswordPolicyRequest < Struct.new(
  :minimum_password_length,
  :require_symbols,
  :require_numbers,
  :require_uppercase_characters,
  :require_lowercase_characters,
  :allow_users_to_change_password,
  :max_password_age,
  :password_reuse_prevention,
  :hard_expiry)
  include Aws::Structure
end

#password_reuse_preventionInteger

Specifies the number of previous passwords that IAM users are prevented from reusing.

If you do not specify a value for this parameter, then the operation uses the default value of 0. The result is that IAM users are not prevented from reusing previous passwords.

Returns:

  • (Integer)


10147
10148
10149
10150
10151
10152
10153
10154
10155
10156
10157
10158
# File 'gems/aws-sdk-iam/lib/aws-sdk-iam/types.rb', line 10147

class UpdateAccountPasswordPolicyRequest < Struct.new(
  :minimum_password_length,
  :require_symbols,
  :require_numbers,
  :require_uppercase_characters,
  :require_lowercase_characters,
  :allow_users_to_change_password,
  :max_password_age,
  :password_reuse_prevention,
  :hard_expiry)
  include Aws::Structure
end

#require_lowercase_charactersBoolean

Specifies whether IAM user passwords must contain at least one lowercase character from the ISO basic Latin alphabet (a to z).

If you do not specify a value for this parameter, then the operation uses the default value of false. The result is that passwords do not require at least one lowercase character.

Returns:

  • (Boolean)


10147
10148
10149
10150
10151
10152
10153
10154
10155
10156
10157
10158
# File 'gems/aws-sdk-iam/lib/aws-sdk-iam/types.rb', line 10147

class UpdateAccountPasswordPolicyRequest < Struct.new(
  :minimum_password_length,
  :require_symbols,
  :require_numbers,
  :require_uppercase_characters,
  :require_lowercase_characters,
  :allow_users_to_change_password,
  :max_password_age,
  :password_reuse_prevention,
  :hard_expiry)
  include Aws::Structure
end

#require_numbersBoolean

Specifies whether IAM user passwords must contain at least one numeric character (0 to 9).

If you do not specify a value for this parameter, then the operation uses the default value of false. The result is that passwords do not require at least one numeric character.

Returns:

  • (Boolean)


10147
10148
10149
10150
10151
10152
10153
10154
10155
10156
10157
10158
# File 'gems/aws-sdk-iam/lib/aws-sdk-iam/types.rb', line 10147

class UpdateAccountPasswordPolicyRequest < Struct.new(
  :minimum_password_length,
  :require_symbols,
  :require_numbers,
  :require_uppercase_characters,
  :require_lowercase_characters,
  :allow_users_to_change_password,
  :max_password_age,
  :password_reuse_prevention,
  :hard_expiry)
  include Aws::Structure
end

#require_symbolsBoolean

Specifies whether IAM user passwords must contain at least one of the following non-alphanumeric characters:

! @ # $ % ^ & * ( ) _ + - = [ ] \{ \} | '

If you do not specify a value for this parameter, then the operation uses the default value of false. The result is that passwords do not require at least one symbol character.

Returns:

  • (Boolean)


10147
10148
10149
10150
10151
10152
10153
10154
10155
10156
10157
10158
# File 'gems/aws-sdk-iam/lib/aws-sdk-iam/types.rb', line 10147

class UpdateAccountPasswordPolicyRequest < Struct.new(
  :minimum_password_length,
  :require_symbols,
  :require_numbers,
  :require_uppercase_characters,
  :require_lowercase_characters,
  :allow_users_to_change_password,
  :max_password_age,
  :password_reuse_prevention,
  :hard_expiry)
  include Aws::Structure
end

#require_uppercase_charactersBoolean

Specifies whether IAM user passwords must contain at least one uppercase character from the ISO basic Latin alphabet (A to Z).

If you do not specify a value for this parameter, then the operation uses the default value of false. The result is that passwords do not require at least one uppercase character.

Returns:

  • (Boolean)


10147
10148
10149
10150
10151
10152
10153
10154
10155
10156
10157
10158
# File 'gems/aws-sdk-iam/lib/aws-sdk-iam/types.rb', line 10147

class UpdateAccountPasswordPolicyRequest < Struct.new(
  :minimum_password_length,
  :require_symbols,
  :require_numbers,
  :require_uppercase_characters,
  :require_lowercase_characters,
  :allow_users_to_change_password,
  :max_password_age,
  :password_reuse_prevention,
  :hard_expiry)
  include Aws::Structure
end