disableDirectoryDataAccess method
Deactivates access to directory data via the Directory Service Data API for the specified directory. For more information, see Directory Service Data API Reference.
May throw AccessDeniedException.
May throw ClientException.
May throw DirectoryDoesNotExistException.
May throw DirectoryInDesiredStateException.
May throw DirectoryUnavailableException.
May throw ServiceException.
May throw UnsupportedOperationException.
Parameter directoryId :
The directory identifier.
Implementation
Future<void> disableDirectoryDataAccess({
required String directoryId,
}) async {
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'DirectoryService_20150416.DisableDirectoryDataAccess'
};
await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'DirectoryId': directoryId,
},
);
}