{"agent":"claude","input":"Add CloudWatch alarms to this AWS CDK stack. Read index.ts (or lib/), cdk.json, package.json and jest.config.js. Using the metric methods on the constructs already in the stack, add alarms from aws-cdk-lib/aws-cloudwatch for each Lambda function's errors, throttles and p99 duration against its timeout, the REST API's 5XX count and latency, and the DynamoDB table's throttled requests, each with an alarmDescription naming the resource and treatMissingData set so missing data does not alarm. Route them to one SNS topic whose email subscription is read from a CDK context key and skipped when absent. Use the thresholds and periods given after this prompt or in the issue that follows it; where none is given, use the construct defaults and list every value I should set in the pull request. Write test/alarms.test.ts with Template.fromStack asserting the alarm count and the threshold, comparison and actions of one alarm per kind. Run npm ci, npm run build, npm test and cdk synth as scripts/build-typescript.sh does. Deploy nothing. Open a pull request that lists each alarm with its metric, statistic, period and threshold.","resources":[{"url":"https://github.com/your-org/your-app"}]}