in cdk/lib/google-search-indexing-observatory.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-indexing-observatory",
fileName: "google-search-indexing-observatory.jar",
handler: "ophan.google.indexing.observatory.Lambda::handler",
monitoringConfiguration: noMonitoring,
rules: [{ schedule: Schedule.rate(Duration.minutes(1)) }],
runtime: Runtime.JAVA_11
})
const table = new Table(this, 'Table', {
partitionKey: {
name: 'uri',
type: AttributeType.STRING,
},
});
table.grantReadWriteData(scheduledLambda)
}