create_conditional_forwarder
¶
create_conditional_forwarder(
directory_id: DirectoryId,
remote_domain_name: RemoteDomainName,
*,
config_overrides: Optional[DirectoryServiceClientConfig] = 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.
>>> 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/directory_service.py
1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 | |