Created
February 4, 2019 09:44
-
-
Save mateuszmrozewski/e6894a4127ff870fef130f3329acce3f to your computer and use it in GitHub Desktop.
SSE-S3 example with header
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PutObjectRequest putRequestUnencrytped = PutObjectRequest.builder() | |
.bucket("myunencrypted-bucket") | |
.key("my-file.png") | |
.serverSideEncryption(ServerSideEncryption.AES256) | |
.build(); | |
client.putObject(putRequestUnencrytped, Paths.get("my-file.png")); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment