def _get_lambda_arn()

in src/stepfunctions/workflow/widgets/events_table.py [0:0]


    def _get_lambda_arn(self, event):
        resource_arn = "-"
        event_type = event.get("type")

        if event_type == "LambdaFunctionScheduled":
            resource_arn = event.get("lambdaFunctionScheduledEventDetails").get("resource")
        elif event_type in {
            "LambdaFunctionScheduleFailed",
            "LambdaFunctionFailed",
            "LambdaFunctionStartFailed",
            "LambdaFunctionStarted",
            "LambdaFunctionSucceeded",
            "LambdaFunctionTimedOut"
        }:
            resource_arn = self.eventIdToLambdaArnMap[event.get("previousEventId")]

        self.eventIdToLambdaArnMap[event.get("id")] = resource_arn
        return resource_arn