Writing to S3

  • Use the previously client to upload items to S3
PutObjectRequest request = PutObjectRequest.builder()
    .bucket("rk0")
    .key("hello.txt")
    .build();

var body = RequestBody.fromString(message);
this.s3Client.putObject(request, body);

21 / 23