updateEventConfigurations method
Updates the event configurations.
May throw InvalidRequestException. May throw InternalFailureException. May throw ThrottlingException.
Parameter eventConfigurations
:
The new event configuration values.
Implementation
Future<void> updateEventConfigurations({
Map<EventType, Configuration>? eventConfigurations,
}) async {
final $payload = <String, dynamic>{
if (eventConfigurations != null)
'eventConfigurations':
eventConfigurations.map((k, e) => MapEntry(k.toValue(), e)),
};
final response = await _protocol.send(
payload: $payload,
method: 'PATCH',
requestUri: '/event-configurations',
exceptionFnMap: _exceptionFns,
);
}