Module Values.AdminSetUserMFAPreferenceRequestSource

Sets 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

Sourcetype nonrec t = {
  1. sMSMfaSettings : SMSMfaSettingsType.t option;
    (*

    User preferences for SMS message MFA. Activates or deactivates SMS MFA and sets it as the preferred MFA method when multiple methods are available.

    *)
  2. softwareTokenMfaSettings : SoftwareTokenMfaSettingsType.t option;
    (*

    User preferences for time-based one-time password (TOTP) MFA. Activates or deactivates TOTP MFA and sets it as the preferred MFA method when multiple methods are available.

    *)
  3. emailMfaSettings : EmailMfaSettingsType.t option;
    (*

    User preferences for email message MFA. Activates or deactivates email MFA and sets it as the preferred MFA method when multiple methods are available. To activate this setting, your user pool must be in the Essentials tier or higher.

    *)
  4. webAuthnMfaSettings : WebAuthnMfaSettingsType.t option;
    (*

    User preferences for passkey MFA. Activates or deactivates passkey MFA for the user. When activated, passkey authentication requires user verification, and passkey sign-in is available when MFA is required. To activate this setting, the FactorConfiguration of your user pool WebAuthnConfiguration must be MULTI_FACTOR_WITH_USER_VERIFICATION. To activate this setting, your user pool must be in the Essentials tier or higher.

    *)
  5. username : UsernameType.t;
    (*

    The name of the user that you want to query or modify. The value of this parameter is typically your user's username, but it can be any of their alias attributes. If username isn't an alias attribute in your user pool, this value must be the sub of a local user or the username of a user from a third-party IdP.

    *)
  6. userPoolId : UserPoolIdType.t;
    (*

    The ID of the user pool where you want to set a user's MFA preferences.

    *)
}
Sourceval context_ : string
Sourceval make : ?sMSMfaSettings:??? -> ?softwareTokenMfaSettings:??? -> ?emailMfaSettings:??? -> ?webAuthnMfaSettings:??? -> username:UsernameType.t -> userPoolId:UserPoolIdType.t -> unit -> t
Sourceval to_value : t -> [> `Structure of (string * [> `String of UsernameType.t | `Structure of (string * [> `Boolean of BooleanType.t ]) list ]) list ]
Sourceval to_query : t -> Awso.Client.Query.t
Sourceval of_xml : Awso.Xml.t -> t
Sourceval of_string : string -> t
Sourceval of_json : Yojson.Safe.t -> t
Sourceval to_json : t -> Yojson.Safe.t