sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page
S3 functions All function requires a region
, scheme
and credentials
.
The default region is Us_east_1
.
The default scheme is http
. If you are connecting from outside AWS, it is strongly recommended that you use https. To use https, make sure to have the relevant opam packages installed: async_ssl
for async
and lwt_ssl
/tls
for lwt
. Please note that connections are not reused due to a limitation on the AWS endpoint.
If no credentials is provided, the requests will not be signed, The bucket / objects need to be configured accordingly.
IPv6 connection can be set globally using the function: Aws_s3.S3.Make.set_connection_type
.
type content = {
storage_class : storage_class;
size : int;
last_modified : float;
Seconds since epoch
*)key : string;
etag : etag;
Etag as a string. this us usually the MD5, unless the object was constructed by multi-upload
*)}
type nonrec 'a result = ('a, error) Stdlib.result Io.Deferred.t
type 'a command =
?scheme:[ `Http | `Https ] ->
?credentials:Credentials.t ->
?region:Region.t ->
'a
module Ls : sig ... end
module Delete_multi : sig ... end
Globally switch between IPv4 or IPv6 connections. This will affect all following operations on buckets/objects. Defaut is to use IPv4, but may change in the future. Unix domain sockets are not supported.
val put :
(?content_type:string ->
?content_encoding:string ->
?acl:string ->
?cache_control:string ->
?expect:bool ->
bucket:string ->
key:string ->
data:string ->
unit ->
etag result)
command
Upload data
to bucket
/key
. Returns the etag of the object. The etag is the md5 checksum (RFC 1864)
Download key
from s3 in bucket
If range
is specified, only a part of the file is retrieved:
first
is None, then start from the beginning of the object.last
is None, then get to the end of the object.Call head on the object to retrieve info on a single object
val delete_multi :
(bucket:string ->
objects:Delete_multi.objekt list ->
unit ->
Delete_multi.result result)
command
Delete multiple objects from bucket
.
The result will indicate which items failed and which are deleted. If an item is not found it will be reported as successfully deleted (the operation is idempotent).
val ls :
(?continuation_token:string ->
?prefix:string ->
?max_keys:int ->
bucket:string ->
unit ->
Ls.t)
command
List contents in bucket
Aws will return at most 1000 keys per request. If not all keys are returned, the function will return a continuation.
module Stream : sig ... end
Streaming functions. Streaming function seeks to limit the amount of used memory used when operating of large objects by operating on streams.
module Multipart_upload : sig ... end