amazonka-iam-1.4.5: Amazon Identity and Access Management SDK.

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

Network.AWS.IAM.UpdateAccountPasswordPolicy

Contents

Description

Updates the password policy settings for the AWS account.

For more information about using a password policy, see Managing an IAM Password Policy in the IAM User Guide .

Synopsis

Creating a Request

updateAccountPasswordPolicy :: UpdateAccountPasswordPolicy Source #

Creates a value of UpdateAccountPasswordPolicy with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

  • uappMinimumPasswordLength - The minimum number of characters allowed in an IAM user password. Default value: 6
  • uappRequireNumbers - Specifies whether IAM user passwords must contain at least one numeric character (0 to 9). Default value: false
  • uappPasswordReusePrevention - Specifies the number of previous passwords that IAM users are prevented from reusing. The default value of 0 means IAM users are not prevented from reusing previous passwords. Default value: 0
  • uappRequireLowercaseCharacters - Specifies whether IAM user passwords must contain at least one lowercase character from the ISO basic Latin alphabet (a to z). Default value: false
  • uappMaxPasswordAge - The number of days that an IAM user password is valid. The default value of 0 means IAM user passwords never expire. Default value: 0
  • uappHardExpiry - Prevents IAM users from setting a new password after their password has expired. Default value: false
  • uappRequireSymbols - Specifies whether IAM user passwords must contain at least one of the following non-alphanumeric characters: ! @ # $ % ^ &amp; * ( ) _ + - = [ ] { } | ' Default value: false
  • uappRequireUppercaseCharacters - Specifies whether IAM user passwords must contain at least one uppercase character from the ISO basic Latin alphabet (A to Z). Default value: false
  • uappAllowUsersToChangePassword - Allows all IAM users in your account to use the AWS Management Console to change their own passwords. For more information, see Letting IAM Users Change Their Own Passwords in the IAM User Guide . Default value: false

data UpdateAccountPasswordPolicy Source #

See: updateAccountPasswordPolicy smart constructor.

Instances

Eq UpdateAccountPasswordPolicy Source # 
Data UpdateAccountPasswordPolicy Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> UpdateAccountPasswordPolicy -> c UpdateAccountPasswordPolicy #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c UpdateAccountPasswordPolicy #

toConstr :: UpdateAccountPasswordPolicy -> Constr #

dataTypeOf :: UpdateAccountPasswordPolicy -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c UpdateAccountPasswordPolicy) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c UpdateAccountPasswordPolicy) #

gmapT :: (forall b. Data b => b -> b) -> UpdateAccountPasswordPolicy -> UpdateAccountPasswordPolicy #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> UpdateAccountPasswordPolicy -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> UpdateAccountPasswordPolicy -> r #

gmapQ :: (forall d. Data d => d -> u) -> UpdateAccountPasswordPolicy -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> UpdateAccountPasswordPolicy -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> UpdateAccountPasswordPolicy -> m UpdateAccountPasswordPolicy #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> UpdateAccountPasswordPolicy -> m UpdateAccountPasswordPolicy #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> UpdateAccountPasswordPolicy -> m UpdateAccountPasswordPolicy #

Read UpdateAccountPasswordPolicy Source # 
Show UpdateAccountPasswordPolicy Source # 
Generic UpdateAccountPasswordPolicy Source # 
Hashable UpdateAccountPasswordPolicy Source # 
NFData UpdateAccountPasswordPolicy Source # 
AWSRequest UpdateAccountPasswordPolicy Source # 
ToPath UpdateAccountPasswordPolicy Source # 
ToHeaders UpdateAccountPasswordPolicy Source # 
ToQuery UpdateAccountPasswordPolicy Source # 
type Rep UpdateAccountPasswordPolicy Source # 
type Rep UpdateAccountPasswordPolicy = D1 (MetaData "UpdateAccountPasswordPolicy" "Network.AWS.IAM.UpdateAccountPasswordPolicy" "amazonka-iam-1.4.5-tAuuyG7nyKEp3j6LBO0rr" False) (C1 (MetaCons "UpdateAccountPasswordPolicy'" PrefixI True) ((:*:) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_uappMinimumPasswordLength") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Nat))) (S1 (MetaSel (Just Symbol "_uappRequireNumbers") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bool)))) ((:*:) (S1 (MetaSel (Just Symbol "_uappPasswordReusePrevention") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Nat))) (S1 (MetaSel (Just Symbol "_uappRequireLowercaseCharacters") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bool))))) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_uappMaxPasswordAge") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Nat))) (S1 (MetaSel (Just Symbol "_uappHardExpiry") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bool)))) ((:*:) (S1 (MetaSel (Just Symbol "_uappRequireSymbols") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bool))) ((:*:) (S1 (MetaSel (Just Symbol "_uappRequireUppercaseCharacters") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bool))) (S1 (MetaSel (Just Symbol "_uappAllowUsersToChangePassword") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bool))))))))
type Rs UpdateAccountPasswordPolicy Source # 

