public class S3ResourceHandlerBuilder extends AbstractRemoteResourceHandlerBuilder<S3ResourceHandlerBuilder>
A S3 resource is identified by an end point, a bucket, an object name. Additional credentials can be passed as well.
builder, cron, metricsContext, requiredResource, silent
Constructor and Description |
---|
S3ResourceHandlerBuilder()
Ctor
|
Modifier and Type | Method and Description |
---|---|
Supplier<Tuple> |
getTupleSupplier() |
S3ResourceHandlerBuilder |
setS3Credentials(Path s3Key,
Path s3Secret)
Set the optional S3 credentials.
|
S3ResourceHandlerBuilder |
setS3ResourceUrl(String s3endpoint,
String s3Bucket,
String s3Object) |
setCronExpression, setMetricContext, setRequiredResource, setResourceTupleBuilder, setSilent
public Supplier<Tuple> getTupleSupplier()
getTupleSupplier
in class AbstractRemoteResourceHandlerBuilder<S3ResourceHandlerBuilder>
public S3ResourceHandlerBuilder setS3ResourceUrl(String s3endpoint, String s3Bucket, String s3Object)
s3endpoint
- the S3 end point URLs3Bucket
- the buckets3Object
- the target object namepublic S3ResourceHandlerBuilder setS3Credentials(Path s3Key, Path s3Secret)
Paths are expected to conform to a safe usage where someone (typically an K8 init container) provide us with these files at startup.
s3Key
- s3Secret
- Copyright © 2023. All rights reserved.