describeEventCategories method

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

Displays a list of categories for all event source types, or, if specified, for a specified source type.

Parameter filters : This parameter is not currently supported.

Parameter sourceType : The type of source that is generating the events.

Valid values: db-instance, db-parameter-group, db-security-group, db-snapshot

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: '2014-10-31',
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    shape: shapes['DescribeEventCategoriesMessage'],
    shapes: shapes,
    resultWrapper: 'DescribeEventCategoriesResult',
  );
  return EventCategoriesMessage.fromXml($result);
}