describeEventCategories method
Lists categories for all event source types, or, if specified, for a specified source type. You can see a list of the event categories and source types in Working with Events and Notifications in the AWS Database Migration Service User Guide.
Parameter filters
:
Filters applied to the event categories.
Parameter sourceType
:
The type of AWS DMS resource that generates events.
Valid values: replication-instance | replication-task
Implementation
Future<DescribeEventCategoriesResponse> describeEventCategories({
List<Filter>? filters,
String? sourceType,
}) async {
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'AmazonDMSv20160101.DescribeEventCategories'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
if (filters != null) 'Filters': filters,
if (sourceType != null) 'SourceType': sourceType,
},
);
return DescribeEventCategoriesResponse.fromJson(jsonResponse.body);
}