public void DeviceFarmCreateDevicePool() { #region createdevicepool-example-1470862210860 var response = client.CreateDevicePool(new CreateDevicePoolRequest { Name = "MyDevicePool", // A device pool contains related devices, such as devices that run only on Android or that run only on iOS. Description = "My Android devices", 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. Rules = new List <Rule> { } }); DevicePool devicePool = response.DevicePool; #endregion }
private Amazon.DeviceFarm.Model.CreateDevicePoolResponse CallAWSServiceOperation(IAmazonDeviceFarm client, Amazon.DeviceFarm.Model.CreateDevicePoolRequest request) { Utils.Common.WriteVerboseEndpointMessage(this, client.Config, "AWS Device Farm", "CreateDevicePool"); try { #if DESKTOP return(client.CreateDevicePool(request)); #elif CORECLR return(client.CreateDevicePoolAsync(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; } }