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 |
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 AdminSetUserMFAPreference instead.
Synopsis
- data AdminSetUserSettings = AdminSetUserSettings' {
- userPoolId :: Text
- username :: Sensitive Text
- mfaOptions :: [MFAOptionType]
- newAdminSetUserSettings :: Text -> Text -> AdminSetUserSettings
- adminSetUserSettings_userPoolId :: Lens' AdminSetUserSettings Text
- adminSetUserSettings_username :: Lens' AdminSetUserSettings Text
- adminSetUserSettings_mfaOptions :: Lens' AdminSetUserSettings [MFAOptionType]
- data AdminSetUserSettingsResponse = AdminSetUserSettingsResponse' {
- httpStatus :: Int
- newAdminSetUserSettingsResponse :: Int -> AdminSetUserSettingsResponse
- adminSetUserSettingsResponse_httpStatus :: Lens' AdminSetUserSettingsResponse Int
Creating a Request
data AdminSetUserSettings Source #
You can use this parameter to set an MFA configuration that uses the SMS delivery medium.
See: newAdminSetUserSettings
smart constructor.
AdminSetUserSettings' | |
|
Instances
newAdminSetUserSettings Source #
Create a value of AdminSetUserSettings
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:
AdminSetUserSettings
, adminSetUserSettings_userPoolId
- The ID of the user pool that contains the user whose options you're
setting.
AdminSetUserSettings
, adminSetUserSettings_username
- The user name of the user whose options you're setting.
AdminSetUserSettings
, adminSetUserSettings_mfaOptions
- You can use this parameter only to set an SMS configuration that uses
SMS for delivery.
Request Lenses
adminSetUserSettings_userPoolId :: Lens' AdminSetUserSettings Text Source #
The ID of the user pool that contains the user whose options you're setting.
adminSetUserSettings_username :: Lens' AdminSetUserSettings Text Source #
The user name of the user whose options you're setting.
adminSetUserSettings_mfaOptions :: Lens' AdminSetUserSettings [MFAOptionType] Source #
You can use this parameter only to set an SMS configuration that uses SMS for delivery.
Destructuring the Response
data AdminSetUserSettingsResponse Source #
Represents the response from the server to set user settings as an administrator.
See: newAdminSetUserSettingsResponse
smart constructor.
AdminSetUserSettingsResponse' | |
|
Instances
newAdminSetUserSettingsResponse Source #
Create a value of AdminSetUserSettingsResponse
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:AdminSetUserSettingsResponse'
, adminSetUserSettingsResponse_httpStatus
- The response's http status code.
Response Lenses
adminSetUserSettingsResponse_httpStatus :: Lens' AdminSetUserSettingsResponse Int Source #
The response's http status code.