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