createEventAction method
This operation creates an event action.
May throw AccessDeniedException.
May throw InternalServerException.
May throw ServiceLimitExceededException.
May throw ThrottlingException.
May throw ValidationException.
Parameter action :
What occurs after a certain event.
Parameter event :
What occurs to start an action.
Parameter tags :
Key-value pairs that you can associate with the event action.
Implementation
Future<CreateEventActionResponse> createEventAction({
required Action action,
required Event event,
Map<String, String>? tags,
}) async {
final $payload = <String, dynamic>{
'Action': action,
'Event': event,
if (tags != null) 'Tags': tags,
};
final response = await _protocol.send(
payload: $payload,
method: 'POST',
requestUri: '/v1/event-actions',
exceptionFnMap: _exceptionFns,
);
return CreateEventActionResponse.fromJson(response);
}