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.ChangePassword

Contents

Description

Changes the password of the IAM user who is calling this action. The root account password is not affected by this action.

To change the password for a different user, see UpdateLoginProfile . For more information about modifying passwords, see Managing Passwords in the IAM User Guide .

Synopsis

Creating a Request

changePassword Source #

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

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

  • cpOldPassword - The IAM user's current password.
  • cpNewPassword - The new password. The new password must conform to the AWS account's password policy, if one exists. The regex pattern for this parameter is a string of characters consisting of almost any printable ASCII character from the space (u0020) through the end of the ASCII character range (u00FF). You can also include the tab (u0009), line feed (u000A), and carriage return (u000D) characters. Although any of these characters are valid in a password, note that many tools, such as the AWS Management Console, might restrict the ability to enter certain characters because they have special meaning within that tool.

data ChangePassword Source #

See: changePassword smart constructor.

Instances

Eq ChangePassword Source # 
Data ChangePassword Source # 

Methods

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

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

toConstr :: ChangePassword -> Constr #

dataTypeOf :: ChangePassword -> DataType #

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

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

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

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

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

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

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

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

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

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

Read ChangePassword Source # 
Show ChangePassword Source # 
Generic ChangePassword Source # 

Associated Types

type Rep ChangePassword :: * -> * #

Hashable ChangePassword Source # 
NFData ChangePassword Source # 

Methods

rnf :: ChangePassword -> () #

AWSRequest ChangePassword Source # 
ToPath ChangePassword Source # 
ToHeaders ChangePassword Source # 
ToQuery ChangePassword Source # 
type Rep ChangePassword Source # 
type Rep ChangePassword = D1 (MetaData "ChangePassword" "Network.AWS.IAM.ChangePassword" "amazonka-iam-1.4.5-tAuuyG7nyKEp3j6LBO0rr" False) (C1 (MetaCons "ChangePassword'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_cpOldPassword") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Sensitive Text))) (S1 (MetaSel (Just Symbol "_cpNewPassword") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Sensitive Text)))))
type Rs ChangePassword Source # 

Request Lenses

cpOldPassword :: Lens' ChangePassword Text Source #

The IAM user's current password.

cpNewPassword :: Lens' ChangePassword Text Source #

The new password. The new password must conform to the AWS account's password policy, if one exists. The regex pattern for this parameter is a string of characters consisting of almost any printable ASCII character from the space (u0020) through the end of the ASCII character range (u00FF). You can also include the tab (u0009), line feed (u000A), and carriage return (u000D) characters. Although any of these characters are valid in a password, note that many tools, such as the AWS Management Console, might restrict the ability to enter certain characters because they have special meaning within that tool.

Destructuring the Response

changePasswordResponse :: ChangePasswordResponse Source #

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

data ChangePasswordResponse Source #

See: changePasswordResponse smart constructor.

Instances

Eq ChangePasswordResponse Source # 
Data ChangePasswordResponse Source # 

Methods

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

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

toConstr :: ChangePasswordResponse -> Constr #

dataTypeOf :: ChangePasswordResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read ChangePasswordResponse Source # 
Show ChangePasswordResponse Source # 
Generic ChangePasswordResponse Source # 
NFData ChangePasswordResponse Source # 

Methods

rnf :: ChangePasswordResponse -> () #

type Rep ChangePasswordResponse Source # 
type Rep ChangePasswordResponse = D1 (MetaData "ChangePasswordResponse" "Network.AWS.IAM.ChangePassword" "amazonka-iam-1.4.5-tAuuyG7nyKEp3j6LBO0rr" False) (C1 (MetaCons "ChangePasswordResponse'" PrefixI False) U1)