createConditionalForwarder

Creates a conditional forwarder associated with your Amazon Web Services directory. Conditional forwarders are required in order to set up a trust relationship with another domain. The conditional forwarder points to the trusted domain.

Samples


fun main() { 
   //sampleStart 
   // The following example creates a conditional forwarder associated with your AWS directory.
val resp = directoryClient.createConditionalForwarder {
    directoryId = "d-92654abfed"
    remoteDomainName = "sales.example.com"
    dnsIpAddrs = listOf<String>(
        "172.30.21.228"
    )
} 
   //sampleEnd
}