describeDBSnapshots method
May throw DBSnapshotNotFoundFault.
Implementation
Future<DBSnapshotMessage> describeDBSnapshots({
String? dBInstanceIdentifier,
String? dBSnapshotIdentifier,
String? marker,
int? maxRecords,
String? snapshotType,
}) async {
final $request = <String, dynamic>{};
dBInstanceIdentifier?.also((arg) => $request['DBInstanceIdentifier'] = arg);
dBSnapshotIdentifier?.also((arg) => $request['DBSnapshotIdentifier'] = 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-02-12',
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
shape: shapes['DescribeDBSnapshotsMessage'],
shapes: shapes,
resultWrapper: 'DescribeDBSnapshotsResult',
);
return DBSnapshotMessage.fromXml($result);
}