{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-directory-service/json-schema/amazon-directory-service-connect-directory-request-schema.json",
  "title": "ConnectDirectoryRequest",
  "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/ConnectDirectoryRequest",
  "type": "object",
  "properties": {
    "Name": {
      "type": "string",
      "description": "The fully qualified name of your self-managed directory, such as corp.example.com."
    },
    "ShortName": {
      "type": "string",
      "description": "The NetBIOS name of your self-managed directory, such as CORP."
    },
    "Password": {
      "type": "string",
      "description": "The password for your self-managed user account."
    },
    "Description": {
      "type": "string",
      "description": "A description for the directory."
    },
    "Size": {
      "type": "string",
      "enum": [
        "Small",
        "Large"
      ],
      "description": "The size of the directory."
    },
    "ConnectSettings": {
      "$ref": "#/$defs/DirectoryConnectSettings"
    },
    "Tags": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Tag"
      },
      "description": "The tags to be assigned to AD Connector."
    },
    "NetworkType": {
      "type": "string",
      "enum": [
        "Dual-stack",
        "IPv4",
        "IPv6"
      ],
      "description": "The network type for your directory. The default value is IPv4 or IPv6 based on the provided subnet capabilities."
    }
  },
  "required": [
    "Name",
    "Password",
    "Size",
    "ConnectSettings"
  ],
  "$defs": {
    "DirectoryConnectSettings": {
      "type": "object",
      "properties": {
        "VpcId": {
          "type": "string",
          "description": "The identifier of the VPC in which the AD Connector is created."
        },
        "SubnetIds": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "A list of subnet identifiers in the VPC in which the AD Connector is created."
        },
        "CustomerDnsIps": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "The IP addresses of DNS servers or domain controllers in your self-managed directory."
        },
        "CustomerDnsIpsV6": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "The IPv6 addresses of DNS servers or domain controllers in your self-managed directory."
        },
        "CustomerUserName": {
          "type": "string",
          "description": "The user name of an account in your self-managed directory that is used to connect to the directory. This account must have the following permissions: Read users and groups Create computer objects Join computers to the domain"
        }
      },
      "required": [
        "VpcId",
        "SubnetIds",
        "CustomerUserName"
      ]
    },
    "Tag": {
      "type": "object",
      "properties": {
        "Key": {
          "type": "string",
          "description": "Required name of the tag. The string value can be Unicode characters and cannot be prefixed with \"aws:\". The string can contain only the set of Unicode letters, digits, white-space, '_', '.', '/', '=', '+', '-', ':', '@'(Java regex: \"^([\\\\p{L}\\\\p{Z}\\\\p{N}_.:/=+\\\\-]*)$\")."
        },
        "Value": {
          "type": "string",
          "description": "The optional value of the tag. The string value can be Unicode characters. The string can contain only the set of Unicode letters, digits, white-space, '_', '.', '/', '=', '+', '-', ':', '@' (Java regex: \"^([\\\\p{L}\\\\p{Z}\\\\p{N}_.:/=+\\\\-]*)$\")."
        }
      },
      "required": [
        "Key",
        "Value"
      ]
    }
  }
}