describeServiceUpdates method

Future<ServiceUpdatesMessage> describeServiceUpdates({
  1. String? marker,
  2. int? maxRecords,
  3. String? serviceUpdateName,
  4. List<ServiceUpdateStatus>? serviceUpdateStatus,
})

Returns details of the service updates

May throw ServiceUpdateNotFoundFault. May throw InvalidParameterValueException. May throw InvalidParameterCombinationException.

Parameter marker : An optional marker returned from a prior request. Use this marker for pagination of results from this operation. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

Parameter maxRecords : The maximum number of records to include in the response

Parameter serviceUpdateName : The unique ID of the service update

Parameter serviceUpdateStatus : The status of the service update

Implementation

Future<ServiceUpdatesMessage> describeServiceUpdates({
  String? marker,
  int? maxRecords,
  String? serviceUpdateName,
  List<ServiceUpdateStatus>? serviceUpdateStatus,
}) async {
  final $request = <String, dynamic>{};
  marker?.also((arg) => $request['Marker'] = arg);
  maxRecords?.also((arg) => $request['MaxRecords'] = arg);
  serviceUpdateName?.also((arg) => $request['ServiceUpdateName'] = arg);
  serviceUpdateStatus?.also((arg) =>
      $request['ServiceUpdateStatus'] = arg.map((e) => e.toValue()).toList());
  final $result = await _protocol.send(
    $request,
    action: 'DescribeServiceUpdates',
    version: '2015-02-02',
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    shape: shapes['DescribeServiceUpdatesMessage'],
    shapes: shapes,
    resultWrapper: 'DescribeServiceUpdatesResult',
  );
  return ServiceUpdatesMessage.fromXml($result);
}