/// <summary> /// Exports journal contents within a date and time range from a ledger into a specified /// Amazon Simple Storage Service (Amazon S3) bucket. The data is written as files in /// Amazon Ion format. /// /// /// <para> /// If the ledger with the given <code>Name</code> doesn't exist, then throws <code>ResourceNotFoundException</code>. /// </para> /// /// <para> /// If the ledger with the given <code>Name</code> is in <code>CREATING</code> status, /// then throws <code>ResourcePreconditionNotMetException</code>. /// </para> /// /// <para> /// You can initiate up to two concurrent journal export requests for each ledger. Beyond /// this limit, journal export requests throw <code>LimitExceededException</code>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the ExportJournalToS3 service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ExportJournalToS3 service method, as returned by QLDB.</returns> /// <exception cref="Amazon.QLDB.Model.ResourceNotFoundException"> /// The specified resource doesn't exist. /// </exception> /// <exception cref="Amazon.QLDB.Model.ResourcePreconditionNotMetException"> /// The operation failed because a condition wasn't satisfied in advance. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/qldb-2019-01-02/ExportJournalToS3">REST API Reference for ExportJournalToS3 Operation</seealso> public virtual Task <ExportJournalToS3Response> ExportJournalToS3Async(ExportJournalToS3Request request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ExportJournalToS3RequestMarshaller.Instance; options.ResponseUnmarshaller = ExportJournalToS3ResponseUnmarshaller.Instance; return(InvokeAsync <ExportJournalToS3Response>(request, options, cancellationToken)); }
internal virtual ExportJournalToS3Response ExportJournalToS3(ExportJournalToS3Request request) { var options = new InvokeOptions(); options.RequestMarshaller = ExportJournalToS3RequestMarshaller.Instance; options.ResponseUnmarshaller = ExportJournalToS3ResponseUnmarshaller.Instance; return(Invoke <ExportJournalToS3Response>(request, options)); }