{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-shield/json-schema/amazon-shield-list-protections-request-schema.json",
  "title": "ListProtectionsRequest",
  "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/ListProtectionsRequest",
  "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/InclusionProtectionFilters"
    }
  },
  "$defs": {
    "InclusionProtectionFilters": {
      "type": "object",
      "properties": {
        "ResourceArns": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "The ARN (Amazon Resource Name) of the resource whose protection you want to retrieve."
        },
        "ProtectionNames": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "The name of the protection 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 type of protected resource whose protections you want to retrieve."
        }
      }
    }
  }
}