libZSservicesZSamazonka-iamZSamazonka-iam
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.IAM.Types.PasswordPolicy

Description

 
Synopsis

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.

Constructors

PasswordPolicy' 

Fields

Instances

Instances details
Eq PasswordPolicy Source # 
Instance details

Defined in Amazonka.IAM.Types.PasswordPolicy

Read PasswordPolicy Source # 
Instance details

Defined in Amazonka.IAM.Types.PasswordPolicy

Show PasswordPolicy Source # 
Instance details

Defined in Amazonka.IAM.Types.PasswordPolicy

Generic PasswordPolicy Source # 
Instance details

Defined in Amazonka.IAM.Types.PasswordPolicy

Associated Types

type Rep PasswordPolicy :: Type -> Type #

NFData PasswordPolicy Source # 
Instance details

Defined in Amazonka.IAM.Types.PasswordPolicy

Methods

rnf :: PasswordPolicy -> () #

Hashable PasswordPolicy Source # 
Instance details

Defined in Amazonka.IAM.Types.PasswordPolicy

FromXML PasswordPolicy Source # 
Instance details

Defined in Amazonka.IAM.Types.PasswordPolicy

type Rep PasswordPolicy Source # 
Instance details

Defined in Amazonka.IAM.Types.PasswordPolicy

type Rep PasswordPolicy = D1 ('MetaData "PasswordPolicy" "Amazonka.IAM.Types.PasswordPolicy" "libZSservicesZSamazonka-iamZSamazonka-iam" 'False) (C1 ('MetaCons "PasswordPolicy'" 'PrefixI 'True) (((S1 ('MetaSel ('Just "expirePasswords") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "minimumPasswordLength") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural))) :*: (S1 ('MetaSel ('Just "requireNumbers") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: (S1 ('MetaSel ('Just "passwordReusePrevention") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural)) :*: S1 ('MetaSel ('Just "requireLowercaseCharacters") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool))))) :*: ((S1 ('MetaSel ('Just "maxPasswordAge") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural)) :*: S1 ('MetaSel ('Just "hardExpiry") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool))) :*: (S1 ('MetaSel ('Just "requireSymbols") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: (S1 ('MetaSel ('Just "requireUppercaseCharacters") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "allowUsersToChangePassword") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)))))))

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.