downloadDBLogFilePortion method

Future<DownloadDBLogFilePortionDetails> downloadDBLogFilePortion({
  1. required String dBInstanceIdentifier,
  2. required String logFileName,
  3. String? marker,
  4. int? numberOfLines,
})

Implementation

Future<DownloadDBLogFilePortionDetails> downloadDBLogFilePortion({
  required String dBInstanceIdentifier,
  required String logFileName,
  String? marker,
  int? numberOfLines,
}) async {
  ArgumentError.checkNotNull(dBInstanceIdentifier, 'dBInstanceIdentifier');
  ArgumentError.checkNotNull(logFileName, 'logFileName');
  final $request = <String, dynamic>{};
  $request['DBInstanceIdentifier'] = dBInstanceIdentifier;
  $request['LogFileName'] = logFileName;
  marker?.also((arg) => $request['Marker'] = arg);
  numberOfLines?.also((arg) => $request['NumberOfLines'] = arg);
  final $result = await _protocol.send(
    $request,
    action: 'DownloadDBLogFilePortion',
    version: '2013-02-12',
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    shape: shapes['DownloadDBLogFilePortionMessage'],
    shapes: shapes,
    resultWrapper: 'DownloadDBLogFilePortionResult',
  );
  return DownloadDBLogFilePortionDetails.fromXml($result);
}