{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-systems-manager/json-schema/amazon-systems-manager-list-associations-request-schema.json",
  "title": "ListAssociationsRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-systems-manager-association-api-openapi.yml#/components/schemas/ListAssociationsRequest",
  "type": "object",
  "properties": {
    "AssociationFilterList": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/AssociationFilter"
      },
      "description": "One or more filters. Use a filter to return a more specific list of results. Filtering associations using the InstanceID attribute only returns legacy associations created using the InstanceID attribute. Associations targeting the managed node that are part of the Target Attributes ResourceGroup or Tags aren't returned."
    },
    "MaxResults": {
      "type": "integer",
      "description": "The maximum number of items to return for this call. The call also returns a token that you can specify in a subsequent call to get the next set of results."
    },
    "NextToken": {
      "type": "string",
      "description": "The token for the next set of items to return. (You received this token from a previous call.)"
    }
  },
  "$defs": {
    "AssociationFilter": {
      "type": "object",
      "properties": {
        "key": {
          "type": "string",
          "enum": [
            "InstanceId",
            "Name",
            "AssociationId",
            "AssociationStatusName",
            "LastExecutedBefore",
            "LastExecutedAfter",
            "AssociationName",
            "ResourceGroupName",
            "CloudConnectorId"
          ],
          "description": "The name of the filter. InstanceId has been deprecated."
        },
        "value": {
          "type": "string",
          "description": "The filter value."
        }
      },
      "required": [
        "key",
        "value"
      ]
    }
  }
}