{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-directory-service/json-schema/amazon-directory-service-update-hybrid-adrequest-schema.json",
  "title": "UpdateHybridADRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-directory-service-operations-api-openapi.yml#/components/schemas/UpdateHybridADRequest",
  "type": "object",
  "properties": {
    "DirectoryId": {
      "type": "string",
      "description": "The identifier of the hybrid directory to update."
    },
    "HybridAdministratorAccountUpdate": {
      "$ref": "#/$defs/HybridAdministratorAccountUpdate"
    },
    "SelfManagedInstancesSettings": {
      "$ref": "#/$defs/HybridCustomerInstancesSettings"
    }
  },
  "required": [
    "DirectoryId"
  ],
  "$defs": {
    "HybridAdministratorAccountUpdate": {
      "type": "object",
      "properties": {
        "SecretArn": {
          "type": "string",
          "description": "The Amazon Resource Name (ARN) of the Amazon Web Services Secrets Manager secret that contains the credentials for the AD administrator user, and enables hybrid domain controllers to join the managed AD domain. For example: {\"customerAdAdminDomainUsername\":\"carlos_salazar\",\"customerAdAdminDomainPassword\":\"ExamplePassword123!\"}."
        }
      },
      "required": [
        "SecretArn"
      ]
    },
    "HybridCustomerInstancesSettings": {
      "type": "object",
      "properties": {
        "CustomerDnsIps": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "The IP addresses of the DNS servers or domain controllers in your self-managed AD environment."
        },
        "InstanceIds": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "The identifiers of the self-managed instances with SSM used in hybrid directory."
        }
      },
      "required": [
        "CustomerDnsIps",
        "InstanceIds"
      ]
    }
  }
}