Module Values.GetJobOutputOutputSource

Contains the Amazon Glacier response to your request.

Sourcetype nonrec t = {
  1. body : Stream.t option;
    (*

    The job data, either archive data or inventory data.

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

    The checksum of the data in the response. This header is returned only when retrieving the output for an archive retrieval job. Furthermore, this header appears only under the following conditions: You get the entire range of the archive. You request a range to return of the archive that starts and ends on a multiple of 1 MB. For example, if you have an 3.1 MB archive and you specify a range to return that starts at 1 MB and ends at 2 MB, then the x-amz-sha256-tree-hash is returned as a response header. You request a range of the archive to return that starts on a multiple of 1 MB and goes to the end of the archive. For example, if you have a 3.1 MB archive and you specify a range that starts at 2 MB and ends at 3.1 MB (the end of the archive), then the x-amz-sha256-tree-hash is returned as a response header.

    *)
  3. status : Httpstatus.t option;
    (*

    The HTTP response code for a job output request. The value depends on whether a range was specified in the request.

    *)
  4. contentRange : String_.t option;
    (*

    The range of bytes returned by Amazon Glacier. If only partial output is downloaded, the response provides the range of bytes Amazon Glacier returned. For example, bytes 0-1048575/8388608 returns the first 1 MB from 8 MB.

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

    Indicates the range units accepted. For more information, see RFC2616.

    *)
  6. contentType : String_.t option;
    (*

    The Content-Type depends on whether the job output is an archive or a vault inventory. For archive data, the Content-Type is application/octet-stream. For vault inventory, if you requested CSV format when you initiated the job, the Content-Type is text/csv. Otherwise, by default, vault inventory is returned as JSON, and the Content-Type is application/json.

    *)
  7. archiveDescription : String_.t option;
    (*

    The description of an archive.

    *)
}
Sourcetype nonrec error = [
  1. | `InvalidParameterValueException of InvalidParameterValueException.t
  2. | `MissingParameterValueException of MissingParameterValueException.t
  3. | `NoLongerSupportedException of NoLongerSupportedException.t
  4. | `ResourceNotFoundException of ResourceNotFoundException.t
  5. | `ServiceUnavailableException of ServiceUnavailableException.t
  6. | `Unknown_operation_error of string * string option
]
Sourceval make : ?body:??? -> ?checksum:??? -> ?status:??? -> ?contentRange:??? -> ?acceptRanges:??? -> ?contentType:??? -> ?archiveDescription:??? -> unit -> t
Sourceval error_of_json : string -> Yojson.Safe.t -> [> `InvalidParameterValueException of InvalidParameterValueException.t | `MissingParameterValueException of MissingParameterValueException.t | `NoLongerSupportedException of NoLongerSupportedException.t | `ResourceNotFoundException of ResourceNotFoundException.t | `ServiceUnavailableException of ServiceUnavailableException.t | `Unknown_operation_error of string * string option ]
Sourceval error_of_xml : string -> Awso.Xml.t -> [> `InvalidParameterValueException of InvalidParameterValueException.t | `MissingParameterValueException of MissingParameterValueException.t | `NoLongerSupportedException of NoLongerSupportedException.t | `ResourceNotFoundException of ResourceNotFoundException.t | `ServiceUnavailableException of ServiceUnavailableException.t | `Unknown_operation_error of string * string option ]
Sourceval error_to_json : error -> Yojson.Safe.t
Sourceval of_header_and_body : ((string, String_.t) Awso.Import.List.Assoc.t * Stream.t) -> t
Sourceval to_value : t -> [> `Structure of (string * [> `Blob of Stream.t | `Integer of Httpstatus.t | `String of String_.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