disableClientAuthentication method
Future<void>
disableClientAuthentication({
- required String directoryId,
- required ClientAuthenticationType type,
Disables alternative client authentication methods for the specified directory.
May throw AccessDeniedException.
May throw ClientException.
May throw DirectoryDoesNotExistException.
May throw InvalidClientAuthStatusException.
May throw ServiceException.
May throw UnsupportedOperationException.
Parameter directoryId :
The identifier of the directory
Parameter type :
The type of client authentication to disable. Currently the only parameter
"SmartCard" is supported.
Implementation
Future<void> disableClientAuthentication({
required String directoryId,
required ClientAuthenticationType type,
}) async {
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'DirectoryService_20150416.DisableClientAuthentication'
};
await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'DirectoryId': directoryId,
'Type': type.value,
},
);
}