{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-shield/json-schema/amazon-shield-list-protections-response-schema.json",
  "title": "ListProtectionsResponse",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-shield-amazon-shield-rest-api-api-openapi.yml#/components/schemas/ListProtectionsResponse",
  "type": "object",
  "properties": {
    "Protections": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Protection"
      },
      "description": "The array of enabled Protection objects."
    },
    "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"
    }
  },
  "$defs": {
    "ApplicationLayerAutomaticResponseConfiguration": {
      "type": "object",
      "properties": {
        "Status": {
          "type": "string",
          "enum": [
            "ENABLED",
            "DISABLED"
          ],
          "description": "Indicates whether automatic application layer DDoS mitigation is enabled for the protection."
        },
        "Action": {
          "$ref": "#/$defs/ResponseAction"
        }
      },
      "required": [
        "Status",
        "Action"
      ]
    },
    "BlockAction": {
      "type": "object",
      "properties": {}
    },
    "CountAction": {
      "type": "object",
      "properties": {}
    },
    "Protection": {
      "type": "object",
      "properties": {
        "Id": {
          "type": "string",
          "description": "The unique identifier (ID) of the protection."
        },
        "Name": {
          "type": "string",
          "description": "The name of the protection. For example, My CloudFront distributions."
        },
        "ResourceArn": {
          "type": "string",
          "description": "The ARN (Amazon Resource Name) of the Amazon Web Services resource that is protected."
        },
        "HealthCheckIds": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "The unique identifier (ID) for the Route 53 health check that's associated with the protection."
        },
        "ProtectionArn": {
          "type": "string",
          "description": "The ARN (Amazon Resource Name) of the protection."
        },
        "ApplicationLayerAutomaticResponseConfiguration": {
          "$ref": "#/$defs/ApplicationLayerAutomaticResponseConfiguration"
        }
      }
    },
    "ResponseAction": {
      "type": "object",
      "properties": {
        "Block": {
          "$ref": "#/$defs/BlockAction"
        },
        "Count": {
          "$ref": "#/$defs/CountAction"
        }
      }
    }
  }
}