Пример #1
0
 private Amazon.QLDB.Model.UpdateLedgerResponse CallAWSServiceOperation(IAmazonQLDB client, Amazon.QLDB.Model.UpdateLedgerRequest request)
 {
     Utils.Common.WriteVerboseEndpointMessage(this, client.Config, "Amazon QLDB", "UpdateLedger");
     try
     {
         #if DESKTOP
         return(client.UpdateLedger(request));
         #elif CORECLR
         return(client.UpdateLedgerAsync(request).GetAwaiter().GetResult());
         #else
                 #error "Unknown build edition"
         #endif
     }
     catch (AmazonServiceException exc)
     {
         var webException = exc.InnerException as System.Net.WebException;
         if (webException != null)
         {
             throw new Exception(Utils.Common.FormatNameResolutionFailureMessage(client.Config, webException.Message), webException);
         }
         throw;
     }
 }
 internal QLDBPaginatorFactory(IAmazonQLDB client)
 {
     this.client = client;
 }
Пример #3
0
 internal ListJournalS3ExportsForLedgerPaginator(IAmazonQLDB client, ListJournalS3ExportsForLedgerRequest request)
 {
     this._client  = client;
     this._request = request;
 }
 internal ListLedgersPaginator(IAmazonQLDB client, ListLedgersRequest request)
 {
     this._client  = client;
     this._request = request;
 }
 internal ListJournalKinesisStreamsForLedgerPaginator(IAmazonQLDB client, ListJournalKinesisStreamsForLedgerRequest request)
 {
     this._client  = client;
     this._request = request;
 }
Пример #6
0
 public CreateLedger()
 {
     qldbClient = new AmazonQLDBClient();
 }
        protected override void ProcessRecord()
        {
            base.ProcessRecord();

            Client = CreateClient(_CurrentCredentials, _RegionEndpoint);
        }