describeClusterTracks method

Future<TrackListMessage> describeClusterTracks({
  1. String? maintenanceTrackName,
  2. String? marker,
  3. int? maxRecords,
})

Returns a list of all the available maintenance tracks.

May throw InvalidClusterTrackFault. May throw UnauthorizedOperation.

Parameter maintenanceTrackName : The name of the maintenance track.

Parameter marker : An optional parameter that specifies the starting point to return a set of response records. When the results of a DescribeClusterTracks request exceed the value specified in MaxRecords, Amazon Redshift returns a value in the Marker field of the response. You can retrieve the next set of response records by providing the returned marker value in the Marker parameter and retrying the request.

Parameter maxRecords : An integer value for the maximum number of maintenance tracks to return.

Implementation

Future<TrackListMessage> describeClusterTracks({
  String? maintenanceTrackName,
  String? marker,
  int? maxRecords,
}) async {
  _s.validateStringLength(
    'maintenanceTrackName',
    maintenanceTrackName,
    0,
    2147483647,
  );
  _s.validateStringLength(
    'marker',
    marker,
    0,
    2147483647,
  );
  final $request = <String, dynamic>{};
  maintenanceTrackName?.also((arg) => $request['MaintenanceTrackName'] = arg);
  marker?.also((arg) => $request['Marker'] = arg);
  maxRecords?.also((arg) => $request['MaxRecords'] = arg);
  final $result = await _protocol.send(
    $request,
    action: 'DescribeClusterTracks',
    version: '2012-12-01',
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    shape: shapes['DescribeClusterTracksMessage'],
    shapes: shapes,
    resultWrapper: 'DescribeClusterTracksResult',
  );
  return TrackListMessage.fromXml($result);
}