| Copyright | (c) 2013-2016 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | None |
| Language | Haskell2010 |
Network.AWS.CognitoIdentityProvider.SetUserSettings
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.
- setUserSettings :: Text -> SetUserSettings
- data SetUserSettings
- susAccessToken :: Lens' SetUserSettings Text
- susMFAOptions :: Lens' SetUserSettings [MFAOptionType]
- setUserSettingsResponse :: Int -> SetUserSettingsResponse
- data SetUserSettingsResponse
- susrsResponseStatus :: Lens' SetUserSettingsResponse Int
Creating a Request
Arguments
| :: Text | |
| -> SetUserSettings |
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
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 #
Arguments
| :: Int | |
| -> SetUserSettingsResponse |
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:
susrsResponseStatus- -- | The response status code.
data SetUserSettingsResponse Source #
The response from the server for a set user settings request.
See: setUserSettingsResponse smart constructor.
Response Lenses
susrsResponseStatus :: Lens' SetUserSettingsResponse Int Source #
- - | The response status code.