private void uploadFileToBucket(InputStream inputStream, String jobName) throws TikaException {
        PutObjectRequest request = PutObjectRequest.builder().bucket(bucketName).key(jobName).build();
        try {
            @SuppressWarnings("unused")
            PutObjectResponse response = amazonS3.putObject(request, RequestBody.fromInputStream(inputStream, inputStream.available()));
        } catch (SdkClientException | IOException e) {
            throw new TikaException("File upload to AWS failed: " + e.getMessage(), e);
        }
    }
Constructs a new {@link PutObjectRequest} object to upload a file to the
specified bucket and jobName. After constructing the request, users may
optionally specify object metadata or a canned ACL as well.

@param inputStream, null
                    The file to upload to Amazon S3.
@param jobName      The unique job name for each job(UUID).
tika-parsers/tika-parsers-ml/tika-transcribe-aws/src/main/java/org/apache/tika/parser/transcribe/aws/AmazonTranscribe.java