OptionalcacheCache namespace (see Connector.cacheNamespace). Defaults to
s3:<endpoint> (s3:aws without an endpoint); with an injected
client whose endpoint is unknown, cache entries are private to this
connector unless a namespace is given.
OptionalclientAn existing S3Client to send requests with, e.g. one shared with the
rest of the application. The connector does not destroy it on
S3Connector.close. region, credentials, endpoint and
forcePathStyle are ignored.
OptionalcoalesceMerge byte ranges separated by at most this many bytes into one request.
OptionalcredentialsExplicit AWS credentials.
When omitted, the SDK falls back to the default credential provider chain (environment variables, shared credentials file, EC2 instance metadata, ECS container credentials, etc.).
AWS access key ID.
AWS secret access key.
OptionalsessionToken?: stringOptional session token for temporary credentials (STS).
OptionalendpointCustom endpoint URL for S3-compatible object stores.
Set this when targeting MinIO, Cloudflare R2, Backblaze B2, or any other store that exposes an S3-compatible API at a non-AWS endpoint.
OptionalexpectedAccount id the bucket must belong to; requests to a bucket owned by
another account fail with 403 (ExpectedBucketOwner).
OptionalforceForce path-style addressing (endpoint/bucket/key) instead of the
default virtual-hosted style (bucket.endpoint/key).
Required by some S3-compatible stores that do not support virtual-hosted bucket addressing.
OptionalgetFurther GetObject input sent with every request, e.g. server-side
encryption with customer keys: { SSECustomerAlgorithm: 'AES256', SSECustomerKey, SSECustomerKeyMD5 }. Bucket, Key, Range,
IfMatch and VersionId are set by the connector.
OptionalmaxMost GetObject requests in flight at once across all reads through
this connector (every tile and source sharing it); further requests
wait in arrival order. Matches the SDK's default socket pool (50) so
that requests queue here, where they can be cancelled, rather than in
the HTTP agent. Infinity disables the limit.
OptionalprefetchSize of the first read of a file (header plus top of the index).
OptionalregionAWS region for the S3 client (e.g. "us-east-1"). When omitted, the
SDK takes it from the environment (AWS_REGION). Ignored with client.
OptionalrequestSet to 'requester' to read from Requester Pays buckets (the
requester is charged for the requests and transfer).
OptionalsdkThe @aws-sdk/client-s3 module, e.g. import * as s3 from '@aws-sdk/client-s3'. Pass it when bundling the SDK into your
application; otherwise it is imported at runtime on first use.
OptionaltimeoutTimeout per GetObject in milliseconds, covering the response and its
body, so a stalled connection cannot hold a request slot forever. The
SDK's own retries (maxAttempts) happen within it. 0 or Infinity
disable the timeout.
Configuration options for S3Connector.