Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Synopsis
- data PasswordPolicy = PasswordPolicy' {
- allowUsersToChangePassword :: Maybe Bool
- expirePasswords :: Maybe Bool
- hardExpiry :: Maybe Bool
- maxPasswordAge :: Maybe Natural
- minimumPasswordLength :: Maybe Natural
- passwordReusePrevention :: Maybe Natural
- requireLowercaseCharacters :: Maybe Bool
- requireNumbers :: Maybe Bool
- requireSymbols :: Maybe Bool
- requireUppercaseCharacters :: Maybe Bool
- newPasswordPolicy :: PasswordPolicy
- passwordPolicy_allowUsersToChangePassword :: Lens' PasswordPolicy (Maybe Bool)
- passwordPolicy_expirePasswords :: Lens' PasswordPolicy (Maybe Bool)
- passwordPolicy_hardExpiry :: Lens' PasswordPolicy (Maybe Bool)
- passwordPolicy_maxPasswordAge :: Lens' PasswordPolicy (Maybe Natural)
- passwordPolicy_minimumPasswordLength :: Lens' PasswordPolicy (Maybe Natural)
- passwordPolicy_passwordReusePrevention :: Lens' PasswordPolicy (Maybe Natural)
- passwordPolicy_requireLowercaseCharacters :: Lens' PasswordPolicy (Maybe Bool)
- passwordPolicy_requireNumbers :: Lens' PasswordPolicy (Maybe Bool)
- passwordPolicy_requireSymbols :: Lens' PasswordPolicy (Maybe Bool)
- passwordPolicy_requireUppercaseCharacters :: 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:allowUsersToChangePassword:PasswordPolicy'
, passwordPolicy_allowUsersToChangePassword
- 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.
$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:hardExpiry:PasswordPolicy'
, passwordPolicy_hardExpiry
- 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.
$sel:maxPasswordAge:PasswordPolicy'
, passwordPolicy_maxPasswordAge
- The number of days that an IAM user password is valid.
$sel:minimumPasswordLength:PasswordPolicy'
, passwordPolicy_minimumPasswordLength
- Minimum length to require for IAM user passwords.
$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:requireNumbers:PasswordPolicy'
, passwordPolicy_requireNumbers
- Specifies whether IAM user passwords must contain at least one numeric
character (0 to 9).
$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).
passwordPolicy_allowUsersToChangePassword :: Lens' PasswordPolicy (Maybe Bool) Source #
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.
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_hardExpiry :: Lens' PasswordPolicy (Maybe Bool) Source #
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.
passwordPolicy_maxPasswordAge :: Lens' PasswordPolicy (Maybe Natural) Source #
The number of days that an IAM user password is valid.
passwordPolicy_minimumPasswordLength :: Lens' PasswordPolicy (Maybe Natural) Source #
Minimum length to require for IAM user passwords.
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_requireNumbers :: Lens' PasswordPolicy (Maybe Bool) Source #
Specifies whether IAM user passwords must contain at least one numeric character (0 to 9).
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).