{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-shield/json-schema/amazon-shield-list-protection-groups-request-schema.json",
  "title": "ListProtectionGroupsRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-shield-protection-group-api-openapi.yml#/components/schemas/ListProtectionGroupsRequest",
  "type": "object",
  "properties": {
    "NextToken": {
      "type": "string",
      "description": "When you request a list of objects from Shield Advanced, if the response does not include all of the remaining available objects, Shield Advanced includes a NextToken value in the response. You can retrieve the next batch of objects by requesting the list again and providing the token that was returned by the prior call in your request. You can indicate the maximum number of objects that you want Shield Advanced to return for a single call with the MaxResults setting. Shield Advanced will not return more than MaxResults objects, but may return fewer, even if more objects are still available. W"
    },
    "MaxResults": {
      "type": "integer",
      "description": "The greatest number of objects that you want Shield Advanced to return to the list request. Shield Advanced might return fewer objects than you indicate in this setting, even if more objects are available. If there are more objects remaining, Shield Advanced will always also return a NextToken value in the response. The default setting is 20."
    },
    "InclusionFilters": {
      "$ref": "#/$defs/InclusionProtectionGroupFilters"
    }
  },
  "$defs": {
    "InclusionProtectionGroupFilters": {
      "type": "object",
      "properties": {
        "ProtectionGroupIds": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "The ID of the protection group that you want to retrieve."
        },
        "Patterns": {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "ALL",
              "ARBITRARY",
              "BY_RESOURCE_TYPE"
            ]
          },
          "description": "The pattern specification of the protection groups that you want to retrieve."
        },
        "ResourceTypes": {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "CLOUDFRONT_DISTRIBUTION",
              "ROUTE_53_HOSTED_ZONE",
              "ELASTIC_IP_ALLOCATION",
              "CLASSIC_LOAD_BALANCER",
              "APPLICATION_LOAD_BALANCER",
              "GLOBAL_ACCELERATOR"
            ]
          },
          "description": "The resource type configuration of the protection groups that you want to retrieve. In the protection group configuration, you specify the resource type when you set the group's Pattern to BY_RESOURCE_TYPE."
        },
        "Aggregations": {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "SUM",
              "MEAN",
              "MAX"
            ]
          },
          "description": "The aggregation setting of the protection groups that you want to retrieve."
        }
      }
    }
  }
}