{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-directory-service/json-schema/amazon-directory-service-create-trust-request-schema.json",
  "title": "CreateTrustRequest",
  "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/CreateTrustRequest",
  "type": "object",
  "properties": {
    "DirectoryId": {
      "type": "string",
      "description": "The Directory ID of the Managed Microsoft AD directory for which to establish the trust relationship."
    },
    "RemoteDomainName": {
      "type": "string",
      "description": "The Fully Qualified Domain Name (FQDN) of the external domain for which to create the trust relationship."
    },
    "TrustPassword": {
      "type": "string",
      "description": "The trust password. The trust password must be the same password that was used when creating the trust relationship on the external domain."
    },
    "TrustDirection": {
      "type": "string",
      "enum": [
        "One-Way: Outgoing",
        "One-Way: Incoming",
        "Two-Way"
      ],
      "description": "The direction of the trust relationship."
    },
    "TrustType": {
      "type": "string",
      "enum": [
        "Forest",
        "External"
      ],
      "description": "The trust relationship type. Forest is the default."
    },
    "ConditionalForwarderIpAddrs": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "The IP addresses of the remote DNS server associated with RemoteDomainName."
    },
    "ConditionalForwarderIpv6Addrs": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "The IPv6 addresses of the remote DNS server associated with RemoteDomainName."
    },
    "SelectiveAuth": {
      "type": "string",
      "enum": [
        "Enabled",
        "Disabled"
      ],
      "description": "Optional parameter to enable selective authentication for the trust."
    }
  },
  "required": [
    "DirectoryId",
    "RemoteDomainName",
    "TrustPassword",
    "TrustDirection"
  ]
}