describeEventCategories method

Future<EventCategoriesMessage> describeEventCategories({
  1. List<Filter>? filters,
  2. String? sourceType,
})

Implementation

Future<EventCategoriesMessage> describeEventCategories({
  List<Filter>? filters,
  String? sourceType,
}) async {
  final $request = <String, dynamic>{};
  filters?.also((arg) => $request['Filters'] = arg);
  sourceType?.also((arg) => $request['SourceType'] = arg);
  final $result = await _protocol.send(
    $request,
    action: 'DescribeEventCategories',
    version: '2013-09-09',
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    shape: shapes['DescribeEventCategoriesMessage'],
    shapes: shapes,
    resultWrapper: 'DescribeEventCategoriesResult',
  );
  return EventCategoriesMessage.fromXml($result);
}