ds_dashboard/hub.py [80:101]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
        dashboard_connection_lambda = aws_lambda.Function(
            self,
            "ds-dashboard-connection",
            function_name="ds-dashboard-connection",
            runtime=aws_lambda.Runtime.PYTHON_3_9,
            code=aws_lambda.Code.asset("lambda_function_code"),
            handler="dashboard_connection.lambda_handler",
            timeout=core.Duration.minutes(1),
            memory_size=128,
        )

        eb_policy_statement = aws_iam.PolicyStatement(
            actions=[
                "events:PutRule",
                "events:PutTargets",
                "events:PutPermission",
                "ssm:GetParametersByPath",
            ],
            resources=["*"],
        )

        dashboard_connection_lambda.role.add_to_policy(eb_policy_statement)
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



ds_dashboard/spoke.py [110:131]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
            dashboard_connection_lambda = aws_lambda.Function(
                self,
                "ds-dashboard-connection",
                function_name="ds-dashboard-connection",
                runtime=aws_lambda.Runtime.PYTHON_3_9,
                code=aws_lambda.Code.asset("lambda_function_code"),
                handler="dashboard_connection.lambda_handler",
                timeout=core.Duration.minutes(1),
                memory_size=128,
            )

            eb_policy_statement = aws_iam.PolicyStatement(
                actions=[
                    "events:PutRule",
                    "events:PutTargets",
                    "events:PutPermission",
                    "ssm:GetParametersByPath",
                ],
                resources=["*"],
            )

            dashboard_connection_lambda.role.add_to_policy(eb_policy_statement)
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



