create_conditional_forwarder
async
¶
create_conditional_forwarder(
directory_id: DirectoryId,
remote_domain_name: RemoteDomainName,
*,
config_overrides: Optional[AsyncDirectoryServiceClientConfig] = None,
dns_ip_addrs: Optional[DnsIpAddrs] = None,
dns_ipv6_addrs: Optional[DnsIpv6Addrs] = None,
) -> CreateConditionalForwarderResult
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.
Parameters:
-
directory_id(DirectoryId) –The directory ID of the Amazon Web Services directory for which you are creating the conditional forwarder.
-
remote_domain_name(RemoteDomainName) –The fully qualified domain name (FQDN) of the remote domain with which you will set up a trust relationship.
-
dns_ip_addrs(Optional[DnsIpAddrs], default:None) –The IP addresses of the remote DNS server associated with RemoteDomainName.
-
dns_ipv6_addrs(Optional[DnsIpv6Addrs], default:None) –The IPv6 addresses of the remote DNS server associated with RemoteDomainName.
Raises:
-
ClientException–A client exception has occurred.
-
DirectoryUnavailableException–The specified directory is unavailable.
-
EntityAlreadyExistsException–The specified entity already exists.
-
EntityDoesNotExistException–The specified entity could not be found.
-
InvalidParameterException–One or more parameters are not valid.
-
ServiceException–An exception has occurred in Directory Service.
-
UnsupportedOperationException–The operation is not supported.
-
UnknownServiceError–The service returned an error code this client does not model.
Examples:
To create a conditional forwarder The following example creates a conditional forwarder associated with your AWS directory.
>>> await client.create_conditional_forwarder(directory_id='d-92654abfed', remote_domain_name='sales.example.com', dns_ip_addrs=['172.30.21.228'])
Source code in docs_src/capo_directory_service/_services/async_directory_service.py
951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 | |