| Copyright | (c) 2013-2023 Brendan Hay | 
|---|---|
| License | Mozilla Public License, v. 2.0. | 
| Maintainer | Brendan Hay | 
| Stability | auto-generated | 
| Portability | non-portable (GHC extensions) | 
| Safe Haskell | Safe-Inferred | 
| Language | Haskell2010 | 
Amazonka.DirectoryService.CreateTrust
Description
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.
Synopsis
- data CreateTrust = CreateTrust' {}
- newCreateTrust :: Text -> Text -> Text -> TrustDirection -> CreateTrust
- createTrust_conditionalForwarderIpAddrs :: Lens' CreateTrust (Maybe [Text])
- createTrust_selectiveAuth :: Lens' CreateTrust (Maybe SelectiveAuth)
- createTrust_trustType :: Lens' CreateTrust (Maybe TrustType)
- createTrust_directoryId :: Lens' CreateTrust Text
- createTrust_remoteDomainName :: Lens' CreateTrust Text
- createTrust_trustPassword :: Lens' CreateTrust Text
- createTrust_trustDirection :: Lens' CreateTrust TrustDirection
- data CreateTrustResponse = CreateTrustResponse' {- trustId :: Maybe Text
- httpStatus :: Int
 
- newCreateTrustResponse :: Int -> CreateTrustResponse
- createTrustResponse_trustId :: Lens' CreateTrustResponse (Maybe Text)
- createTrustResponse_httpStatus :: Lens' CreateTrustResponse Int
Creating a Request
data CreateTrust Source #
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.
See: newCreateTrust smart constructor.
Constructors
| CreateTrust' | |
| Fields 
 | |
Instances
Arguments
| :: Text | |
| -> Text | |
| -> Text | |
| -> TrustDirection | |
| -> CreateTrust | 
Create a value of CreateTrust with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:conditionalForwarderIpAddrs:CreateTrust', createTrust_conditionalForwarderIpAddrs - The IP addresses of the remote DNS server associated with
 RemoteDomainName.
CreateTrust, createTrust_selectiveAuth - Optional parameter to enable selective authentication for the trust.
CreateTrust, createTrust_trustType - The trust relationship type. Forest is the default.
CreateTrust, createTrust_directoryId - The Directory ID of the Managed Microsoft AD directory for which to
 establish the trust relationship.
CreateTrust, createTrust_remoteDomainName - The Fully Qualified Domain Name (FQDN) of the external domain for which
 to create the trust relationship.
$sel:trustPassword:CreateTrust', createTrust_trustPassword - The trust password. The must be the same password that was used when
 creating the trust relationship on the external domain.
CreateTrust, createTrust_trustDirection - The direction of the trust relationship.
Request Lenses
createTrust_conditionalForwarderIpAddrs :: Lens' CreateTrust (Maybe [Text]) Source #
The IP addresses of the remote DNS server associated with RemoteDomainName.
createTrust_selectiveAuth :: Lens' CreateTrust (Maybe SelectiveAuth) Source #
Optional parameter to enable selective authentication for the trust.
createTrust_trustType :: Lens' CreateTrust (Maybe TrustType) Source #
The trust relationship type. Forest is the default.
createTrust_directoryId :: Lens' CreateTrust Text Source #
The Directory ID of the Managed Microsoft AD directory for which to establish the trust relationship.
createTrust_remoteDomainName :: Lens' CreateTrust Text Source #
The Fully Qualified Domain Name (FQDN) of the external domain for which to create the trust relationship.
createTrust_trustPassword :: Lens' CreateTrust Text Source #
The trust password. The must be the same password that was used when creating the trust relationship on the external domain.
createTrust_trustDirection :: Lens' CreateTrust TrustDirection Source #
The direction of the trust relationship.
Destructuring the Response
data CreateTrustResponse Source #
The result of a CreateTrust request.
See: newCreateTrustResponse smart constructor.
Constructors
| CreateTrustResponse' | |
| Fields 
 | |
Instances
newCreateTrustResponse Source #
Arguments
| :: Int | |
| -> CreateTrustResponse | 
Create a value of CreateTrustResponse with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
CreateTrustResponse, createTrustResponse_trustId - A unique identifier for the trust relationship that was created.
$sel:httpStatus:CreateTrustResponse', createTrustResponse_httpStatus - The response's http status code.
Response Lenses
createTrustResponse_trustId :: Lens' CreateTrustResponse (Maybe Text) Source #
A unique identifier for the trust relationship that was created.
createTrustResponse_httpStatus :: Lens' CreateTrustResponse Int Source #
The response's http status code.