Module Values_2.GetSchemaByDefinitionResponseSource

Retrieves a schema by the SchemaDefinition. The schema definition is sent to the Schema Registry, canonicalized, and hashed. If the hash is matched within the scope of the SchemaName or ARN (or the default registry, if none is supplied), that schema’s metadata is returned. Otherwise, a 404 or NotFound error is returned. Schema versions in Deleted statuses will not be included in the results.

Sourcetype nonrec t = {
  1. schemaVersionId : Values_0.SchemaVersionIdString.t option;
    (*

    The schema ID of the schema version.

    *)
  2. schemaArn : Values_0.GlueResourceArn.t option;
    (*

    The Amazon Resource Name (ARN) of the schema.

    *)
  3. dataFormat : Values_0.DataFormat.t option;
    (*

    The data format of the schema definition. Currently AVRO, JSON and PROTOBUF are supported.

    *)
  4. status : Values_1.SchemaVersionStatus.t option;
    (*

    The status of the schema version.

    *)
  5. createdTime : Values_1.CreatedTimestamp.t option;
    (*

    The date and time the schema was created.

    *)
}
Sourcetype nonrec error = [
  1. | `AccessDeniedException of Values_0.AccessDeniedException.t
  2. | `EntityNotFoundException of Values_0.EntityNotFoundException.t
  3. | `InternalServiceException of Values_0.InternalServiceException.t
  4. | `InvalidInputException of Values_0.InvalidInputException.t
  5. | `Unknown_operation_error of string * string option
]
Sourceval make : ?schemaVersionId:??? -> ?schemaArn:??? -> ?dataFormat:??? -> ?status:??? -> ?createdTime:??? -> unit -> t
Sourceval error_of_json : string -> Yojson.Safe.t -> [> `AccessDeniedException of Values_0.AccessDeniedException.t | `EntityNotFoundException of Values_0.EntityNotFoundException.t | `InternalServiceException of Values_0.InternalServiceException.t | `InvalidInputException of Values_0.InvalidInputException.t | `Unknown_operation_error of string * string option ]
Sourceval error_of_xml : string -> Awso.Xml.t -> [> `AccessDeniedException of Values_0.AccessDeniedException.t | `EntityNotFoundException of Values_0.EntityNotFoundException.t | `InternalServiceException of Values_0.InternalServiceException.t | `InvalidInputException of Values_0.InvalidInputException.t | `Unknown_operation_error of string * string option ]
Sourceval error_to_json : error -> Yojson.Safe.t
Sourceval to_value : t -> [> `Structure of (string * [> `Enum of string | `String of Values_0.SchemaVersionIdString.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