{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-ec2/json-schema/amazon-ec2-create-ipam-prefix-list-resolver-request-schema.json",
  "title": "CreateIpamPrefixListResolverRequest",
  "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/CreateIpamPrefixListResolverRequest",
  "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."
    },
    "IpamId": {
      "type": "string",
      "description": "The ID of the IPAM that will serve as the source of the IP address database for CIDR selection. The IPAM must be in the Advanced tier to use this feature."
    },
    "Description": {
      "type": "string",
      "description": "A description for the IPAM prefix list resolver to help you identify its purpose and configuration."
    },
    "AddressFamily": {
      "type": "string",
      "enum": [
        "ipv4",
        "ipv6"
      ],
      "description": "The address family for the IPAM prefix list resolver. Valid values are ipv4 and ipv6. You must create separate resolvers for IPv4 and IPv6 CIDRs as they cannot be mixed in the same resolver."
    },
    "Rules": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/IpamPrefixListResolverRuleRequest"
      },
      "description": "The CIDR selection rules for the resolver. CIDR selection rules define the business logic for selecting CIDRs from IPAM. If a CIDR matches any of the rules, it will be included. If a rule has multiple conditions, the CIDR has to match every condition of that rule. You can create a prefix list resolver without any CIDR selection rules, but it will generate empty versions (containing no CIDRs) until you add rules."
    },
    "TagSpecifications": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/TagSpecification"
      },
      "description": "The tags to apply to the IPAM prefix list resolver during creation. Tags help you organize and manage your Amazon Web Services resources."
    },
    "ClientToken": {
      "type": "string",
      "description": "A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more information, see Ensuring idempotency."
    }
  },
  "required": [
    "IpamId",
    "AddressFamily"
  ],
  "$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."
        }
      }
    },
    "Tag": {
      "type": "object",
      "properties": {
        "Key": {
          "type": "string",
          "description": "The key of the tag. Constraints: Tag keys are case-sensitive and accept a maximum of 127 Unicode characters. May not begin with aws:."
        },
        "Value": {
          "type": "string",
          "description": "The value of the tag. Constraints: Tag values are case-sensitive and accept a maximum of 256 Unicode characters."
        }
      }
    },
    "TagSpecification": {
      "type": "object",
      "properties": {
        "ResourceType": {
          "type": "string",
          "enum": [
            "capacity-reservation",
            "client-vpn-endpoint",
            "customer-gateway",
            "carrier-gateway",
            "coip-pool",
            "declarative-policies-report",
            "dedicated-host",
            "dhcp-options",
            "egress-only-internet-gateway",
            "elastic-ip",
            "elastic-gpu",
            "export-image-task",
            "export-instance-task",
            "fleet",
            "fpga-image",
            "host-reservation",
            "image",
            "image-usage-report",
            "import-image-task",
            "import-snapshot-task",
            "instance",
            "instance-event-window",
            "internet-gateway",
            "ipam",
            "ipam-pool",
            "ipam-scope",
            "ipv4pool-ec2",
            "ipv6pool-ec2",
            "key-pair",
            "launch-template",
            "local-gateway",
            "local-gateway-route-table",
            "local-gateway-virtual-interface",
            "local-gateway-virtual-interface-group",
            "local-gateway-route-table-vpc-association",
            "local-gateway-route-table-virtual-interface-group-association",
            "natgateway",
            "network-acl",
            "network-interface",
            "network-insights-analysis",
            "network-insights-path",
            "network-insights-access-scope",
            "network-insights-access-scope-analysis",
            "outpost-lag",
            "placement-group",
            "prefix-list",
            "replace-root-volume-task",
            "reserved-instances",
            "route-table",
            "security-group",
            "security-group-rule",
            "service-link-virtual-interface",
            "snapshot",
            "spot-fleet-request",
            "spot-instances-request",
            "subnet",
            "subnet-cidr-reservation",
            "traffic-mirror-filter",
            "traffic-mirror-session",
            "traffic-mirror-target",
            "transit-gateway",
            "transit-gateway-attachment",
            "transit-gateway-connect-peer",
            "transit-gateway-multicast-domain",
            "transit-gateway-policy-table",
            "transit-gateway-metering-policy",
            "transit-gateway-route-table",
            "transit-gateway-route-table-announcement",
            "volume",
            "vpc",
            "vpc-endpoint",
            "vpc-endpoint-connection",
            "vpc-endpoint-service",
            "vpc-endpoint-service-permission",
            "vpc-peering-connection",
            "vpn-connection",
            "vpn-gateway",
            "vpc-flow-log",
            "capacity-reservation-fleet",
            "traffic-mirror-filter-rule",
            "vpc-endpoint-connection-device-type",
            "verified-access-instance",
            "verified-access-group",
            "verified-access-endpoint",
            "verified-access-policy",
            "verified-access-trust-provider",
            "vpn-connection-device-type",
            "vpc-block-public-access-exclusion",
            "vpc-encryption-control",
            "route-server",
            "route-server-endpoint",
            "route-server-peer",
            "ipam-resource-discovery",
            "ipam-resource-discovery-association",
            "instance-connect-endpoint",
            "verified-access-endpoint-target",
            "ipam-external-resource-verification-token",
            "capacity-block",
            "mac-modification-task",
            "ipam-prefix-list-resolver",
            "ipam-policy",
            "ipam-prefix-list-resolver-target",
            "ipam-internet-registry-association",
            "secondary-interface",
            "secondary-network",
            "secondary-subnet",
            "capacity-manager-data-export",
            "vpn-concentrator",
            "ipam-pool-allocation",
            "capacity-reservation-cancellation-quote",
            "application-status-check",
            "capacity-reservation-modification-quote"
          ],
          "description": "The type of resource to tag on creation."
        },
        "Tags": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/Tag"
          },
          "description": "The tags to apply to the resource."
        }
      }
    }
  }
}