removeIpRoutes method
Removes IP address blocks from a directory.
May throw ClientException.
May throw DirectoryUnavailableException.
May throw EntityDoesNotExistException.
May throw InvalidParameterException.
May throw ServiceException.
Parameter directoryId :
Identifier (ID) of the directory from which you want to remove the IP
addresses.
Parameter cidrIps :
IP address blocks that you want to remove.
Parameter cidrIpv6s :
IPv6 address blocks that you want to remove.
Implementation
Future<void> removeIpRoutes({
required String directoryId,
List<String>? cidrIps,
List<String>? cidrIpv6s,
}) async {
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'DirectoryService_20150416.RemoveIpRoutes'
};
await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'DirectoryId': directoryId,
if (cidrIps != null) 'CidrIps': cidrIps,
if (cidrIpv6s != null) 'CidrIpv6s': cidrIpv6s,
},
);
}