{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-datasync/json-schema/amazon-datasync-list-locations-request-schema.json",
  "title": "ListLocationsRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-datasync-operations-api-openapi.yml#/components/schemas/ListLocationsRequest",
  "type": "object",
  "properties": {
    "MaxResults": {
      "type": "integer",
      "description": "The maximum number of locations to return."
    },
    "NextToken": {
      "type": "string",
      "description": "An opaque string that indicates the position at which to begin the next list of locations."
    },
    "Filters": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/LocationFilter"
      },
      "description": "You can use API filters to narrow down the list of resources returned by ListLocations. For example, to retrieve all tasks on a specific source location, you can use ListLocations with filter name LocationType S3 and Operator Equals."
    }
  },
  "$defs": {
    "LocationFilter": {
      "type": "object",
      "properties": {
        "Name": {
          "type": "string",
          "enum": [
            "LocationUri",
            "LocationType",
            "CreationTime"
          ],
          "description": "The name of the filter being used. Each API call supports a list of filters that are available for it (for example, LocationType for ListLocations)."
        },
        "Values": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "The values that you want to filter for. For example, you might want to display only Amazon S3 locations."
        },
        "Operator": {
          "type": "string",
          "enum": [
            "Equals",
            "NotEquals",
            "In",
            "LessThanOrEqual",
            "LessThan",
            "GreaterThanOrEqual",
            "GreaterThan",
            "Contains",
            "NotContains",
            "BeginsWith"
          ],
          "description": "The operator that is used to compare filter values (for example, Equals or Contains)."
        }
      },
      "required": [
        "Name",
        "Values",
        "Operator"
      ]
    }
  }
}