---
title: Customizing detectors
slug: docs/customizing-detectors
docTags: 
createdAt: 2024-05-13T23:02:33.264Z
---

## Detectors which accept configuration options

Some detectors accept configuration options that can be set in the config.yaml file.

### AWS Access Key and Session Key

- allowedAccountIds: List of account IDs where *verification* is allowed (optional)
- deniedAccountIds: List of account IDs where *verification&#x20;*&#x69;s not allowed (optional)

Denied IDs always holds precedence over Allowed IDs, meaning if an ID is present in both, it will be denied.

```yaml
detectorsConfig:
  aws:
    allowedAccountIds:
      - "111111111111"
      - "222222222222"
    deniedAccountIds:
      - "666666666666"  # Canary tokens
```

### JDBC

- ignorePattern: List of regular regular expressions used to ignore unwanted results.

```yaml
detectorsConfig:
  jdbc:
    ignorePattern:
    - somep[aA]ttern[0-9]+
```

