describeEvents method

Future<EventsMessage> describeEvents({
  1. int? duration,
  2. DateTime? endTime,
  3. List<String>? eventCategories,
  4. String? marker,
  5. int? maxRecords,
  6. String? sourceIdentifier,
  7. SourceType? sourceType,
  8. DateTime? startTime,
})

Implementation

Future<EventsMessage> describeEvents({
  int? duration,
  DateTime? endTime,
  List<String>? eventCategories,
  String? marker,
  int? maxRecords,
  String? sourceIdentifier,
  SourceType? sourceType,
  DateTime? startTime,
}) async {
  final $request = <String, dynamic>{};
  duration?.also((arg) => $request['Duration'] = arg);
  endTime?.also((arg) => $request['EndTime'] = _s.iso8601ToJson(arg));
  eventCategories?.also((arg) => $request['EventCategories'] = arg);
  marker?.also((arg) => $request['Marker'] = arg);
  maxRecords?.also((arg) => $request['MaxRecords'] = arg);
  sourceIdentifier?.also((arg) => $request['SourceIdentifier'] = arg);
  sourceType?.also((arg) => $request['SourceType'] = arg.toValue());
  startTime?.also((arg) => $request['StartTime'] = _s.iso8601ToJson(arg));
  final $result = await _protocol.send(
    $request,
    action: 'DescribeEvents',
    version: '2013-02-12',
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    shape: shapes['DescribeEventsMessage'],
    shapes: shapes,
    resultWrapper: 'DescribeEventsResult',
  );
  return EventsMessage.fromXml($result);
}