S3Config class base

Configuration required to connect to an S3-compatible object store.

S3Config contains credentials, bucket selection, region, and an optional endpoint override.

Example:

final config = S3Config(
  key: 'AKIA...',
  secret: 'super-secret',
  bucket: 'my-app-bucket',
  region: 'us-east-1',
);

Constructors

S3Config({required String key, required String secret, required String bucket, String? endpoint, String region = 'us-east-1'})
Creates an S3 configuration object.
S3Config.fromMap(Map<String, dynamic> map)
Creates an S3Config from a map.
factory

Properties

bucket → String
Bucket name targeted by the client.
final
endpoint → String?
Optional custom endpoint for S3-compatible providers.
final
hashCode → int
The hash code for this object.
no setterinherited
key → String
Access key used to sign S3 requests.
final
region → String
Region used in the credential scope and default host construction.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
secret → String
Secret key used to derive AWS Signature Version 4 signatures.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited