deleteDevicePool method

Future<void> deleteDevicePool({
  1. required String arn,
})

Deletes a device pool given the pool ARN. Does not allow deletion of curated pools owned by the system.

May throw ArgumentException. May throw NotFoundException. May throw LimitExceededException. May throw ServiceAccountException.

Parameter arn : Represents the Amazon Resource Name (ARN) of the Device Farm device pool to delete.

Implementation

Future<void> deleteDevicePool({
  required String arn,
}) async {
  ArgumentError.checkNotNull(arn, 'arn');
  _s.validateStringLength(
    'arn',
    arn,
    32,
    1011,
    isRequired: true,
  );
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.1',
    'X-Amz-Target': 'DeviceFarm_20150623.DeleteDevicePool'
  };
  await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      'arn': arn,
    },
  );
}