{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-shield/json-schema/amazon-shield-list-protection-groups-response-schema.json",
  "title": "ListProtectionGroupsResponse",
  "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/ListProtectionGroupsResponse",
  "type": "object",
  "properties": {
    "ProtectionGroups": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/ProtectionGroup"
      }
    },
    "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"
    }
  },
  "required": [
    "ProtectionGroups"
  ],
  "$defs": {
    "ProtectionGroup": {
      "type": "object",
      "properties": {
        "ProtectionGroupId": {
          "type": "string",
          "description": "The name of the protection group. You use this to identify the protection group in lists and to manage the protection group, for example to update, delete, or describe it."
        },
        "Aggregation": {
          "type": "string",
          "enum": [
            "SUM",
            "MEAN",
            "MAX"
          ],
          "description": "Defines how Shield combines resource data for the group in order to detect, mitigate, and report events. Sum - Use the total traffic across the group. This is a good choice for most cases. Examples include Elastic IP addresses for EC2 instances that scale manually or automatically. Mean - Use the average of the traffic across the group. This is a good choice for resources that share traffic uniformly. Examples include accelerators and load balancers. Max - Use the highest traffic from each resource. This is useful for resources that don't share traffic and for resources that share that traffic"
        },
        "Pattern": {
          "type": "string",
          "enum": [
            "ALL",
            "ARBITRARY",
            "BY_RESOURCE_TYPE"
          ],
          "description": "The criteria to use to choose the protected resources for inclusion in the group. You can include all resources that have protections, provide a list of resource ARNs (Amazon Resource Names), or include all resources of a specified resource type."
        },
        "ResourceType": {
          "type": "string",
          "enum": [
            "CLOUDFRONT_DISTRIBUTION",
            "ROUTE_53_HOSTED_ZONE",
            "ELASTIC_IP_ALLOCATION",
            "CLASSIC_LOAD_BALANCER",
            "APPLICATION_LOAD_BALANCER",
            "GLOBAL_ACCELERATOR"
          ],
          "description": "The resource type to include in the protection group. All protected resources of this type are included in the protection group. You must set this when you set Pattern to BY_RESOURCE_TYPE and you must not set it for any other Pattern setting."
        },
        "Members": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "The ARNs (Amazon Resource Names) of the resources to include in the protection group. You must set this when you set Pattern to ARBITRARY and you must not set it for any other Pattern setting."
        },
        "ProtectionGroupArn": {
          "type": "string",
          "description": "The ARN (Amazon Resource Name) of the protection group."
        }
      },
      "required": [
        "ProtectionGroupId",
        "Aggregation",
        "Pattern",
        "Members"
      ]
    }
  }
}