private Amazon.DataSync.Model.ListLocationsResponse CallAWSServiceOperation(IAmazonDataSync client, Amazon.DataSync.Model.ListLocationsRequest request)
 {
     Utils.Common.WriteVerboseEndpointMessage(this, client.Config, "AWS DataSync", "ListLocations");
     try
     {
         #if DESKTOP
         return(client.ListLocations(request));
         #elif CORECLR
         return(client.ListLocationsAsync(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;
     }
 }
Пример #2
0
 internal ListTasksPaginator(IAmazonDataSync client, ListTasksRequest request)
 {
     this._client  = client;
     this._request = request;
 }
Пример #3
0
 internal DataSyncPaginatorFactory(IAmazonDataSync client)
 {
     this.client = client;
 }
 internal ListTagsForResourcePaginator(IAmazonDataSync client, ListTagsForResourceRequest request)
 {
     this._client = client;
     this._request = request;
 }
Пример #5
0
        protected override void ProcessRecord()
        {
            base.ProcessRecord();

            Client = CreateClient(_CurrentCredentials, _RegionEndpoint);
        }