Esempio n. 1
0
        public void DeviceFarmDeleteRun()
        {
            #region deleterun-example-1470867905129

            var response = client.DeleteRun(new DeleteRunRequest
            {
                Arn = "arn:aws:devicefarm:us-west-2:123456789101:run:EXAMPLE-GUID-123-456" // You can get the run ARN by using the list-runs CLI command.
            });


            #endregion
        }
Esempio n. 2
0
 private Amazon.DeviceFarm.Model.DeleteRunResponse CallAWSServiceOperation(IAmazonDeviceFarm client, Amazon.DeviceFarm.Model.DeleteRunRequest request)
 {
     Utils.Common.WriteVerboseEndpointMessage(this, client.Config, "AWS Device Farm", "DeleteRun");
     try
     {
         #if DESKTOP
         return(client.DeleteRun(request));
         #elif CORECLR
         return(client.DeleteRunAsync(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;
     }
 }