describeDirectoryDataAccess method

Future<DescribeDirectoryDataAccessResult> describeDirectoryDataAccess({
  1. required String directoryId,
})

Obtains status of directory data access enablement through the Directory Service Data API for the specified directory.

May throw AccessDeniedException. May throw ClientException. May throw DirectoryDoesNotExistException. May throw ServiceException. May throw UnsupportedOperationException.

Parameter directoryId : The directory identifier.

Implementation

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

  return DescribeDirectoryDataAccessResult.fromJson(jsonResponse.body);
}