{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-ec2/json-schema/amazon-ec2-modify-ipam-prefix-list-resolver-request-schema.json",
  "title": "ModifyIpamPrefixListResolverRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-ec2-ipam-prefix-list-resolver-api-openapi.yml#/components/schemas/ModifyIpamPrefixListResolverRequest",
  "type": "object",
  "properties": {
    "DryRun": {
      "type": "boolean",
      "description": "A check for whether you have the required permissions for the action without actually making the request and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation."
    },
    "IpamPrefixListResolverId": {
      "type": "string",
      "description": "The ID of the IPAM prefix list resolver to modify."
    },
    "Description": {
      "type": "string",
      "description": "A new description for the IPAM prefix list resolver."
    },
    "Rules": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/IpamPrefixListResolverRuleRequest"
      },
      "description": "The updated CIDR selection rules for the resolver. These rules replace the existing rules entirely."
    }
  },
  "required": [
    "IpamPrefixListResolverId"
  ],
  "$defs": {
    "IpamPrefixListResolverRuleConditionRequest": {
      "type": "object",
      "properties": {
        "Operation": {
          "type": "string",
          "enum": [
            "equals",
            "not-equals",
            "subnet-of"
          ],
          "description": "The operation to perform when evaluating this condition."
        },
        "IpamPoolId": {
          "type": "string",
          "description": "The ID of the IPAM pool to match against. This condition selects CIDRs that belong to the specified IPAM pool."
        },
        "ResourceId": {
          "type": "string",
          "description": "The ID of the Amazon Web Services resource to match against. This condition selects CIDRs associated with the specified resource."
        },
        "ResourceOwner": {
          "type": "string",
          "description": "The Amazon Web Services account ID that owns the resources to match against. This condition selects CIDRs from resources owned by the specified account."
        },
        "ResourceRegion": {
          "type": "string",
          "description": "The Amazon Web Services Region where the resources are located. This condition selects CIDRs from resources in the specified Region."
        },
        "ResourceTag": {
          "$ref": "#/$defs/RequestIpamResourceTag"
        },
        "Cidr": {
          "type": "string",
          "description": "A CIDR block to match against. This condition selects CIDRs that fall within or match the specified CIDR range."
        }
      },
      "required": [
        "Operation"
      ]
    },
    "IpamPrefixListResolverRuleRequest": {
      "type": "object",
      "properties": {
        "RuleType": {
          "type": "string",
          "enum": [
            "static-cidr",
            "ipam-resource-cidr",
            "ipam-pool-cidr"
          ],
          "description": "The type of CIDR selection rule. Valid values include include for selecting CIDRs that match the conditions, and exclude for excluding CIDRs that match the conditions."
        },
        "StaticCidr": {
          "type": "string",
          "description": "A fixed list of CIDRs that do not change (like a manual list replicated across Regions)."
        },
        "IpamScopeId": {
          "type": "string",
          "description": "The ID of the IPAM scope from which to select CIDRs. This determines whether to select from public or private IP address space."
        },
        "ResourceType": {
          "type": "string",
          "enum": [
            "vpc",
            "subnet",
            "eip",
            "public-ipv4-pool",
            "ipv6-pool",
            "eni",
            "anycast-ip-list"
          ],
          "description": "For rules of type ipam-resource-cidr, this is the resource type."
        },
        "Conditions": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/IpamPrefixListResolverRuleConditionRequest"
          },
          "description": "The conditions that determine which CIDRs are selected by this rule. Conditions specify criteria such as resource type, tags, account IDs, and Regions."
        }
      },
      "required": [
        "RuleType"
      ]
    },
    "RequestIpamResourceTag": {
      "type": "object",
      "properties": {
        "Key": {
          "type": "string",
          "description": "The key of a tag assigned to the resource. Use this filter to find all resources assigned a tag with a specific key, regardless of the tag value."
        },
        "Value": {
          "type": "string",
          "description": "The value for the tag."
        }
      }
    }
  }
}