public void DeviceFarmCreateUpload() { #region createupload-example-1470864711775 var response = client.CreateUpload(new CreateUploadRequest { Name = "MyAppiumPythonUpload", Type = "APPIUM_PYTHON_TEST_PACKAGE", ProjectArn = "arn:aws:devicefarm:us-west-2:123456789101:project:EXAMPLE-GUID-123-456" // You can get the project ARN by using the list-projects CLI command. }); Upload upload = response.Upload; #endregion }
private Amazon.DeviceFarm.Model.CreateUploadResponse CallAWSServiceOperation(IAmazonDeviceFarm client, Amazon.DeviceFarm.Model.CreateUploadRequest request) { Utils.Common.WriteVerboseEndpointMessage(this, client.Config, "AWS Device Farm", "CreateUpload"); try { #if DESKTOP return(client.CreateUpload(request)); #elif CORECLR return(client.CreateUploadAsync(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; } }