getEventSource method

Future<EventSourceConfiguration> getEventSource({
  1. required String uuid,
})

Returns configuration information for the specified event source mapping (see AddEventSource).

This operation requires permission for the lambda:GetEventSource action.

May throw ServiceException. May throw ResourceNotFoundException. May throw InvalidParameterValueException.

Parameter uuid : The AWS Lambda assigned ID of the event source mapping.

Implementation

Future<EventSourceConfiguration> getEventSource({
  required String uuid,
}) async {
  ArgumentError.checkNotNull(uuid, 'uuid');
  final response = await _protocol.send(
    payload: null,
    method: 'GET',
    requestUri:
        '/2014-11-13/event-source-mappings/${Uri.encodeComponent(uuid)}',
    exceptionFnMap: _exceptionFns,
  );
  return EventSourceConfiguration.fromJson(response);
}