Module Values_0.DataTableAttributeSource

Represents an attribute (column) in a data table. Attributes define the schema and validation rules for values that can be stored in the table. They specify the data type, constraints, and whether the attribute is used as a primary key for record identification.

Sourcetype nonrec t = {
  1. attributeId : DataTableId.t option;
    (*

    The unique identifier for the attribute within the data table.

    *)
  2. name : DataTableName.t option;
    (*

    The human-readable name of the attribute. Must be unique within the data table and conform to Connect naming standards.

    *)
  3. valueType : DataTableAttributeValueType.t option;
    (*

    The type of value allowed for this attribute. Must be one of TEXT, TEXT_LIST, NUMBER, NUMBER_LIST, or BOOLEAN. Determines how values are validated and processed.

    *)
  4. description : DataTableDescription.t option;
    (*

    An optional description explaining the purpose and usage of this attribute.

    *)
  5. dataTableId : DataTableId.t option;
    (*

    The unique identifier of the data table that contains this attribute.

    *)
  6. dataTableArn : ARN.t option;
    (*

    The Amazon Resource Name (ARN) of the data table that contains this attribute.

    *)
  7. primary : Boolean.t option;
    (*

    Boolean indicating whether this attribute is used as a primary key for record identification. Primary attributes must have unique value combinations and cannot contain expressions.

    *)
  8. version : DataTableVersion.t option;
    (*

    The version identifier for this attribute, used for versioning and change tracking.

    *)
  9. lockVersion : DataTableLockVersion.t option;
    (*

    The lock version for this attribute, used for optimistic locking to prevent concurrent modification conflicts.

    *)
  10. lastModifiedTime : Timestamp.t option;
    (*

    The timestamp when this attribute was last modified.

    *)
  11. lastModifiedRegion : RegionName.t option;
    (*

    The Amazon Web Services Region where this attribute was last modified, used for region replication.

    *)
  12. validation : Validation.t option;
    (*

    The validation rules applied to values of this attribute. Based on JSON Schema Draft 2020-12 with additional Connect-specific validations for data integrity.

    *)
}
Sourceval make : ?attributeId:??? -> ?name:??? -> ?valueType:??? -> ?description:??? -> ?dataTableId:??? -> ?dataTableArn:??? -> ?primary:??? -> ?version:??? -> ?lockVersion:??? -> ?lastModifiedTime:??? -> ?lastModifiedRegion:??? -> ?validation:??? -> unit -> t
Sourceval to_value : t -> [> `Structure of (string * [> `Boolean of Boolean.t | `Enum of string | `String of DataTableId.t | `Structure of (string * [> `Boolean of Boolean.t | `Double of PositiveAndNegativeDouble.t | `Integer of LengthBoundary.t | `String of String_.t | `Structure of (string * [> `Boolean of Boolean.t | `List of [> `String of String_.t ] list ]) list ]) list | `Timestamp of Timestamp.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