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

Copyright(c) 2013-2018 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@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 operation. The AWS account root user password is not affected by this operation.

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 #

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 that is used to validate this parameter is a string of characters. That string can include 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. Any of these characters are valid in a password. However, many tools, such as the AWS Management Console, might restrict the ability to type certain characters because they have special meaning within that tool.

data ChangePassword #

See: changePassword smart constructor.

Instances
Eq ChangePassword # 
Instance details

Defined in Network.AWS.IAM.ChangePassword

Data ChangePassword # 
Instance details

Defined in Network.AWS.IAM.ChangePassword

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 #

Show ChangePassword # 
Instance details

Defined in Network.AWS.IAM.ChangePassword

Generic ChangePassword # 
Instance details

Defined in Network.AWS.IAM.ChangePassword

Associated Types

type Rep ChangePassword :: * -> * #

Hashable ChangePassword # 
Instance details

Defined in Network.AWS.IAM.ChangePassword

AWSRequest ChangePassword # 
Instance details

Defined in Network.AWS.IAM.ChangePassword

Associated Types

type Rs ChangePassword :: * #

ToHeaders ChangePassword # 
Instance details

Defined in Network.AWS.IAM.ChangePassword

ToPath ChangePassword # 
Instance details

Defined in Network.AWS.IAM.ChangePassword

ToQuery ChangePassword # 
Instance details

Defined in Network.AWS.IAM.ChangePassword

NFData ChangePassword # 
Instance details

Defined in Network.AWS.IAM.ChangePassword

Methods

rnf :: ChangePassword -> () #

type Rep ChangePassword # 
Instance details

Defined in Network.AWS.IAM.ChangePassword

type Rep ChangePassword = D1 (MetaData "ChangePassword" "Network.AWS.IAM.ChangePassword" "amazonka-iam-1.6.0-KLHg33OPBsA2oss7MTCyZq" False) (C1 (MetaCons "ChangePassword'" PrefixI True) (S1 (MetaSel (Just "_cpOldPassword") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Sensitive Text)) :*: S1 (MetaSel (Just "_cpNewPassword") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Sensitive Text))))
type Rs ChangePassword # 
Instance details

Defined in Network.AWS.IAM.ChangePassword

Request Lenses

cpOldPassword :: Lens' ChangePassword Text #

The IAM user's current password.

cpNewPassword :: Lens' ChangePassword Text #

The new password. The new password must conform to the AWS account's password policy, if one exists. The regex pattern that is used to validate this parameter is a string of characters. That string can include 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. Any of these characters are valid in a password. However, many tools, such as the AWS Management Console, might restrict the ability to type certain characters because they have special meaning within that tool.

Destructuring the Response

changePasswordResponse :: ChangePasswordResponse #

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

data ChangePasswordResponse #

See: changePasswordResponse smart constructor.

Instances
Eq ChangePasswordResponse # 
Instance details

Defined in Network.AWS.IAM.ChangePassword

Data ChangePasswordResponse # 
Instance details

Defined in Network.AWS.IAM.ChangePassword

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 # 
Instance details

Defined in Network.AWS.IAM.ChangePassword

Show ChangePasswordResponse # 
Instance details

Defined in Network.AWS.IAM.ChangePassword

Generic ChangePasswordResponse # 
Instance details

Defined in Network.AWS.IAM.ChangePassword

Associated Types

type Rep ChangePasswordResponse :: * -> * #

NFData ChangePasswordResponse # 
Instance details

Defined in Network.AWS.IAM.ChangePassword

Methods

rnf :: ChangePasswordResponse -> () #

type Rep ChangePasswordResponse # 
Instance details

Defined in Network.AWS.IAM.ChangePassword

type Rep ChangePasswordResponse = D1 (MetaData "ChangePasswordResponse" "Network.AWS.IAM.ChangePassword" "amazonka-iam-1.6.0-KLHg33OPBsA2oss7MTCyZq" False) (C1 (MetaCons "ChangePasswordResponse'" PrefixI False) (U1 :: * -> *))