updateSettings method
Updates the configurable settings for the specified directory.
May throw ClientException.
May throw DirectoryDoesNotExistException.
May throw DirectoryUnavailableException.
May throw IncompatibleSettingsException.
May throw InvalidParameterException.
May throw ServiceException.
May throw UnsupportedOperationException.
May throw UnsupportedSettingsException.
Parameter directoryId :
The identifier of the directory for which to update settings.
Parameter settings :
The list of Setting objects.
Implementation
Future<UpdateSettingsResult> updateSettings({
required String directoryId,
required List<Setting> settings,
}) async {
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'DirectoryService_20150416.UpdateSettings'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'DirectoryId': directoryId,
'Settings': settings,
},
);
return UpdateSettingsResult.fromJson(jsonResponse.body);
}