{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-directory-service/json-schema/amazon-directory-service-create-microsoft-adrequest-schema.json",
  "title": "CreateMicrosoftADRequest",
  "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/CreateMicrosoftADRequest",
  "type": "object",
  "properties": {
    "Name": {
      "type": "string",
      "description": "The fully qualified domain name for the Managed Microsoft AD directory, such as corp.example.com. This name will resolve inside your VPC only. It does not need to be publicly resolvable."
    },
    "ShortName": {
      "type": "string",
      "description": "The NetBIOS name for your domain, such as CORP. If you don't specify a NetBIOS name, it will default to the first part of your directory DNS. For example, CORP for the directory DNS corp.example.com."
    },
    "Password": {
      "type": "string",
      "description": "The password for the default administrative user named Admin. If you need to change the password for the administrator account, you can use the ResetUserPassword API call."
    },
    "Description": {
      "type": "string",
      "description": "A description for the directory. This label will appear on the Amazon Web Services console Directory Details page after the directory is created."
    },
    "VpcSettings": {
      "$ref": "#/$defs/DirectoryVpcSettings"
    },
    "Edition": {
      "type": "string",
      "enum": [
        "Enterprise",
        "Standard",
        "Hybrid"
      ],
      "description": "Managed Microsoft AD is available in two editions: Standard and Enterprise. Enterprise is the default."
    },
    "Tags": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Tag"
      },
      "description": "The tags to be assigned to the Managed Microsoft AD directory."
    },
    "NetworkType": {
      "type": "string",
      "enum": [
        "Dual-stack",
        "IPv4",
        "IPv6"
      ],
      "description": "The network type for your domain. The default value is IPv4 or IPv6 based on the provided subnet capabilities."
    }
  },
  "required": [
    "Name",
    "Password",
    "VpcSettings"
  ],
  "$defs": {
    "DirectoryVpcSettings": {
      "type": "object",
      "properties": {
        "VpcId": {
          "type": "string",
          "description": "The identifier of the VPC in which to create the directory."
        },
        "SubnetIds": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "The identifiers of the subnets for the directory servers. The two subnets must be in different Availability Zones. Directory Service creates a directory server and a DNS server in each of these subnets."
        }
      },
      "required": [
        "VpcId",
        "SubnetIds"
      ]
    },
    "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"
      ]
    }
  }
}