{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-directory-service/json-schema/amazon-directory-service-start-adassessment-request-schema.json",
  "title": "StartADAssessmentRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-directory-service-ad-assessment-api-openapi.yml#/components/schemas/StartADAssessmentRequest",
  "type": "object",
  "properties": {
    "AssessmentConfiguration": {
      "$ref": "#/$defs/AssessmentConfiguration"
    },
    "DirectoryId": {
      "type": "string",
      "description": "The identifier of the directory for which to perform the assessment. This should be an existing directory. If the assessment is not for an existing directory, this parameter should be omitted."
    }
  },
  "$defs": {
    "AssessmentConfiguration": {
      "type": "object",
      "properties": {
        "CustomerDnsIps": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "A list of IP addresses for the DNS servers or domain controllers in your self-managed AD that are tested during the assessment."
        },
        "DnsName": {
          "type": "string",
          "description": "The fully qualified domain name (FQDN) of the self-managed AD domain to assess."
        },
        "VpcSettings": {
          "$ref": "#/$defs/DirectoryVpcSettings"
        },
        "InstanceIds": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "The identifiers of the self-managed instances with SSM that are used to perform connectivity and validation tests."
        },
        "SecurityGroupIds": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "By default, the service attaches a security group to allow network access to the self-managed nodes in your Amazon VPC. You can optionally supply your own security group that allows network traffic to and from your self-managed domain controllers outside of your Amazon VPC."
        }
      },
      "required": [
        "CustomerDnsIps",
        "DnsName",
        "VpcSettings",
        "InstanceIds"
      ]
    },
    "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"
      ]
    }
  }
}