Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Synopsis
- data PasswordPolicy = PasswordPolicy' {
- expirePasswords :: Maybe Bool
- minimumPasswordLength :: Maybe Natural
- requireNumbers :: Maybe Bool
- passwordReusePrevention :: Maybe Natural
- requireLowercaseCharacters :: Maybe Bool
- maxPasswordAge :: Maybe Natural
- hardExpiry :: Maybe Bool
- requireSymbols :: Maybe Bool
- requireUppercaseCharacters :: Maybe Bool
- allowUsersToChangePassword :: Maybe Bool
- newPasswordPolicy :: PasswordPolicy
- passwordPolicy_expirePasswords :: Lens' PasswordPolicy (Maybe Bool)
- passwordPolicy_minimumPasswordLength :: Lens' PasswordPolicy (Maybe Natural)
- passwordPolicy_requireNumbers :: Lens' PasswordPolicy (Maybe Bool)
- passwordPolicy_passwordReusePrevention :: Lens' PasswordPolicy (Maybe Natural)
- passwordPolicy_requireLowercaseCharacters :: Lens' PasswordPolicy (Maybe Bool)
- passwordPolicy_maxPasswordAge :: Lens' PasswordPolicy (Maybe Natural)
- passwordPolicy_hardExpiry :: Lens' PasswordPolicy (Maybe Bool)
- passwordPolicy_requireSymbols :: Lens' PasswordPolicy (Maybe Bool)
- passwordPolicy_requireUppercaseCharacters :: Lens' PasswordPolicy (Maybe Bool)
- passwordPolicy_allowUsersToChangePassword :: Lens' PasswordPolicy (Maybe Bool)
Documentation
data PasswordPolicy Source #
Contains information about the account password policy.
This data type is used as a response element in the GetAccountPasswordPolicy operation.
See: newPasswordPolicy
smart constructor.
PasswordPolicy' | |
|
Instances
newPasswordPolicy :: PasswordPolicy Source #
Create a value of PasswordPolicy
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:expirePasswords:PasswordPolicy'
, passwordPolicy_expirePasswords
- 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.
$sel:minimumPasswordLength:PasswordPolicy'
, passwordPolicy_minimumPasswordLength
- Minimum length to require for IAM user passwords.
$sel:requireNumbers:PasswordPolicy'
, passwordPolicy_requireNumbers
- Specifies whether IAM user passwords must contain at least one numeric
character (0 to 9).
$sel:passwordReusePrevention:PasswordPolicy'
, passwordPolicy_passwordReusePrevention
- Specifies the number of previous passwords that IAM users are prevented
from reusing.
$sel:requireLowercaseCharacters:PasswordPolicy'
, passwordPolicy_requireLowercaseCharacters
- Specifies whether IAM user passwords must contain at least one lowercase
character (a to z).
$sel:maxPasswordAge:PasswordPolicy'
, passwordPolicy_maxPasswordAge
- The number of days that an IAM user password is valid.
$sel:hardExpiry:PasswordPolicy'
, passwordPolicy_hardExpiry
- Specifies whether IAM users are prevented from setting a new password
after their password has expired.
$sel:requireSymbols:PasswordPolicy'
, passwordPolicy_requireSymbols
- Specifies whether IAM user passwords must contain at least one of the
following symbols:
! @ # $ % ^ & * ( ) _ + - = [ ] { } | '
$sel:requireUppercaseCharacters:PasswordPolicy'
, passwordPolicy_requireUppercaseCharacters
- Specifies whether IAM user passwords must contain at least one uppercase
character (A to Z).
$sel:allowUsersToChangePassword:PasswordPolicy'
, passwordPolicy_allowUsersToChangePassword
- Specifies whether IAM users are allowed to change their own password.
passwordPolicy_expirePasswords :: Lens' PasswordPolicy (Maybe Bool) Source #
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.
passwordPolicy_minimumPasswordLength :: Lens' PasswordPolicy (Maybe Natural) Source #
Minimum length to require for IAM user passwords.
passwordPolicy_requireNumbers :: Lens' PasswordPolicy (Maybe Bool) Source #
Specifies whether IAM user passwords must contain at least one numeric character (0 to 9).
passwordPolicy_passwordReusePrevention :: Lens' PasswordPolicy (Maybe Natural) Source #
Specifies the number of previous passwords that IAM users are prevented from reusing.
passwordPolicy_requireLowercaseCharacters :: Lens' PasswordPolicy (Maybe Bool) Source #
Specifies whether IAM user passwords must contain at least one lowercase character (a to z).
passwordPolicy_maxPasswordAge :: Lens' PasswordPolicy (Maybe Natural) Source #
The number of days that an IAM user password is valid.
passwordPolicy_hardExpiry :: Lens' PasswordPolicy (Maybe Bool) Source #
Specifies whether IAM users are prevented from setting a new password after their password has expired.
passwordPolicy_requireSymbols :: Lens' PasswordPolicy (Maybe Bool) Source #
Specifies whether IAM user passwords must contain at least one of the following symbols:
! @ # $ % ^ & * ( ) _ + - = [ ] { } | '
passwordPolicy_requireUppercaseCharacters :: Lens' PasswordPolicy (Maybe Bool) Source #
Specifies whether IAM user passwords must contain at least one uppercase character (A to Z).
passwordPolicy_allowUsersToChangePassword :: Lens' PasswordPolicy (Maybe Bool) Source #
Specifies whether IAM users are allowed to change their own password.