| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.CognitoIdentityProvider.SetUserSettings
Description
This action is no longer supported. You can use it to configure only SMS MFA. You can't use it to configure time-based one-time password (TOTP) software token MFA. To configure either type of MFA, use SetUserMFAPreference instead.
Synopsis
- data SetUserSettings = SetUserSettings' {}
- newSetUserSettings :: Text -> SetUserSettings
- setUserSettings_accessToken :: Lens' SetUserSettings Text
- setUserSettings_mfaOptions :: Lens' SetUserSettings [MFAOptionType]
- data SetUserSettingsResponse = SetUserSettingsResponse' {
- httpStatus :: Int
- newSetUserSettingsResponse :: Int -> SetUserSettingsResponse
- setUserSettingsResponse_httpStatus :: Lens' SetUserSettingsResponse Int
Creating a Request
data SetUserSettings Source #
Represents the request to set user settings.
See: newSetUserSettings smart constructor.
Constructors
| SetUserSettings' | |
Fields
| |
Instances
Arguments
| :: Text | |
| -> SetUserSettings |
Create a value of SetUserSettings with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
SetUserSettings, setUserSettings_accessToken - A valid access token that Amazon Cognito issued to the user whose user
settings you want to configure.
SetUserSettings, setUserSettings_mfaOptions - You can use this parameter only to set an SMS configuration that uses
SMS for delivery.
Request Lenses
setUserSettings_accessToken :: Lens' SetUserSettings Text Source #
A valid access token that Amazon Cognito issued to the user whose user settings you want to configure.
setUserSettings_mfaOptions :: Lens' SetUserSettings [MFAOptionType] Source #
You can use this parameter only to set an SMS configuration that uses SMS for delivery.
Destructuring the Response
data SetUserSettingsResponse Source #
The response from the server for a set user settings request.
See: newSetUserSettingsResponse smart constructor.
Constructors
| SetUserSettingsResponse' | |
Fields
| |
Instances
newSetUserSettingsResponse Source #
Create a value of SetUserSettingsResponse with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:httpStatus:SetUserSettingsResponse', setUserSettingsResponse_httpStatus - The response's http status code.
Response Lenses
setUserSettingsResponse_httpStatus :: Lens' SetUserSettingsResponse Int Source #
The response's http status code.