v1

latestOpenAPI 3.0.0Apache 2.0 License2026-07-1467365253.0 KB

Directory Service for Microsoft Active Directory allows you to configure trust relationships. For example, you can establish a trust between your Managed Microsoft AD directory, and your existing self-managed Microsoft Active Directory. This would allow you to provide users and groups access to resources in either domain, with a single set of credentials.

This action initiates the creation of the Amazon Web Services side of a trust relationship between an Managed Microsoft AD directory and an external domain. You can create either a forest trust or an external trust.

post/#X-Amz-Target=DirectoryService_20150416.CreateTrust

Headers

X-Amz-Target'DirectoryService_20150416.CreateTrust' required

Request body

DirectoryIdstring required

The Directory ID of the Managed Microsoft AD directory for which to establish the trust relationship.

RemoteDomainNamestring required

The Fully Qualified Domain Name (FQDN) of the external domain for which to create the trust relationship.

TrustPasswordstring password required

The trust password. The must be the same password that was used when creating the trust relationship on the external domain.

TrustDirection'One-Way: Outgoing' | 'One-Way: Incoming' | 'Two-Way' required

The direction of the trust relationship.

TrustType'Forest' | 'External'

The trust relationship type. <code>Forest</code> is the default.

ConditionalForwarderIpAddrsIpAddr[]

The IP addresses of the remote DNS server associated with RemoteDomainName.

SelectiveAuth'Enabled' | 'Disabled'

Optional parameter to enable selective authentication for the trust.

Response

Success

TrustIdstring

A unique identifier for the trust relationship that was created.