@composurecdk/dynamodb 0.9.1 → 0.9.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +2 -0
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -82,6 +82,8 @@ result.table; // the table itself, which a DynamoEventSource consumes
82
82
 
83
83
  Neither construct exposes a distinct stream construct — the stream is an attribute of the table — so the result exposes `tableStreamArn` directly. It is `undefined` when no stream is configured, on both builders, so a `ref()` consumer can branch on its presence.
84
84
 
85
+ To consume the stream from a Lambda, pass a `ref()` to the table into the [`@composurecdk/lambda`](../lambda#event-sources) `dynamoEventSource` factory — it applies secure stream defaults (bisect-on-error, partial-batch reporting), grants least-privilege `grantStreamRead`, and wires an `onFailure` dead-letter queue ergonomically. The [`DynamoStreamProcessor`](../examples/src/dynamo-stream-processor-app.ts) example shows the end-to-end table → stream → Lambda → DLQ wiring.
86
+
85
87
  ## Recommended Alarms
86
88
 
87
89
  Both builders create the same [AWS-recommended CloudWatch alarms](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Best_Practice_Recommended_Alarms_AWS_Services.html#DynamoDB) by default. No alarm actions are configured — access alarms from the build result to add SNS topics or other actions.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@composurecdk/dynamodb",
3
- "version": "0.9.1",
3
+ "version": "0.9.3",
4
4
  "description": "Composable DynamoDB table builder with well-architected defaults",
5
5
  "repository": {
6
6
  "type": "git",
@@ -57,7 +57,7 @@
57
57
  },
58
58
  "devDependencies": {
59
59
  "@types/node": "^25.9.3",
60
- "aws-cdk-lib": "^2.258.1",
60
+ "aws-cdk-lib": "^2.263.0",
61
61
  "constructs": "^10.6.0",
62
62
  "typescript": "^6.0.3",
63
63
  "vitest": "^4.1.8"