Values.AdminSetUserMFAPreferenceResponseSourceSets the user's multi-factor authentication (MFA) preference, including which MFA options are activated, and if any are preferred. Only one factor can be set as preferred. The preferred MFA factor will be used to authenticate a user if multiple factors are activated. If multiple options are activated and no preference is set, a challenge to choose an MFA option will be returned during sign-in. Amazon Cognito evaluates Identity and Access Management (IAM) policies in requests for this API operation. For this operation, you must use IAM credentials to authorize requests, and you must grant yourself the corresponding IAM permission in a policy. Learn more Signing Amazon Web Services API Requests Using the Amazon Cognito user pools API and user pool endpoints
type nonrec error = [ | `InternalErrorException of InternalErrorException.t| `InvalidParameterException of InvalidParameterException.t| `NotAuthorizedException of NotAuthorizedException.t| `PasswordResetRequiredException of PasswordResetRequiredException.t| `ResourceNotFoundException of ResourceNotFoundException.t| `UserNotConfirmedException of UserNotConfirmedException.t| `UserNotFoundException of UserNotFoundException.t| `Unknown_operation_error of string * string option ]val error_of_json :
string ->
Yojson.Safe.t ->
[> `InternalErrorException of InternalErrorException.t
| `InvalidParameterException of InvalidParameterException.t
| `NotAuthorizedException of NotAuthorizedException.t
| `PasswordResetRequiredException of PasswordResetRequiredException.t
| `ResourceNotFoundException of ResourceNotFoundException.t
| `Unknown_operation_error of string * string option
| `UserNotConfirmedException of UserNotConfirmedException.t
| `UserNotFoundException of UserNotFoundException.t ]val error_of_xml :
string ->
Awso.Xml.t ->
[> `InternalErrorException of InternalErrorException.t
| `InvalidParameterException of InvalidParameterException.t
| `NotAuthorizedException of NotAuthorizedException.t
| `PasswordResetRequiredException of PasswordResetRequiredException.t
| `ResourceNotFoundException of ResourceNotFoundException.t
| `Unknown_operation_error of string * string option
| `UserNotConfirmedException of UserNotConfirmedException.t
| `UserNotFoundException of UserNotFoundException.t ]