deleteEventSourceMapping method

Future<EventSourceMappingConfiguration> deleteEventSourceMapping({
  1. required String uuid,
})

Deletes an event source mapping. You can get the identifier of a mapping from the output of ListEventSourceMappings.

When you delete an event source mapping, it enters a Deleting state and might not be completely deleted for several seconds.

May throw ServiceException. May throw ResourceNotFoundException. May throw InvalidParameterValueException. May throw TooManyRequestsException. May throw ResourceInUseException.

Parameter uuid : The identifier of the event source mapping.

Implementation

Future<EventSourceMappingConfiguration> deleteEventSourceMapping({
  required String uuid,
}) async {
  ArgumentError.checkNotNull(uuid, 'uuid');
  final response = await _protocol.send(
    payload: null,
    method: 'DELETE',
    requestUri:
        '/2015-03-31/event-source-mappings/${Uri.encodeComponent(uuid)}',
    exceptionFnMap: _exceptionFns,
  );
  return EventSourceMappingConfiguration.fromJson(response);
}