Module Values.DatasetSource

A collection of data for an identity pool. An identity pool can have multiple datasets. A dataset is per identity and can be general or associated with a particular entity in an application (like a saved game). Datasets are automatically created if they don't exist. Data is synced by dataset, and a dataset can hold up to 1MB of key-value pairs.

Sourcetype nonrec t = {
  1. identityId : IdentityId.t option;
    (*

    A name-spaced GUID (for example, us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE) created by Amazon Cognito. GUID generation is unique within a region.

    *)
  2. datasetName : DatasetName.t option;
    (*

    A string of up to 128 characters. Allowed characters are a-z, A-Z, 0-9, '_' (underscore), '-' (dash), and '.' (dot).

    *)
  3. creationDate : Date.t option;
    (*

    Date on which the dataset was created.

    *)
  4. lastModifiedDate : Date.t option;
    (*

    Date when the dataset was last modified.

    *)
  5. lastModifiedBy : String_.t option;
    (*

    The device that made the last change to this dataset.

    *)
  6. dataStorage : Long.t option;
    (*

    Total size in bytes of the records in this dataset.

    *)
  7. numRecords : Long.t option;
    (*

    Number of records in this dataset.

    *)
}
Sourceval make : ?identityId:??? -> ?datasetName:??? -> ?creationDate:??? -> ?lastModifiedDate:??? -> ?lastModifiedBy:??? -> ?dataStorage:??? -> ?numRecords:??? -> unit -> t
Sourceval to_value : t -> [> `Structure of (string * [> `Long of Long.t | `String of IdentityId.t | `Timestamp of Date.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