Search in sources :

Example 1 with DescribeJournalS3ExportRequest

use of com.amazonaws.services.qldb.model.DescribeJournalS3ExportRequest in project amazon-qldb-dmv-sample-java by aws-samples.

the class DescribeJournalExport method describeExport.

/**
 * Describe a journal export.
 *
 * @param ledgerName
 *              The ledger from which the journal is being exported.
 * @param exportId
 *              Unique ExportID of the journal export.
 * @return {@link DescribeJournalS3ExportResult} from QLDB.
 */
public static DescribeJournalS3ExportResult describeExport(String ledgerName, String exportId) {
    log.info("Let's describe a journal export for ledger with name: {}, ExportId: {}...", ledgerName, exportId);
    DescribeJournalS3ExportRequest request = new DescribeJournalS3ExportRequest().withName(ledgerName).withExportId(exportId);
    DescribeJournalS3ExportResult result = client.describeJournalS3Export(request);
    log.info("Export described. result = " + result);
    return result;
}
Also used : DescribeJournalS3ExportResult(com.amazonaws.services.qldb.model.DescribeJournalS3ExportResult) DescribeJournalS3ExportRequest(com.amazonaws.services.qldb.model.DescribeJournalS3ExportRequest)

Aggregations

DescribeJournalS3ExportRequest (com.amazonaws.services.qldb.model.DescribeJournalS3ExportRequest)1 DescribeJournalS3ExportResult (com.amazonaws.services.qldb.model.DescribeJournalS3ExportResult)1