describeSnapshotSchedules method
Returns a list of snapshot schedules.
Parameter clusterIdentifier
:
The unique identifier for the cluster whose snapshot schedules you want to
view.
Parameter marker
:
A value that indicates the starting point for the next set of response
records in a subsequent request. If a value is returned in a response, you
can retrieve the next set of records by providing this returned marker
value in the marker
parameter and retrying the command. If
the marker
field is empty, all response records have been
retrieved for the request.
Parameter maxRecords
:
The maximum number or response records to return in each call. If the
number of remaining response records exceeds the specified
MaxRecords
value, a value is returned in a
marker
field of the response. You can retrieve the next set
of records by retrying the command with the returned marker
value.
Parameter scheduleIdentifier
:
A unique identifier for a snapshot schedule.
Parameter tagKeys
:
The key value for a snapshot schedule tag.
Parameter tagValues
:
The value corresponding to the key of the snapshot schedule tag.
Implementation
Future<DescribeSnapshotSchedulesOutputMessage> describeSnapshotSchedules({
String? clusterIdentifier,
String? marker,
int? maxRecords,
String? scheduleIdentifier,
List<String>? tagKeys,
List<String>? tagValues,
}) async {
_s.validateStringLength(
'clusterIdentifier',
clusterIdentifier,
0,
2147483647,
);
_s.validateStringLength(
'marker',
marker,
0,
2147483647,
);
_s.validateStringLength(
'scheduleIdentifier',
scheduleIdentifier,
0,
2147483647,
);
final $request = <String, dynamic>{};
clusterIdentifier?.also((arg) => $request['ClusterIdentifier'] = arg);
marker?.also((arg) => $request['Marker'] = arg);
maxRecords?.also((arg) => $request['MaxRecords'] = arg);
scheduleIdentifier?.also((arg) => $request['ScheduleIdentifier'] = arg);
tagKeys?.also((arg) => $request['TagKeys'] = arg);
tagValues?.also((arg) => $request['TagValues'] = arg);
final $result = await _protocol.send(
$request,
action: 'DescribeSnapshotSchedules',
version: '2012-12-01',
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
shape: shapes['DescribeSnapshotSchedulesMessage'],
shapes: shapes,
resultWrapper: 'DescribeSnapshotSchedulesResult',
);
return DescribeSnapshotSchedulesOutputMessage.fromXml($result);
}