deleteLogSubscription method

Future<void> deleteLogSubscription({
  1. required String directoryId,
})

Deletes the specified log subscription.

May throw EntityDoesNotExistException. May throw UnsupportedOperationException. May throw ClientException. May throw ServiceException.

Parameter directoryId : Identifier of the directory whose log subscription you want to delete.

Implementation

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