describeDBSnapshots method

Future<DBSnapshotMessage> describeDBSnapshots({
  1. String? dBInstanceIdentifier,
  2. String? dBSnapshotIdentifier,
  3. String? marker,
  4. int? maxRecords,
  5. String? snapshotType,
})

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);
}