MCPcopy Index your code
hub / github.com/zappa/Zappa / remove_event_source

Function remove_event_source

zappa/utilities.py:758–770  ·  view source on GitHub ↗

Given an event_source dictionary, create the object and remove the event source.

(
    event_source: Dict[str, Any], lambda_arn: str, target_function: str, boto_session: boto3.Session, dry: bool = False
)

Source from the content-addressed store, hash-verified

756
757
758def remove_event_source(
759 event_source: Dict[str, Any], lambda_arn: str, target_function: str, boto_session: boto3.Session, dry: bool = False
760) -> Union[BaseEventSource, bool, Dict[str, Any], None]:
761 """
762 Given an event_source dictionary, create the object and remove the event source.
763 """
764 event_source_obj, function_arn = get_event_source(event_source, lambda_arn, target_function, boto_session, dry=False)
765
766 if not dry:
767 rule_response = event_source_obj.remove(function_arn)
768 return rule_response
769 else:
770 return event_source_obj
771
772
773def get_event_source_status(

Callers 2

test_add_event_sourceMethod · 0.90
unschedule_eventsMethod · 0.85

Calls 2

get_event_sourceFunction · 0.85
removeMethod · 0.45

Tested by 1

test_add_event_sourceMethod · 0.72