{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-iot-twinmaker/json-schema/amazon-iot-twinmaker-list-sync-resources-request-schema.json",
  "title": "ListSyncResourcesRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-iot-twinmaker-operations-api-openapi.yml#/components/schemas/ListSyncResourcesRequest",
  "type": "object",
  "properties": {
    "workspaceId": {
      "type": "string",
      "description": "The ID of the workspace that contains the sync job."
    },
    "syncSource": {
      "type": "string",
      "description": "The sync source. Currently the only supported syncSource is SITEWISE ."
    },
    "filters": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/SyncResourceFilter"
      },
      "description": "A list of objects that filter the request. The following filter combinations are supported: Filter with state Filter with ResourceType and ResourceId Filter with ResourceType and ExternalId"
    },
    "maxResults": {
      "type": "integer",
      "description": "The maximum number of results to return at one time. The default is 50. Valid Range: Minimum value of 0. Maximum value of 200."
    },
    "nextToken": {
      "type": "string",
      "description": "The string that specifies the next page of results."
    }
  },
  "required": [
    "workspaceId",
    "syncSource"
  ],
  "$defs": {
    "SyncResourceFilter": {
      "type": "object",
      "properties": {
        "state": {
          "type": "string",
          "description": "The sync resource filter's state."
        },
        "resourceType": {
          "type": "string",
          "description": "The sync resource filter resource type"
        },
        "resourceId": {
          "type": "string",
          "description": "The sync resource filter resource ID."
        },
        "externalId": {
          "type": "string",
          "description": "The external ID."
        }
      },
      "description": "Exactly one member is set."
    }
  }
}