in src/ValidateQldbHashchain.ts [64:83]
async function createJournalExport(qldbClient: QLDB): Promise<string> {
const sts: STS = new STS();
const request: GetCallerIdentityRequest = {};
const identity: GetCallerIdentityResponse = await sts.getCallerIdentity(request).promise();
const bucketName: string = format('%s-%s', JOURNAL_EXPORT_S3_BUCKET_NAME_PREFIX, identity.Account);
const prefix: string = format('%s-%s', LEDGER_NAME, Date.now().toString());
await createS3BucketIfNotExists(bucketName, s3Client);
const exportJournalToS3Result = await createExportAndWaitForCompletion(
LEDGER_NAME,
bucketName,
prefix,
setUpS3EncryptionConfiguration(null),
null,
qldbClient
);
return exportJournalToS3Result.ExportId;
}