removeIpRoutes method
Removes IP address blocks from a directory.
May throw EntityDoesNotExistException. May throw InvalidParameterException. May throw DirectoryUnavailableException. May throw ClientException. May throw ServiceException.
Parameter cidrIps
:
IP address blocks that you want to remove.
Parameter directoryId
:
Identifier (ID) of the directory from which you want to remove the IP
addresses.
Implementation
Future<void> removeIpRoutes({
required List<String> cidrIps,
required String directoryId,
}) async {
ArgumentError.checkNotNull(cidrIps, 'cidrIps');
ArgumentError.checkNotNull(directoryId, 'directoryId');
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: {
'CidrIps': cidrIps,
'DirectoryId': directoryId,
},
);
}