update_device_pool
¶
update_device_pool(
arn: AmazonResourceName,
*,
config_overrides: Optional[DeviceFarmClientConfig] = None,
name: Optional[Name] = None,
description: Optional[Message] = None,
rules: Optional[Rules] = None,
max_devices: Optional[Integer] = None,
clear_max_devices: Optional[Boolean] = None,
) -> UpdateDevicePoolResult
Modifies the name, description, and rules in a device pool given the attributes and the pool ARN. Rule updates are all-or-nothing, meaning they can only be updated as a whole (or not at all).
Parameters:
-
arn(AmazonResourceName) –The Amazon Resource Name (ARN) of the Device Farm device pool to update.
-
name(Optional[Name], default:None) –A string that represents the name of the device pool to update.
-
description(Optional[Message], default:None) –A description of the device pool to update.
-
rules(Optional[Rules], default:None) –Represents the rules to modify for the device pool. Updating rules is optional. If you update rules for your request, the update replaces the existing 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 that 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.
If you use this parameter in your request, you cannot use the
clearMaxDevicesparameter in the same request. -
clear_max_devices(Optional[Boolean], default:None) –Sets whether the
maxDevicesparameter applies to your device pool. If you set this parameter totrue, themaxDevicesparameter does not apply, and Device Farm does not limit the number of devices that it adds to your device pool. In this case, Device Farm adds all available devices that meet the criteria specified in therulesparameter.If you use this parameter in your request, you cannot use the
maxDevicesparameter in the same request.
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 update a device pool The following example updates the specified device pool with a new name and description. It also enables remote access of devices in the device pool.
>>> client.update_device_pool(arn='arn:aws:devicefarm:us-west-2::devicepool:082d10e5-d7d7-48a5-ba5c-12345EXAMPLE', name='NewName', description='NewDescription', rules=[{'attribute': 'REMOTE_ACCESS_ENABLED', 'operator': 'EQUALS', 'value': 'True'}])
Source code in docs_src/capo_device_farm/_services/device_farm.py
4933 4934 4935 4936 4937 4938 4939 4940 4941 4942 4943 4944 4945 4946 4947 4948 4949 4950 4951 4952 4953 4954 4955 4956 4957 4958 4959 4960 4961 4962 4963 4964 4965 4966 4967 4968 4969 4970 4971 4972 4973 4974 4975 4976 4977 4978 4979 4980 4981 4982 4983 4984 4985 4986 4987 4988 4989 4990 4991 4992 4993 4994 4995 4996 4997 4998 4999 5000 5001 5002 5003 5004 5005 | |