{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-directory-service/json-schema/amazon-directory-service-create-directory-request-schema.json",
  "title": "CreateDirectoryRequest",
  "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/CreateDirectoryRequest",
  "type": "object",
  "properties": {
    "Name": {
      "type": "string",
      "description": "The fully qualified name for the directory, such as corp.example.com."
    },
    "ShortName": {
      "type": "string",
      "description": "The NetBIOS name of the directory, such as CORP."
    },
    "Password": {
      "type": "string",
      "description": "The password for the directory administrator. The directory creation process creates a directory administrator account with the user name Administrator and this password. If you need to change the password for the administrator account, you can use the ResetUserPassword API call. The regex pattern for this string is made up of the following conditions: Length (?=^.{8,64}$) – Must be between 8 and 64 characters AND any 3 of the following password complexity rules required by Active Directory: Numbers and upper case and lowercase (?=.*\\d)(?=.*[A-Z])(?=.*[a-z]) Numbers and special characters and "
    },
    "Description": {
      "type": "string",
      "description": "A description for the directory."
    },
    "Size": {
      "type": "string",
      "enum": [
        "Small",
        "Large"
      ],
      "description": "The size of the directory."
    },
    "VpcSettings": {
      "$ref": "#/$defs/DirectoryVpcSettings"
    },
    "Tags": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Tag"
      },
      "description": "The tags to be assigned to the Simple AD directory."
    },
    "NetworkType": {
      "type": "string",
      "enum": [
        "Dual-stack",
        "IPv4",
        "IPv6"
      ],
      "description": "The network type for your directory. Simple AD supports IPv4 and Dual-stack only."
    }
  },
  "required": [
    "Name",
    "Password",
    "Size"
  ],
  "$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"
      ]
    }
  }
}