updateEventAction method

Future<UpdateEventActionResponse> updateEventAction({
  1. required String eventActionId,
  2. Action? action,
})

This operation updates the event action.

May throw AccessDeniedException. May throw InternalServerException. May throw ResourceNotFoundException. May throw ThrottlingException. May throw ValidationException.

Parameter eventActionId : The unique identifier for the event action.

Parameter action : What occurs after a certain event.

Implementation

Future<UpdateEventActionResponse> updateEventAction({
  required String eventActionId,
  Action? action,
}) async {
  final $payload = <String, dynamic>{
    if (action != null) 'Action': action,
  };
  final response = await _protocol.send(
    payload: $payload,
    method: 'PATCH',
    requestUri: '/v1/event-actions/${Uri.encodeComponent(eventActionId)}',
    exceptionFnMap: _exceptionFns,
  );
  return UpdateEventActionResponse.fromJson(response);
}