Paws::DeviceFarm::UpdateDevicePool - Arguments for method UpdateDevicePool on Paws::DeviceFarm


This class represents the parameters used for calling the method UpdateDevicePool on the AWS Device Farm service. Use the attributes of this class as arguments to method UpdateDevicePool.

You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to UpdateDevicePool.


    my $devicefarm = Paws->service('DeviceFarm');
   # 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.
    my $UpdateDevicePoolResult = $devicefarm->UpdateDevicePool(
      'Arn' =>
      'Description' => 'NewDescription',
      'Name'        => 'NewName',
      'Rules'       => [

          'Attribute' => 'REMOTE_ACCESS_ENABLED',
          'Operator'  => 'EQUALS',
          'Value'     => 'True'

    # Results:
    my $devicePool = $UpdateDevicePoolResult->devicePool;

    # Returns a L<Paws::DeviceFarm::UpdateDevicePoolResult> object.

Values for attributes that are native types (Int, String, Float, etc) can passed as-is (scalar values). Values for complex Types (objects) can be passed as a HashRef. The keys and values of the hashref will be used to instance the underlying object. For the AWS API documentation, see



The Amazon Resource Name (ARN) of the Device Farm device pool you wish to update.

ClearMaxDevices => Bool

Sets whether the maxDevices parameter applies to your device pool. If you set this parameter to true, the maxDevices parameter 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 that are specified for the rules parameter.

If you use this parameter in your request, you cannot use the maxDevices parameter in the same request.

Description => Str

A description of the device pool you wish to update.

MaxDevices => Int

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 rules parameter. 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 clearMaxDevices parameter in the same request.

Name => Str

A string representing the name of the device pool you wish to update.

Rules => ArrayRef[Paws::DeviceFarm::Rule]

Represents the rules you wish to modify for the device pool. Updating rules is optional; however, if you choose to update rules for your request, the update will replace the existing rules.


This class forms part of Paws, documenting arguments for method UpdateDevicePool in Paws::DeviceFarm


The source code is located here:

Please report bugs to: