Esempio n. 1
0
        public void SnowballCancelJob()
        {
            #region to-cancel-a-job-for-a-snowball-device-1482534699477

            var response = client.CancelJob(new CancelJobRequest
            {
                JobId = "JID123e4567-e89b-12d3-a456-426655440000"
            });


            #endregion
        }
Esempio n. 2
0
 private Amazon.Snowball.Model.CancelJobResponse CallAWSServiceOperation(IAmazonSnowball client, Amazon.Snowball.Model.CancelJobRequest request)
 {
     Utils.Common.WriteVerboseEndpointMessage(this, client.Config, "AWS Import/Export Snowball", "CancelJob");
     try
     {
         #if DESKTOP
         return(client.CancelJob(request));
         #elif CORECLR
         return(client.CancelJobAsync(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;
     }
 }