Class S3
Fluent API for S3/MinIO endpoints.
// Consumer: poll bucket for new CSV files
.From(S3.Bucket("my-bucket")
.ServiceUrl("http://localhost:9000").ForcePathStyle()
.AccessKey("minioadmin").SecretKey("minioadmin")
.Prefix("incoming/").Include("*.csv")
.DeleteAfterRead().Delay(30_000))
// Producer: upload to S3 with SSE-KMS
.To(S3.Bucket("my-bucket")
.Region("eu-west-1").AccessKey("KEY").SecretKey("SECRET")
.KeyName(Expression.Header("fileName"))
.MultiPartUpload().PartSize(10_485_760)
.UseKmsEncryption("my-key-id")
.StorageClass("INTELLIGENT_TIERING"))
// Presigned URL generation
.To(S3.Bucket("my-bucket", S3OperationType.CreateDownloadLink)
.AccessKey("KEY").SecretKey("SECRET")
.PresignedUrlExpiration(7_200_000))
public static class S3
Inheritance
Methods
Bucket(string, S3OperationType)
Creates an S3 endpoint for a bucket with a specific producer operation.
public static S3Builder Bucket(string bucketName, S3OperationType operation)
Bucket(string)
Creates an S3 endpoint for the given bucket name.
public static S3Builder Bucket(string bucketName)