amazonka-cognito-idp-1.4.5: Amazon Cognito Identity Provider 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.CognitoIdentityProvider.SetUserSettings

Contents

Description

Sets the user settings like multi-factor authentication (MFA). If MFA is to be removed for a particular attribute pass the attribute with code delivery as null. If null list is passed, all MFA options are removed.

Synopsis

Creating a Request

setUserSettings Source #

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

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

  • susAccessToken - The access token for the set user settings request.
  • susMFAOptions - Specifies the options for MFA (e.g., email or phone number).

data SetUserSettings Source #

Represents the request to set user settings.

See: setUserSettings smart constructor.

Instances

Eq SetUserSettings Source # 
Data SetUserSettings Source # 

Methods

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

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

toConstr :: SetUserSettings -> Constr #

dataTypeOf :: SetUserSettings -> DataType #

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

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

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

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

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

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

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

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

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

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

Read SetUserSettings Source # 
Show SetUserSettings Source # 
Generic SetUserSettings Source # 
Hashable SetUserSettings Source # 
ToJSON SetUserSettings Source # 
NFData SetUserSettings Source # 

Methods

rnf :: SetUserSettings -> () #

AWSRequest SetUserSettings Source # 
ToPath SetUserSettings Source # 
ToHeaders SetUserSettings Source # 
ToQuery SetUserSettings Source # 
type Rep SetUserSettings Source # 
type Rep SetUserSettings = D1 (MetaData "SetUserSettings" "Network.AWS.CognitoIdentityProvider.SetUserSettings" "amazonka-cognito-idp-1.4.5-GXmpY7qnFXp3lLWwYVX1Gb" False) (C1 (MetaCons "SetUserSettings'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_susAccessToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Sensitive Text))) (S1 (MetaSel (Just Symbol "_susMFAOptions") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 [MFAOptionType]))))
type Rs SetUserSettings Source # 

Request Lenses

susAccessToken :: Lens' SetUserSettings Text Source #

The access token for the set user settings request.

susMFAOptions :: Lens' SetUserSettings [MFAOptionType] Source #

Specifies the options for MFA (e.g., email or phone number).

Destructuring the Response

setUserSettingsResponse Source #

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

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

data SetUserSettingsResponse Source #

The response from the server for a set user settings request.

See: setUserSettingsResponse smart constructor.

Instances

Eq SetUserSettingsResponse Source # 
Data SetUserSettingsResponse Source # 

Methods

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

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

toConstr :: SetUserSettingsResponse -> Constr #

dataTypeOf :: SetUserSettingsResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read SetUserSettingsResponse Source # 
Show SetUserSettingsResponse Source # 
Generic SetUserSettingsResponse Source # 
NFData SetUserSettingsResponse Source # 

Methods

rnf :: SetUserSettingsResponse -> () #

type Rep SetUserSettingsResponse Source # 
type Rep SetUserSettingsResponse = D1 (MetaData "SetUserSettingsResponse" "Network.AWS.CognitoIdentityProvider.SetUserSettings" "amazonka-cognito-idp-1.4.5-GXmpY7qnFXp3lLWwYVX1Gb" True) (C1 (MetaCons "SetUserSettingsResponse'" PrefixI True) (S1 (MetaSel (Just Symbol "_susrsResponseStatus") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Int)))

Response Lenses