Package de.taimos.pipeline.aws
Class S3UploadOptions
java.lang.Object
de.taimos.pipeline.aws.S3UploadOptions
- All Implemented Interfaces:
Serializable
The object-shaping parameters s3Upload accepts, and their translation onto a v2 PutObjectRequest.
v1 spread this across four near-identical blocks - the text upload, the single-file callable, and
an ObjectMetadataProvider in each of the two directory callables - which had already drifted apart:
the file-list provider set the SSE *algorithm* to the KMS key id, where the single-file path
correctly set it to aws:kms. Collecting the parameters here means the translation exists once and
the callables serialise one field instead of ten.
Serializable because the upload callables carry it to the agent.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
S3UploadOptions
-
-
Method Details
-
getKmsId
-
applyTo
public software.amazon.awssdk.services.s3.model.PutObjectRequest.Builder applyTo(software.amazon.awssdk.services.s3.model.PutObjectRequest.Builder request) Applies every option that is set. Unset options are left alone rather than written as null, so that S3 defaults still apply.
-