S3Config class final

Connection settings for an S3-compatible bucket (AWS, MinIO, R2, B2, Spaces).

Annotations
  • @immutable

Constructors

S3Config({required String endpoint, required String region, required String bucket, required String accessKey, required String secretKey, required bool useSsl, required bool pathStyle, Uri? publicBaseUrl})
Creates the S3 settings.
const

Properties

accessKey String
The access key id.
final
bucket String
The bucket every object lives in.
final
endpoint String
The host of the S3 endpoint, e.g. nyc3.digitaloceanspaces.com.
final
hashCode int
The hash code for this object.
no setterinherited
pathStyle bool
Whether to use path-style URLs (needed for MinIO and Backblaze B2).
final
publicBaseUrl Uri?
Base URL for public objects (a CDN/bucket URL), or null to stream them.
final
region String
The region, e.g. us-east-1.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
secretKey String
The secret access key (never logged).
final
useSsl bool
Whether to use HTTPS.
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