Module Values.FormSource

Contains the configuration settings for a Form user interface (UI) element for an Amplify app. A form is a component you can add to your project by specifying a data source as the default configuration for the form.

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

    The unique ID of the Amplify app associated with the form.

    *)
  2. environmentName : String_.t option;
    (*

    The name of the backend environment that is a part of the Amplify app.

    *)
  3. id : Uuid.t option;
    (*

    The unique ID of the form.

    *)
  4. name : FormName.t option;
    (*

    The name of the form.

    *)
  5. formActionType : FormActionType.t option;
    (*

    The operation to perform on the specified form.

    *)
  6. style : FormStyle.t option;
    (*

    Stores the configuration for the form's style.

    *)
  7. dataType : FormDataTypeConfig.t option;
    (*

    The type of data source to use to create the form.

    *)
  8. fields : FieldsMap.t option;
    (*

    Stores the information about the form's fields.

    *)
  9. sectionalElements : SectionalElementMap.t option;
    (*

    Stores the visual helper elements for the form that are not associated with any data.

    *)
  10. schemaVersion : String_.t option;
    (*

    The schema version of the form when it was imported.

    *)
  11. tags : Tags.t option;
    (*

    One or more key-value pairs to use when tagging the form.

    *)
  12. cta : FormCTA.t option;
    (*

    Stores the call to action configuration for the form.

    *)
  13. labelDecorator : LabelDecorator.t option;
    (*

    Specifies an icon or decoration to display on the form.

    *)
}
Sourceval make : ?appId:??? -> ?environmentName:??? -> ?id:??? -> ?name:??? -> ?formActionType:??? -> ?style:??? -> ?dataType:??? -> ?fields:??? -> ?sectionalElements:??? -> ?schemaVersion:??? -> ?tags:??? -> ?cta:??? -> ?labelDecorator:??? -> unit -> t
Sourceval to_value : t -> [> `Structure of (string * [> `Enum of string | `Map of ([> `String of String_.t ] * [> `String of TagValue.t | `Structure of (string * [> `Boolean of Boolean.t | `Integer of Integer.t | `List of [> `Structure of (string * [> `List of [> `Integer of Integer.t | `String of String_.t ] list | `String of String_.t ]) list ] list | `String of String_.t | `Structure of (string * [> `Boolean of Boolean.t | `Enum of string | `Float of Float_.t | `String of String_.t | `Structure of (string * [> `Boolean of Boolean.t | `Enum of string | `Integer of Integer.t | `List of [> `String of String_.t | `Structure of (string * Awso.Botodata.value) list ] list | `Map of ([> `String of String_.t ] * [> `Structure of (string * [> `String of String_.t | `Structure of (string * [> `String of String_.t ]) list ]) list ]) list ]) list ]) list ]) list ]) list | `String of String_.t | `Structure of (string * [> `Enum of string | `String of String_.t | `Structure of (string * [> `Boolean of Boolean.t | `String of String_.t | `Structure of (string * [> `Enum of string | `String of String_.t ]) list ]) list ]) 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