describeDBSnapshots method
May throw DBSnapshotNotFoundFault.
Implementation
Future<DBSnapshotMessage> describeDBSnapshots({
String? dBInstanceIdentifier,
String? dBSnapshotIdentifier,
List<Filter>? filters,
String? marker,
int? maxRecords,
String? snapshotType,
}) async {
final $request = <String, dynamic>{};
dBInstanceIdentifier?.also((arg) => $request['DBInstanceIdentifier'] = arg);
dBSnapshotIdentifier?.also((arg) => $request['DBSnapshotIdentifier'] = arg);
filters?.also((arg) => $request['Filters'] = arg);
marker?.also((arg) => $request['Marker'] = arg);
maxRecords?.also((arg) => $request['MaxRecords'] = arg);
snapshotType?.also((arg) => $request['SnapshotType'] = arg);
final $result = await _protocol.send(
$request,
action: 'DescribeDBSnapshots',
version: '2013-09-09',
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
shape: shapes['DescribeDBSnapshotsMessage'],
shapes: shapes,
resultWrapper: 'DescribeDBSnapshotsResult',
);
return DBSnapshotMessage.fromXml($result);
}