Class S3Builder
URI assembly of .
public sealed class S3Builder
Inheritance
Methods
CacheControl(string)
Cache-Control header for uploaded objects.
public S3Builder CacheControl(string cacheControl)
ConditionalWrite()
Conditional write — fail if object already exists.
public S3Builder ConditionalWrite()
ConnectionFactory(string)
Named connection factory reference from DI.
public S3Builder ConnectionFactory(string name)
ConnectionTimeout(IExpression)
Connection timeout from an expression.
public S3Builder ConnectionTimeout(IExpression ms)
ConnectionTimeout(int)
Connection timeout in milliseconds. Default 30000.
public S3Builder ConnectionTimeout(int ms)
ContentDisposition(string)
Content-Disposition for uploaded objects.
public S3Builder ContentDisposition(string disposition)
ContentEncoding(string)
Content-Encoding for uploaded objects (e.g. "gzip").
public S3Builder ContentEncoding(string encoding)
ContentType(string)
Content-Type for uploaded objects. Empty = auto-detect.
public S3Builder ContentType(string contentType)
DeleteAfterRead(bool)
Delete objects from S3 after successful consumption. Default true.
public S3Builder DeleteAfterRead(bool delete = true)
Delimiter(string)
Delimiter for ListObjectsV2 key grouping (typically "/").
public S3Builder Delimiter(string delimiter)
DoneFileName(IExpression)
Done file marker from an expression.
public S3Builder DoneFileName(IExpression pattern)
DoneFileName(string)
Done file marker pattern (e.g. "${file:name}.done").
public S3Builder DoneFileName(string pattern)
ForcePathStyle()
Use path-style URLs. Required for MinIO and most S3-compatible stores.
public S3Builder ForcePathStyle()
Idempotent()
Enable idempotent consumer (key = object Key + ETag + Size).
public S3Builder Idempotent()
IdempotentRepository(string)
Named IIdempotentRepository from the context registry (survives restarts).
public S3Builder IdempotentRepository(string name)
Include(string)
Glob pattern to include (e.g. ".csv", "data/.json").
public S3Builder Include(string pattern)
IncludeBody(bool)
Download object body into exchange. Default true.
public S3Builder IncludeBody(bool include = true)
IncludeFolders()
Include folder/directory markers in consumer results.
public S3Builder IncludeFolders()
InitialDelay(IExpression)
Initial delay from an expression.
public S3Builder InitialDelay(IExpression ms)
InitialDelay(int)
Initial delay before first poll in milliseconds. Default 1000.
public S3Builder InitialDelay(int ms)
KeyName(IExpression)
Dynamic object key from an expression (e.g. Header("fileName")).
public S3Builder KeyName(IExpression name)
KeyName(string)
Dynamic object key name for upload. Supports expressions.
public S3Builder KeyName(string name)
MaxConnections(int)
Max connections in the SDK pool. Default 50.
public S3Builder MaxConnections(int count)
MaxMessagesPerPoll(IExpression)
Max objects per poll from an expression.
public S3Builder MaxMessagesPerPoll(IExpression max)
MaxMessagesPerPoll(int)
Max objects per poll. 0 = unlimited. Default 10.
public S3Builder MaxMessagesPerPoll(int max)
Metadata(string)
User metadata as comma-separated key=value pairs (e.g. "author=redb,env=prod").
public S3Builder Metadata(string kvPairs)
MoveAfterRead(string, string?, string?)
Move objects to destination bucket after consumption instead of deleting.
public S3Builder MoveAfterRead(string destinationBucket, string? prefix = null, string? suffix = null)
PartSize(long)
Part size in bytes for multipart upload. Minimum 5 MB. Default 25 MB.
public S3Builder PartSize(long bytes)
PresignedUrlExpiration(long)
Presigned URL expiration in milliseconds. Default 3600000 (1h).
public S3Builder PresignedUrlExpiration(long ms)
ProfileName(string)
AWS named profile from ~/.aws/credentials.
public S3Builder ProfileName(string profile)
Proxy(IExpression, int)
HTTP proxy with host from expression.
public S3Builder Proxy(IExpression host, int port)
Region(string)
AWS region (e.g. "us-east-1"). Default "us-east-1".
public S3Builder Region(string region)
RemovePrefixOnMove()
Remove source prefix from key when moving objects.
public S3Builder RemovePrefixOnMove()
SendEmptyMessageWhenIdle()
Send empty exchange when poll returns no objects (heartbeat).
public S3Builder SendEmptyMessageWhenIdle()
ServiceUrl(IExpression)
Custom service URL from an expression.
public S3Builder ServiceUrl(IExpression url)
ServiceUrl(string)
Custom service URL for S3-compatible storage (MinIO, Ceph, etc.).
public S3Builder ServiceUrl(string url)
SessionToken(IExpression)
Session token from an expression.
public S3Builder SessionToken(IExpression token)
SessionToken(string)
AWS session token for temporary credentials (STS).
public S3Builder SessionToken(string token)
SocketTimeout(IExpression)
Socket timeout from an expression.
public S3Builder SocketTimeout(IExpression ms)
SocketTimeout(int)
Socket/read timeout in milliseconds. Default 60000.
public S3Builder SocketTimeout(int ms)
SortBy(S3SortBy)
Sort order: None, Key, KeyDesc, LastModified, LastModifiedDesc, Size, SizeDesc.
public S3Builder SortBy(S3SortBy sort)
StorageClass(string)
S3 storage class (STANDARD, GLACIER, INTELLIGENT_TIERING, etc.).
public S3Builder StorageClass(string storageClass)
TrustAllCertificates()
Trust all SSL certificates (for self-signed certs).
public S3Builder TrustAllCertificates()
UseAes256Encryption()
Enable SSE-S3 encryption (AES-256, managed by AWS).
public S3Builder UseAes256Encryption()
UseCustomerEncryption(string, string, string?)
Enable SSE-C encryption with customer-provided key material.
public S3Builder UseCustomerEncryption(string algorithm, string keyId, string? keyMD5 = null)
UseDefaultCredentials()
Use the default AWS credentials provider chain.
public S3Builder UseDefaultCredentials()
UseKmsEncryption(string)
Enable SSE-KMS encryption with the given AWS KMS key ID.
public S3Builder UseKmsEncryption(string kmsKeyId)