Module Values.GetUserResponseSource

Represents the response from the server from the request to get information about the user.

Sourcetype nonrec t = {
  1. username : UsernameType.t option;
    (*

    The name of the user that you requested.

    *)
  2. userAttributes : AttributeListType.t option;
    (*

    An array of name-value pairs representing user attributes. Custom attributes are prepended with the custom: prefix.

    *)
  3. mFAOptions : MFAOptionListType.t option;
    (*

    This response parameter is no longer supported. It provides information only about SMS MFA configurations. It doesn't provide information about time-based one-time password (TOTP) software token MFA configurations. To look up information about either type of MFA configuration, use UserMFASettingList instead.

    *)
  4. preferredMfaSetting : StringType.t option;
    (*

    The user's preferred MFA. Users can prefer SMS message, email message, or TOTP MFA.

    *)
  5. userMFASettingList : UserMFASettingListType.t option;
    (*

    The MFA options that are activated for the user. The possible values in this list are SMS_MFA, EMAIL_OTP, and SOFTWARE_TOKEN_MFA.

    *)
}
Sourcetype nonrec error = [
  1. | `ForbiddenException of ForbiddenException.t
  2. | `InternalErrorException of InternalErrorException.t
  3. | `InvalidParameterException of InvalidParameterException.t
  4. | `NotAuthorizedException of NotAuthorizedException.t
  5. | `PasswordResetRequiredException of PasswordResetRequiredException.t
  6. | `ResourceNotFoundException of ResourceNotFoundException.t
  7. | `TooManyRequestsException of TooManyRequestsException.t
  8. | `UserNotConfirmedException of UserNotConfirmedException.t
  9. | `UserNotFoundException of UserNotFoundException.t
  10. | `Unknown_operation_error of string * string option
]
Sourceval make : ?username:??? -> ?userAttributes:??? -> ?mFAOptions:??? -> ?preferredMfaSetting:??? -> ?userMFASettingList:??? -> unit -> t
Sourceval error_of_json : string -> Yojson.Safe.t -> [> `ForbiddenException of ForbiddenException.t | `InternalErrorException of InternalErrorException.t | `InvalidParameterException of InvalidParameterException.t | `NotAuthorizedException of NotAuthorizedException.t | `PasswordResetRequiredException of PasswordResetRequiredException.t | `ResourceNotFoundException of ResourceNotFoundException.t | `TooManyRequestsException of TooManyRequestsException.t | `Unknown_operation_error of string * string option | `UserNotConfirmedException of UserNotConfirmedException.t | `UserNotFoundException of UserNotFoundException.t ]
Sourceval error_of_xml : string -> Awso.Xml.t -> [> `ForbiddenException of ForbiddenException.t | `InternalErrorException of InternalErrorException.t | `InvalidParameterException of InvalidParameterException.t | `NotAuthorizedException of NotAuthorizedException.t | `PasswordResetRequiredException of PasswordResetRequiredException.t | `ResourceNotFoundException of ResourceNotFoundException.t | `TooManyRequestsException of TooManyRequestsException.t | `Unknown_operation_error of string * string option | `UserNotConfirmedException of UserNotConfirmedException.t | `UserNotFoundException of UserNotFoundException.t ]
Sourceval error_to_json : error -> Yojson.Safe.t
Sourceval to_value : t -> [> `Structure of (string * [> `List of [> `String of StringType.t | `Structure of (string * [> `Enum of string | `String of AttributeNameType.t ]) list ] list | `String of UsernameType.t ]) 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