enableRadius method

Future<void> enableRadius({
  1. required String directoryId,
  2. required RadiusSettings radiusSettings,
})

Enables multi-factor authentication (MFA) with the Remote Authentication Dial In User Service (RADIUS) server for an AD Connector or Microsoft AD directory.

May throw InvalidParameterException. May throw EntityAlreadyExistsException. May throw EntityDoesNotExistException. May throw ClientException. May throw ServiceException.

Parameter directoryId : The identifier of the directory for which to enable MFA.

Parameter radiusSettings : A RadiusSettings object that contains information about the RADIUS server.

Implementation

Future<void> enableRadius({
  required String directoryId,
  required RadiusSettings radiusSettings,
}) async {
  ArgumentError.checkNotNull(directoryId, 'directoryId');
  ArgumentError.checkNotNull(radiusSettings, 'radiusSettings');
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.1',
    'X-Amz-Target': 'DirectoryService_20150416.EnableRadius'
  };
  await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      'DirectoryId': directoryId,
      'RadiusSettings': radiusSettings,
    },
  );
}