You are viewing documentation for version 2 of the AWS SDK for Ruby. Version 3 documentation can be found here.
Class: Aws::IAM::AccountPasswordPolicy
- Inherits:
-
Resources::Resource
- Object
- Resources::Resource
- Aws::IAM::AccountPasswordPolicy
- Defined in:
- (unknown)
Instance Attribute Summary collapse
-
#allow_users_to_change_password ⇒ Boolean
readonly
Specifies whether IAM users are allowed to change their own password.
-
#expire_passwords ⇒ Boolean
readonly
Indicates whether passwords in the account expire.
-
#hard_expiry ⇒ Boolean
readonly
Specifies whether IAM users are prevented from setting a new password after their password has expired.
-
#max_password_age ⇒ Integer
readonly
The number of days that an IAM user password is valid.
-
#minimum_password_length ⇒ Integer
readonly
Minimum length to require for IAM user passwords.
-
#password_reuse_prevention ⇒ Integer
readonly
Specifies the number of previous passwords that IAM users are prevented from reusing.
-
#require_lowercase_characters ⇒ Boolean
readonly
Specifies whether to require lowercase characters for IAM user passwords.
-
#require_numbers ⇒ Boolean
readonly
Specifies whether to require numbers for IAM user passwords.
-
#require_symbols ⇒ Boolean
readonly
Specifies whether to require symbols for IAM user passwords.
-
#require_uppercase_characters ⇒ Boolean
readonly
Specifies whether to require uppercase characters for IAM user passwords.
Attributes inherited from Resources::Resource
Instance Method Summary collapse
-
#delete ⇒ Struct
Deletes the password policy for the AWS account.
-
#initialize ⇒ Object
constructor
-
#update(options = {}) ⇒ Struct
Updates the password policy settings for the AWS account.
-
This operation does not support partial updates.
-
Methods inherited from Resources::Resource
add_data_attribute, add_identifier, #data, data_attributes, #data_loaded?, identifiers, #load, #wait_until
Methods included from Resources::OperationMethods
#add_batch_operation, #add_operation, #batch_operation, #batch_operation_names, #batch_operations, #operation, #operation_names, #operations
Constructor Details
#initialize(options = {}) ⇒ Object #initialize(options = {}) ⇒ Object
Instance Attribute Details
#allow_users_to_change_password ⇒ Boolean (readonly)
Specifies whether IAM users are allowed to change their own password.
#expire_passwords ⇒ Boolean (readonly)
Indicates whether passwords in the account expire. Returns true if
MaxPasswordAge
contains a value greater than 0. Returns false if
MaxPasswordAge is 0 or not present.
#hard_expiry ⇒ Boolean (readonly)
Specifies whether IAM users are prevented from setting a new password after their password has expired.
#max_password_age ⇒ Integer (readonly)
The number of days that an IAM user password is valid.
#minimum_password_length ⇒ Integer (readonly)
Minimum length to require for IAM user passwords.
#password_reuse_prevention ⇒ Integer (readonly)
Specifies the number of previous passwords that IAM users are prevented from reusing.
#require_lowercase_characters ⇒ Boolean (readonly)
Specifies whether to require lowercase characters for IAM user passwords.
#require_numbers ⇒ Boolean (readonly)
Specifies whether to require numbers for IAM user passwords.
#require_symbols ⇒ Boolean (readonly)
Specifies whether to require symbols for IAM user passwords.
#require_uppercase_characters ⇒ Boolean (readonly)
Specifies whether to require uppercase characters for IAM user passwords.
Instance Method Details
#delete ⇒ Struct
Deletes the password policy for the AWS account. There are no parameters.
#update(options = {}) ⇒ Struct
Updates the password policy settings for the AWS 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.