8 configuration options · available in Rust, Java, Python, Node.js, Ruby, Go
import { Operator } from "opendal";
const operator = new Operator("akamai", {
bucket: "example-bucket",
endpoint: "https://us-sea-9.linodeobjects.com",
});
import { Operator } from "opendal";
const operator = new Operator("akamai", {
// --- General ---
// Root within the bucket. The default is `/`.
// root: "/",
// Bucket name.
bucket: "example-bucket",
// HTTPS S3 base URL for the bucket’s region and endpoint type.
endpoint: "https://us-sea-9.linodeobjects.com",
// Signing region. Defaults to `us-east-1`.
// region: "us-east-1",
// Use virtual-hosted-style bucket addressing.
// enable_virtual_host_style: "true",
// --- Credentials ---
// Access key ID. Set this field together with `secret_access_key`.
// access_key_id: "...",
// Secret access key. Set this field together with `access_key_id`.
// secret_access_key: "...",
// Disable loading credentials from AWS environment variables and shared profile files.
//
// Set both `access_key_id` and `secret_access_key` when enabled.
// disable_config_load: "false",
});
Every option is passed as a string key; OpenDAL parses it into the right type. For a map option, pass a string containing a JSON object whose values are strings, such as {"key":"value"}. Some services may require building the binding with the matching services-* feature enabled.
| Key | Type | Required | Description |
|---|---|---|---|
rootdefault / | string | no | Root within the bucket. The default is /. |
buckete.g. example-bucket | string | yes | Bucket name. |
endpointe.g. https://us-sea-9.linodeobjects.com | string | yes | HTTPS S3 base URL for the bucket’s region and endpoint type. |
regiondefault us-east-1 | string | no | Signing region. Defaults to us-east-1. |
enable_virtual_host_styledefault true | bool | no | Use virtual-hosted-style bucket addressing. |
| Key | Type | Required | Description |
|---|---|---|---|
access_key_id | string | no | Access key ID. Set this field together with secret_access_key. |
secret_access_key | string | no | Secret access key. Set this field together with access_key_id. |
disable_config_loaddefault false | bool | no | Disable loading credentials from AWS environment variables and shared profile files.
Set both access_key_id and secret_access_key when enabled. |
These are the capabilities and storage hints declared by the akamai service. The effective values depend on its configuration and the layers applied to your operator. Available options and inspection APIs depend on your binding.
| Field | Declaration | Description |
|---|---|---|
stat | Declared | Indicates if the operator supports metadata retrieval operations. |
stat_with_if_match | Declared | Indicates if conditional stat operations using If-Match are supported. |
stat_with_if_none_match | Declared | Indicates if conditional stat operations using If-None-Match are supported. |
stat_with_if_modified_since | Declared | Indicates if conditional stat operations using If-Modified-Since are supported. |
stat_with_if_unmodified_since | Declared | Indicates if conditional stat operations using If-Unmodified-Since are supported. |
stat_with_version | Conditional Standard S3 buckets (not S3 Express One Zone) | Indicates if versions stat operations are supported. |
| Field | Declaration | Description |
|---|---|---|
read | Declared | Indicates if the operator supports read operations. |
read_with_if_match | Declared | Indicates if conditional read operations using If-Match are supported. |
read_with_if_none_match | Declared | Indicates if conditional read operations using If-None-Match are supported. |
read_with_if_modified_since | Declared | Indicates if conditional read operations using If-Modified-Since are supported. |
read_with_if_unmodified_since | Declared | Indicates if conditional read operations using If-Unmodified-Since are supported. |
read_with_version | Conditional Standard S3 buckets (not S3 Express One Zone) | Indicates if versions read operations are supported. |
read_with_suffix | Declared | Indicates if suffix read operations are supported. |
| Field | Declaration | Description |
|---|---|---|
write | Declared | Indicates if the operator supports write operations. |
write_can_multi | Conditional When checksum_algorithm is not md5 | Indicates if multiple write operations can be performed on the same object. |
write_can_empty | Declared | Indicates if writing empty content is supported. |
write_can_append | Declared | Indicates if append operations are supported. |
write_can_copy_from | Conditional When checksum_algorithm is not set | Indicates if an open, non-append writer can copy eligible byte ranges from existing objects without transferring the copied bytes through the client. Whole-object copy is a separate capability. |
write_with_if_match | Declared | Indicates if conditional write operations using If-Match are supported. |
write_with_if_not_exists | Declared | Indicates if write operations can be conditional on object non-existence. |
write_with_user_metadata | Declared | Indicates if custom user metadata can be attached during write operations. |
write_multi_min_size | 5 MiB | Minimum size required for multipart uploads (except for the last part). For example, AWS S3 requires at least 5MiB per part. |
write_multi_max_size | 5 GiB | Maximum size supported for multipart uploads. For example, AWS S3 supports up to 5GiB per part in multipart uploads. |
write_total_max_size | 50,000 GiB | Maximum total size supported for write operations. For example, Cloudflare D1 has a 1MB total size limit. |
| Field | Declaration | Description |
|---|---|---|
list | Declared | Indicates if list operations are supported. |
list_with_start_after | Conditional Standard S3 buckets (not S3 Express One Zone) | Indicates if list operations support continuation from a specific point. |
list_with_recursive | Conditional Standard S3 buckets (not S3 Express One Zone) | Indicates if recursive listing is supported. |
list_with_versions | Conditional Standard S3 buckets (not S3 Express One Zone) | Indicates if listing with versions included is supported. |
list_with_deleted | Conditional Standard S3 buckets (not S3 Express One Zone) | Indicates if listing with deleted files included is supported. |
| Field | Declaration | Description |
|---|---|---|
delete | Declared | Indicates if delete operations are supported. |
delete_with_version | Conditional Standard S3 buckets (not S3 Express One Zone) | Indicates if versions delete operations are supported. |
delete_with_if_match | Declared | Indicates if conditional delete operations using If-Match are supported. |
delete_max_size | 1,000 | Maximum size supported for single delete operations. |
| Field | Declaration | Description |
|---|---|---|
copy | Declared | Indicates if copy operations are supported. |
copy_with_if_not_exists | Declared | Indicates if conditional copy operations with if-not-exists are supported. |
copy_with_if_match | Declared | Indicates if conditional copy operations with if-match are supported. |
copy_with_source_version | Conditional Standard S3 buckets (not S3 Express One Zone) | Indicates if copy operations from a specific source version are supported. |
copy_with_user_metadata | Declared | Indicates if copy operations can replace the destination's user metadata. |
copy_with_replace_metadata | Declared | Indicates if copy operations can replace the destination's whole metadata set, including on same-path copies. |
copy_can_multi | Declared | Indicates if copy operations can be split into multiple server-side tasks. |
copy_multi_min_size | 5 MiB | Minimum size required for segmented copy tasks. |
copy_multi_max_size | 5 GiB | Maximum size supported for segmented copy tasks. |
| Field | Declaration | Description |
|---|---|---|
presign_read | Declared | Indicates if presigned URLs for read operations are supported. |
presign_stat | Declared | Indicates if presigned URLs for stat operations are supported. |
presign_write | Declared | Indicates if presigned URLs for write operations are supported. |
presign_delete | Declared | Indicates if presigned URLs for delete operations are supported. |
presign | Declared | Indicates if any operation supports presigned URL generation. |
| Field | Declaration | Description |
|---|---|---|
shared | Declared | Independently constructed operators with the same configuration share storage. |
file_and_dir_coexist | Declared | A file a and a directory prefix a/b can coexist. |
| Field | Declaration | Description |
|---|---|---|
restore | Conditional Standard S3 buckets (not S3 Express One Zone) | Indicates if restore operations are supported. |
restore_with_version | Conditional Standard S3 buckets (not S3 Express One Zone) | Indicates if restoring a specific version is supported. |
restore_with_if_not_exists | Conditional Standard S3 buckets (not S3 Express One Zone) | Indicates if conditional restore operations using if-not-exists are supported. |
create_dir | Declared | Indicates if directory creation is supported. |