Exemplo n.º 1
0
        public void DeviceFarmDeleteRemoteAccessSession()
        {
            #region to-delete-a-specific-remote-access-session-1470971431677

            var response = client.DeleteRemoteAccessSession(new DeleteRemoteAccessSessionRequest
            {
                Arn = "arn:aws:devicefarm:us-west-2:123456789101:session:EXAMPLE-GUID-123-456" // You can get the remote access session ARN by using the list-remote-access-sessions CLI command.
            });


            #endregion
        }
Exemplo n.º 2
0
 private Amazon.DeviceFarm.Model.DeleteRemoteAccessSessionResponse CallAWSServiceOperation(IAmazonDeviceFarm client, Amazon.DeviceFarm.Model.DeleteRemoteAccessSessionRequest request)
 {
     Utils.Common.WriteVerboseEndpointMessage(this, client.Config, "AWS Device Farm", "DeleteRemoteAccessSession");
     try
     {
         #if DESKTOP
         return(client.DeleteRemoteAccessSession(request));
         #elif CORECLR
         return(client.DeleteRemoteAccessSessionAsync(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;
     }
 }