create_device_pool
async
¶
create_device_pool(
project_arn: AmazonResourceName,
name: Name,
rules: Rules,
*,
config_overrides: Optional[AsyncDeviceFarmClientConfig] = None,
description: Optional[Message] = None,
max_devices: Optional[Integer] = None,
) -> CreateDevicePoolResult
Creates a device pool.
Parameters:
-
project_arn(AmazonResourceName) –The ARN of the project for the device pool.
-
name(Name) –The device pool's name.
-
description(Optional[Message], default:None) –The device pool's description.
-
rules(Rules) –The device pool's rules.
-
max_devices(Optional[Integer], default:None) –The number of devices that Device Farm can add to your device pool. Device Farm adds devices that are available and meet the criteria that you assign for the
rulesparameter. Depending on how many devices meet these constraints, your device pool might contain fewer devices than the value for this parameter.By specifying the maximum number of devices, you can control the costs that you incur by running tests.
Raises:
-
ArgumentException–An invalid argument was specified.
-
LimitExceededException–A limit was exceeded.
-
NotFoundException–The specified entity was not found.
-
ServiceAccountException–There was a problem with the service account.
-
UnknownServiceError–The service returned an error code this client does not model.
Examples:
To create a new device pool The following example creates a new device pool named MyDevicePool inside an existing project.
>>> await client.create_device_pool(project_arn='arn:aws:devicefarm:us-west-2:123456789101:project:EXAMPLE-GUID-123-456', name='MyDevicePool', description='My Android devices', rules=[])