Module Values.CreateTokenResponseSource

Generates a one-time challenge code to authenticate a user into your Amplify Admin UI.

Sourcetype nonrec t = {
  1. appId : string option;
    (*

    The app ID.

    *)
  2. challengeCode : string option;
    (*

    One-time challenge code for authenticating into the Amplify Admin UI.

    *)
  3. sessionId : string option;
    (*

    A unique ID provided when creating a new challenge token.

    *)
  4. ttl : string option;
    (*

    The expiry time for the one-time generated token code.

    *)
}
Sourcetype nonrec error = [
  1. | `BadRequestException of BadRequestException.t
  2. | `GatewayTimeoutException of GatewayTimeoutException.t
  3. | `NotFoundException of NotFoundException.t
  4. | `TooManyRequestsException of TooManyRequestsException.t
  5. | `Unknown_operation_error of string * string option
]
Sourceval make : ?appId:??? -> ?challengeCode:??? -> ?sessionId:??? -> ?ttl:??? -> unit -> t
Sourceval error_of_json : string -> Yojson.Safe.t -> [> `BadRequestException of BadRequestException.t | `GatewayTimeoutException of GatewayTimeoutException.t | `NotFoundException of NotFoundException.t | `TooManyRequestsException of TooManyRequestsException.t | `Unknown_operation_error of string * string option ]
Sourceval error_of_xml : string -> Awso.Xml.t -> [> `BadRequestException of BadRequestException.t | `GatewayTimeoutException of GatewayTimeoutException.t | `NotFoundException of NotFoundException.t | `TooManyRequestsException of TooManyRequestsException.t | `Unknown_operation_error of string * string option ]
Sourceval error_to_json : error -> Yojson.Safe.t
Sourceval to_value : t -> [> `Structure of (string * [> `String of string ]) 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