Пример #1
0
        public void DeviceFarmGetDevice()
        {
            #region getdevice-example-1470870602173

            var response = client.GetDevice(new GetDeviceRequest
            {
                Arn = "arn:aws:devicefarm:us-west-2::device:123EXAMPLE"
            });

            Device device = response.Device;

            #endregion
        }
 private Amazon.DeviceFarm.Model.GetDeviceResponse CallAWSServiceOperation(IAmazonDeviceFarm client, Amazon.DeviceFarm.Model.GetDeviceRequest request)
 {
     Utils.Common.WriteVerboseEndpointMessage(this, client.Config, "AWS Device Farm", "GetDevice");
     try
     {
         #if DESKTOP
         return(client.GetDevice(request));
         #elif CORECLR
         return(client.GetDeviceAsync(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;
     }
 }