{
  "title": "DiscoverPdrsConfig",
  "description": "Describes the config used by the discover-pdrs task",
  "type": "object",
  "required": [
    "provider",
    "provider_path",
    "bucket",
    "stack"
  ],
  "properties": {
    "stack": {
      "description": "The name of the Task's CloudFormation Task, useful as a prefix",
      "type": "string"
    },
    "provider": {
      "type": "object",
      "properties": {
        "id": { "type": "string" },
        "username": { "type": "string" },
        "password": { "type": "string" },
        "host": { "type": "string" },
        "port": { "type": "integer" },
        "globalConnectionLimit": { "type": "integer" },
        "protocol": {
          "type": "string",
          "enum": ["ftp", "sftp", "http", "https", "s3"]
        }
      }
    },
    "bucket": {
      "description": "aws s3 buckets used by this task",
      "type": "string"
    },
    "useList": {
      "description": "flag to tell ftp server to use 'LIST' instead of 'STAT'",
      "default": false,
      "type": "boolean"
    },
    "httpListTimeout": {
      "description": "Timeout (in seconds) for retrieval by HTTP/HTTPS provider",
      "default": 300,
      "type": "integer"
    },
    "force": {
      "description": "flag to force the processing of PDR's that have already been discovered",
      "default": false,
      "type": "boolean"
    },
    "filterPdrs": { "type": "string"},
    "provider_path": { "type": "string" }
  }
}
