downloadDBLogFilePortion method
May throw DBInstanceNotFoundFault. May throw DBLogFileNotFoundFault.
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);
}