1
1
import { GuScheduledLambda } from "@guardian/cdk" ;
2
2
import type { GuStackProps } from '@guardian/cdk/lib/constructs/core' ;
3
- import { GuStack , GuStringParameter } from '@guardian/cdk/lib/constructs/core' ;
3
+ import { GuStack } from '@guardian/cdk/lib/constructs/core' ;
4
4
import { type App , Duration , RemovalPolicy } from 'aws-cdk-lib' ;
5
5
import { AttributeType , BillingMode , ProjectionType , Table } from "aws-cdk-lib/aws-dynamodb" ;
6
6
import { Schedule } from 'aws-cdk-lib/aws-events' ;
@@ -12,20 +12,11 @@ export class SuperModeCalculator extends GuStack {
12
12
constructor ( scope : App , id : string , props : GuStackProps ) {
13
13
super ( scope , id , props ) ;
14
14
15
- const scheduleState = new GuStringParameter ( this , 'ScheduleState' , {
16
- description : 'The state of the schedule' ,
17
- default : 'ENABLED' ,
18
- allowedValues : [ 'ENABLED' , 'DISABLED' ] ,
19
- } ) ;
20
-
21
- const scheduleRules =
22
- scheduleState . valueAsString === 'ENABLED'
23
- ? [
15
+ const scheduleRules = [
24
16
{
25
17
schedule : Schedule . rate ( Duration . minutes ( 60 ) ) ,
26
18
} ,
27
19
]
28
- : [ ] ;
29
20
30
21
const superModeCalculatorTable = new Table ( this , 'super-mode-calculator-table' , {
31
22
tableName : `super-mode-calculator-${ this . stage } ` ,
0 commit comments