disassociateIpGroups method

Future<void> disassociateIpGroups({
  1. required String directoryId,
  2. required List<String> groupIds,
})

Disassociates the specified IP access control group from the specified directory.

May throw AccessDeniedException. May throw InvalidParameterValuesException. May throw InvalidResourceStateException. May throw OperationNotSupportedException. May throw ResourceNotFoundException.

Parameter directoryId : The identifier of the directory.

Parameter groupIds : The identifiers of one or more IP access control groups.

Implementation

Future<void> disassociateIpGroups({
  required String directoryId,
  required List<String> groupIds,
}) async {
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.1',
    'X-Amz-Target': 'WorkspacesService.DisassociateIpGroups'
  };
  await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      'DirectoryId': directoryId,
      'GroupIds': groupIds,
    },
  );
}