Skip to content

Commit

Permalink
update LambdaInvoke integ test
Browse files Browse the repository at this point in the history
  • Loading branch information
samson-keung committed Oct 25, 2024
1 parent c8ef60d commit 6d0c9c3
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ const importedLambdaTagValue = 'importedLambdaTagValue';
new scheduler.Schedule(scheduleStack, 'ScheduleWithImportedLambda', {
schedule: scheduler.ScheduleExpression.rate(cdk.Duration.minutes(1)),
target: new LambdaInvoke(importedFunc, {
input: scheduler.ScheduleTargetInput.fromText(importedLambdaTagValue),
input: scheduler.ScheduleTargetInput.fromObject(importedLambdaTagValue),
}),
});

Expand All @@ -88,7 +88,7 @@ const sameStackLambdaTagValue = 'sameStackLambdaTagValue';
new scheduler.Schedule(scheduleStack, 'ScheduleWithSameStackLambda', {
schedule: scheduler.ScheduleExpression.rate(cdk.Duration.minutes(1)),
target: new LambdaInvoke(sameStackFunc, {
input: scheduler.ScheduleTargetInput.fromText(sameStackLambdaTagValue),
input: scheduler.ScheduleTargetInput.fromObject(sameStackLambdaTagValue),
}),
});

Expand Down

0 comments on commit 6d0c9c3

Please sign in to comment.