constructor()

in cdk/lib/google-search-index-checker.ts [12:30]


  constructor(scope: App, id: string, props: GuStackProps) {
    super(scope, id, props);
    const noMonitoring: NoMonitoring = { noMonitoring: true };
    const scheduledLambda = new GuScheduledLambda(this, "scheduledLambda", {
      app: "google-search-index-checker",
      fileName: "google-search-index-checker.jar",
      handler: "ophan.google.index.checker.Lambda::handler",
      monitoringConfiguration: noMonitoring,
      rules: [{ schedule: Schedule.rate(Duration.minutes(1)) }],
      runtime: Runtime.JAVA_11
    })
    const table = new Table(this, 'Table', {
      partitionKey: {
        name: 'capiId',
        type: AttributeType.STRING,
      },
    });
    table.grantReadWriteData(scheduledLambda)
  }