{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-directory-service/json-schema/amazon-directory-service-add-ip-routes-request-schema.json",
  "title": "AddIpRoutesRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-directory-service-aws-directory-service-api-openapi.yml#/components/schemas/AddIpRoutesRequest",
  "type": "object",
  "properties": {
    "DirectoryId": {
      "type": "string",
      "description": "Identifier (ID) of the directory to which to add the address block."
    },
    "IpRoutes": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/IpRoute"
      },
      "description": "IP address blocks, using CIDR format, of the traffic to route. This is often the IP address block of the DNS server used for your self-managed domain."
    },
    "UpdateSecurityGroupForDirectoryControllers": {
      "type": "boolean",
      "description": "If set to true, updates the inbound and outbound rules of the security group that has the description: \"Amazon Web Services created security group for directory ID directory controllers.\" Following are the new rules: Inbound: Type: Custom UDP Rule, Protocol: UDP, Range: 88, Source: Managed Microsoft AD VPC IPv4 CIDR Type: Custom UDP Rule, Protocol: UDP, Range: 123, Source: Managed Microsoft AD VPC IPv4 CIDR Type: Custom UDP Rule, Protocol: UDP, Range: 138, Source: Managed Microsoft AD VPC IPv4 CIDR Type: Custom UDP Rule, Protocol: UDP, Range: 389, Source: Managed Microsoft AD VPC IPv4 CIDR Typ"
    }
  },
  "required": [
    "DirectoryId",
    "IpRoutes"
  ],
  "$defs": {
    "IpRoute": {
      "type": "object",
      "properties": {
        "CidrIp": {
          "type": "string",
          "description": "IP address block in CIDR format, such as 10.0.0.0/24. This is often the address block of the DNS server used for your self-managed domain. For a single IP address, use a CIDR address block with /32. For example, 10.0.0.0/32."
        },
        "CidrIpv6": {
          "type": "string",
          "description": "IPv6 address block in CIDR format, such as 2001:db8::/32. This is often the address block of the DNS server used for your self-managed domain. For a single IPv6 address, use a CIDR address block with /128. For example, 2001:db8::1/128."
        },
        "Description": {
          "type": "string",
          "description": "Description of the address block."
        }
      }
    }
  }
}