Skip to content

Commit e97c70c

Browse files
committed
fix README
1 parent 17c1dfe commit e97c70c

File tree

1 file changed

+6
-6
lines changed
  • packages/@aws-cdk/aws-scheduler-targets-alpha

1 file changed

+6
-6
lines changed

packages/@aws-cdk/aws-scheduler-targets-alpha/README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -329,11 +329,11 @@ import * as ecs from 'aws-cdk-lib/aws-ecs';
329329
declare const cluster: ecs.ICluster;
330330
declare const taskDefinition: ecs.FargateTaskDefinition;
331331

332-
new scheduler.Schedule(stack, 'Schedule', {
333-
schedule: scheduler.ScheduleExpression.rate(cdk.Duration.minutes(60)),
332+
new Schedule(stack, 'Schedule', {
333+
schedule: ScheduleExpression.rate(cdk.Duration.minutes(60)),
334334
target: targets.EcsRunTask.onFargate(cluster, {
335335
taskDefinition,
336-
});,
336+
}),
337337
});
338338
```
339339

@@ -345,11 +345,11 @@ import * as ecs from 'aws-cdk-lib/aws-ecs';
345345
declare const cluster: ecs.ICluster;
346346
declare const taskDefinition: ecs.Ec2TaskDefinition;
347347

348-
new scheduler.Schedule(stack, 'Schedule', {
349-
schedule: scheduler.ScheduleExpression.rate(cdk.Duration.minutes(60)),
348+
new Schedule(stack, 'Schedule', {
349+
schedule: ScheduleExpression.rate(cdk.Duration.minutes(60)),
350350
target: targets.EcsRunTask.onEc2(cluster, {
351351
taskDefinition,
352-
});,
352+
}),
353353
});
354354
```
355355

0 commit comments

Comments
 (0)