package awskit

  1. Overview
  2. Docs
AWS infrastructure — signing, credentials, endpoints, and core types

Install

dune-project
 Dependency

Authors

Maintainers

Sources

awskit-v0.1.0.tbz
sha256=788e91d57b9eed047bdef011aec476e94588be20e2e2f1b8495cf48b1a90cf0f
sha512=0d441d599f3f3efb766270258bb4d8c9cd660943eb7f90ced0ec6f61a6790f5fb8977ca5cf87f466d84701ee34dbfdf81fe5043b568a2236411f577e698c6d1e

doc/awskit/Awskit/Runtime/module-type-S/index.html

Module type Runtime.SSource

type +'a t

Runtime effect type, such as 'a for direct-style Eio adapters or 'a Lwt.t for Lwt adapters.

val return : 'a -> 'a t
val bind : 'a t -> ('a -> 'b t) -> 'b t
type connection

Runtime connection/configuration handle passed to service operations.

type request_body

Runtime-owned request body.

type response_body

Runtime-owned response body. Must be consumed through scoped helpers.

type request_body_writer
type response_body_reader
val now : connection -> Ptime.t

Current signing time.

val region : connection -> Region.t

AWS region used for signing and default endpoint resolution.

val credentials : connection -> (Credentials.t, Error.t) result t

Resolve credentials for the next signed request.

val endpoint : connection -> Endpoint.t option

Optional generic endpoint override. Service packages may expose richer endpoint configuration when addressing rules are service-specific.

val retry_policy : connection -> Retry.t

Retry policy used by service packages.

val sleep : connection -> Ptime.Span.t -> unit t

Sleep between retry attempts.

module Request_body : sig ... end
module Response_body : sig ... end
val with_response : connection -> Request.t -> request_body -> f:(Response.t -> response_body -> ('a, Error.t) result t) -> ('a, Error.t) result t

Send a request and provide the response metadata and body to f.

Service packages use this primitive for all HTTP operations. Runtime adapters own connection reuse, body lifetime, and any post-consumer drain behavior.