def __init__()

in source/cdk_solution_helper_py/helpers_cdk/aws_solutions/cdk/stepfunctions/solutionstep.py [0:0]


        def __init__(self, scope: Construct, construct_id: str, **kwargs):
            entrypoint = kwargs.pop("entrypoint", None)
            if not entrypoint or not entrypoint.exists():
                raise ValueError("an entrypoint (Path to a .py file) must be provided")

            libraries = kwargs.pop("libraries", None)
            if libraries and any(not l.exists() for l in libraries):
                raise ValueError(f"libraries provided, but do not exist at {libraries}")

            function = kwargs.pop("function")
            kwargs["layers"] = kwargs.get("layers", [])
            kwargs["tracing"] = Tracing.ACTIVE
            kwargs["timeout"] = Duration.seconds(15)
            kwargs["runtime"] = Runtime("python3.9", RuntimeFamily.PYTHON)

            super().__init__(
                scope,
                construct_id,
                entrypoint,
                function,
                libraries=libraries,
                **kwargs,
            )