11import { Fn } from "aws-cdk-lib"
2- import { CfnSchedule , CfnScheduleGroup } from "aws-cdk-lib/aws-scheduler"
2+ import { CfnSchedule } from "aws-cdk-lib/aws-scheduler"
33import {
44 ManagedPolicy ,
55 PolicyStatement ,
@@ -296,8 +296,7 @@ export class Functions extends Construct {
296296 "NotifyProcessorSchedule" ,
297297 `${ props . stackName } -NotifySchedule` ,
298298 "rate(1 minute)" ,
299- notifyProcessor . function ,
300- props . stackName
299+ notifyProcessor . function
301300 )
302301
303302 const postDatedNotifyLambda = new TypescriptLambdaFunction (
@@ -332,8 +331,7 @@ export class Functions extends Construct {
332331 "PostDatedNotifySchedule" ,
333332 `${ props . stackName } -PostDatedNotifySchedule` ,
334333 "rate(15 minutes)" ,
335- postDatedNotifyLambda . function ,
336- props . stackName
334+ postDatedNotifyLambda . function
337335 )
338336
339337 // Conditional: CheckPrescriptionStatusUpdates
@@ -446,8 +444,7 @@ export class Functions extends Construct {
446444 id : string ,
447445 scheduleName : string ,
448446 scheduleExpression : string ,
449- lambdaFunction : IFunction ,
450- stackName : string
447+ lambdaFunction : IFunction
451448 ) : void {
452449 const scheduleRole = new Role ( this , `${ id } Role` , {
453450 assumedBy : new ServicePrincipal ( "scheduler.amazonaws.com" )
@@ -470,13 +467,8 @@ export class Functions extends Construct {
470467 }
471468 ] )
472469
473- const scheduleGroup = new CfnScheduleGroup ( this , `${ id } Group` , {
474- name : `${ stackName } -${ id } Group`
475- } )
476-
477470 new CfnSchedule ( this , id , {
478471 name : scheduleName ,
479- groupName : scheduleGroup . name ,
480472 scheduleExpression : scheduleExpression ,
481473 flexibleTimeWindow : { mode : "OFF" } ,
482474 target : {
0 commit comments