amazonka-iam-1.6.1: 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 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 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 Source #

See: changePassword smart constructor.

Instances
Eq ChangePassword Source # 
Instance details

Defined in Network.AWS.IAM.ChangePassword

Data ChangePassword Source # 
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 Source # 
Instance details

Defined in Network.AWS.IAM.ChangePassword

Generic ChangePassword Source # 
Instance details

Defined in Network.AWS.IAM.ChangePassword

Associated Types

type Rep ChangePassword :: Type -> Type #

Hashable ChangePassword Source # 
Instance details

Defined in Network.AWS.IAM.ChangePassword

AWSRequest ChangePassword Source # 
Instance details

Defined in Network.AWS.IAM.ChangePassword

Associated Types

type Rs ChangePassword :: Type #

ToHeaders ChangePassword Source # 
Instance details

Defined in Network.AWS.IAM.ChangePassword

ToPath ChangePassword Source # 
Instance details

Defined in Network.AWS.IAM.ChangePassword

ToQuery ChangePassword Source # 
Instance details

Defined in Network.AWS.IAM.ChangePassword

NFData ChangePassword Source # 
Instance details

Defined in Network.AWS.IAM.ChangePassword

Methods

rnf :: ChangePassword -> () #

type Rep ChangePassword Source # 
Instance details

Defined in Network.AWS.IAM.ChangePassword

type Rep ChangePassword = D1 (MetaData "ChangePassword" "Network.AWS.IAM.ChangePassword" "amazonka-iam-1.6.1-BDjAp2BAcQu3GSS4Bsr6zu" 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 Source # 
Instance details

Defined in Network.AWS.IAM.ChangePassword

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

Defined in Network.AWS.IAM.ChangePassword

Data ChangePasswordResponse Source # 
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 Source # 
Instance details

Defined in Network.AWS.IAM.ChangePassword

Show ChangePasswordResponse Source # 
Instance details

Defined in Network.AWS.IAM.ChangePassword

Generic ChangePasswordResponse Source # 
Instance details

Defined in Network.AWS.IAM.ChangePassword

Associated Types

type Rep ChangePasswordResponse :: Type -> Type #

NFData ChangePasswordResponse Source # 
Instance details

Defined in Network.AWS.IAM.ChangePassword

Methods

rnf :: ChangePasswordResponse -> () #

type Rep ChangePasswordResponse Source # 
Instance details

Defined in Network.AWS.IAM.ChangePassword

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