Request Lenses

uappMinimumPasswordLength :: Lens' UpdateAccountPasswordPolicy (Maybe Natural) Source #

The minimum number of characters allowed in an IAM user password. Default value: 6

uappRequireNumbers :: Lens' UpdateAccountPasswordPolicy (Maybe Bool) Source #

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

uappPasswordReusePrevention :: Lens' UpdateAccountPasswordPolicy (Maybe Natural) Source #

Specifies the number of previous passwords that IAM users are prevented from reusing. The default value of 0 means IAM users are not prevented from reusing previous passwords. Default value: 0

uappRequireLowercaseCharacters :: Lens' UpdateAccountPasswordPolicy (Maybe Bool) Source #

Specifies whether IAM user passwords must contain at least one lowercase character from the ISO basic Latin alphabet (a to z). Default value: false

uappMaxPasswordAge :: Lens' UpdateAccountPasswordPolicy (Maybe Natural) Source #

The number of days that an IAM user password is valid. The default value of 0 means IAM user passwords never expire. Default value: 0

uappHardExpiry :: Lens' UpdateAccountPasswordPolicy (Maybe Bool) Source #

Prevents IAM users from setting a new password after their password has expired. Default value: false

uappRequireSymbols :: Lens' UpdateAccountPasswordPolicy (Maybe Bool) Source #

Specifies whether IAM user passwords must contain at least one of the following non-alphanumeric characters: ! @ # $ % ^ &amp; * ( ) _ + - = [ ] { } | ' Default value: false

uappRequireUppercaseCharacters :: Lens' UpdateAccountPasswordPolicy (Maybe Bool) Source #

Specifies whether IAM user passwords must contain at least one uppercase character from the ISO basic Latin alphabet (A to Z). Default value: false

uappAllowUsersToChangePassword :: Lens' UpdateAccountPasswordPolicy (Maybe Bool) Source #

Allows all IAM users in your account to use the AWS Management Console to change their own passwords. For more information, see Letting IAM Users Change Their Own Passwords in the IAM User Guide . Default value: false

Destructuring the Response

updateAccountPasswordPolicyResponse :: UpdateAccountPasswordPolicyResponse Source #

Creates a value of UpdateAccountPasswordPolicyResponse with the minimum fields required to make a request.

data UpdateAccountPasswordPolicyResponse Source #

See: updateAccountPasswordPolicyResponse smart constructor.

Instances

Eq UpdateAccountPasswordPolicyResponse Source # 
Data UpdateAccountPasswordPolicyResponse Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> UpdateAccountPasswordPolicyResponse -> c UpdateAccountPasswordPolicyResponse #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c UpdateAccountPasswordPolicyResponse #

toConstr :: UpdateAccountPasswordPolicyResponse -> Constr #

dataTypeOf :: UpdateAccountPasswordPolicyResponse -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c UpdateAccountPasswordPolicyResponse) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c UpdateAccountPasswordPolicyResponse) #

gmapT :: (forall b. Data b => b -> b) -> UpdateAccountPasswordPolicyResponse -> UpdateAccountPasswordPolicyResponse #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> UpdateAccountPasswordPolicyResponse -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> UpdateAccountPasswordPolicyResponse -> r #

gmapQ :: (forall d. Data d => d -> u) -> UpdateAccountPasswordPolicyResponse -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> UpdateAccountPasswordPolicyResponse -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> UpdateAccountPasswordPolicyResponse -> m UpdateAccountPasswordPolicyResponse #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> UpdateAccountPasswordPolicyResponse -> m UpdateAccountPasswordPolicyResponse #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> UpdateAccountPasswordPolicyResponse -> m UpdateAccountPasswordPolicyResponse #

Read UpdateAccountPasswordPolicyResponse Source # 
Show UpdateAccountPasswordPolicyResponse Source # 
Generic UpdateAccountPasswordPolicyResponse Source # 
NFData UpdateAccountPasswordPolicyResponse Source # 
type Rep UpdateAccountPasswordPolicyResponse Source # 
type Rep UpdateAccountPasswordPolicyResponse = D1 (MetaData "UpdateAccountPasswordPolicyResponse" "Network.AWS.IAM.UpdateAccountPasswordPolicy" "amazonka-iam-1.4.5-tAuuyG7nyKEp3j6LBO0rr" False) (C1 (MetaCons "UpdateAccountPasswordPolicyResponse'" PrefixI False) U1)