class Amazonite::Iam::PasswordPolicy

Overview

Contains information about the account password policy.

This data type is used as a response element in the GetAccountPasswordPolicy operation.

Defined in:

iam/password_policy.cr

Constructors

Instance Method Summary

Constructor Detail

def self.from_xml(node : XML::Node) : self #

[View source]
def self.new(minimum_password_length : Int32 | Nil = nil, require_symbols : Bool | Nil = nil, require_numbers : Bool | Nil = nil, require_uppercase_characters : Bool | Nil = nil, require_lowercase_characters : Bool | Nil = nil, allow_users_to_change_password : Bool | Nil = nil, expire_passwords : Bool | Nil = nil, max_password_age : Int32 | Nil = nil, password_reuse_prevention : Int32 | Nil = nil, hard_expiry : Bool | Nil = nil) #

[View source]

Instance Method Detail

def ==(other : self) #
Description copied from class Reference

Returns true if this reference is the same as other. Invokes same?.


def allow_users_to_change_password : Bool | Nil #

Specifies whether IAM users are allowed to change their own password. Gives IAM users permissions to iam:ChangePassword for only their user and to the iam:GetAccountPasswordPolicy action. This option does not attach a permissions policy to each user, rather the permissions are applied at the account-level for all users by IAM.


[View source]
def allow_users_to_change_password=(allow_users_to_change_password : Bool | Nil) #

Specifies whether IAM users are allowed to change their own password. Gives IAM users permissions to iam:ChangePassword for only their user and to the iam:GetAccountPasswordPolicy action. This option does not attach a permissions policy to each user, rather the permissions are applied at the account-level for all users by IAM.


[View source]
def expire_passwords : Bool | Nil #

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.


[View source]
def expire_passwords=(expire_passwords : Bool | Nil) #

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.


[View source]
def hard_expiry : Bool | Nil #

Specifies whether IAM users are prevented from setting a new password via the Amazon Web Services Management Console after their password has expired. The IAM user cannot access the console until an administrator resets the password. IAM users with iam:ChangePassword permission and active access keys can reset their own expired console password using the CLI or API.


[View source]
def hard_expiry=(hard_expiry : Bool | Nil) #

Specifies whether IAM users are prevented from setting a new password via the Amazon Web Services Management Console after their password has expired. The IAM user cannot access the console until an administrator resets the password. IAM users with iam:ChangePassword permission and active access keys can reset their own expired console password using the CLI or API.


[View source]
def hash(hasher) #
Description copied from class Reference

See Object#hash(hasher)


def max_password_age : Int32 | Nil #

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


[View source]
def max_password_age=(max_password_age : Int32 | Nil) #

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


[View source]
def minimum_password_length : Int32 | Nil #

Minimum length to require for IAM user passwords.


[View source]
def minimum_password_length=(minimum_password_length : Int32 | Nil) #

Minimum length to require for IAM user passwords.


[View source]
def password_reuse_prevention : Int32 | Nil #

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


[View source]
def password_reuse_prevention=(password_reuse_prevention : Int32 | Nil) #

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


[View source]
def require_lowercase_characters : Bool | Nil #

Specifies whether IAM user passwords must contain at least one lowercase character (a to z).


[View source]
def require_lowercase_characters=(require_lowercase_characters : Bool | Nil) #

Specifies whether IAM user passwords must contain at least one lowercase character (a to z).


[View source]
def require_numbers : Bool | Nil #

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


[View source]
def require_numbers=(require_numbers : Bool | Nil) #

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


[View source]
def require_symbols : Bool | Nil #

Specifies whether IAM user passwords must contain at least one of the following symbols:

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


[View source]
def require_symbols=(require_symbols : Bool | Nil) #

Specifies whether IAM user passwords must contain at least one of the following symbols:

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


[View source]
def require_uppercase_characters : Bool | Nil #

Specifies whether IAM user passwords must contain at least one uppercase character (A to Z).


[View source]
def require_uppercase_characters=(require_uppercase_characters : Bool | Nil) #

Specifies whether IAM user passwords must contain at least one uppercase character (A to Z).


[View source]
def to_query_params(prefix : String) : Array(Tuple(String, String)) #

[View source]
def validate! : Nil #

[View source]