Real AWS DynamoDB accepts both short table names and full table ARNs for
TableName inputs. Floci only accepted short names, which broke OpenSearch
Data Prepper's dynamodb source plugin (requires table_arn) and any
Terraform flow that feeds aws_dynamodb_table.x.arn into the SDK.
- Add DynamoDbTableNames resolver: canonicalizes TableName input,
rejects ARNs targeting index/stream resources, and rejects ARNs whose
region does not match the request region (400 InvalidParameterValue,
matching the #450 Lambda ARN precedent).
- Normalize at every DynamoDbService lookup boundary, including
transaction condition paths and batch RequestItems map keys, so
internal callers handling request-derived input cannot bypass the
resolver.
- CreateTable explicitly rejects ARN-form TableName via requireShortName
so ARN input cannot be persisted as the canonical table identity
(which would produce nested ARN-on-ARN TableArn values).
- UpdateTable stream enable/disable now use the canonical
table.getTableName() instead of the raw request TableName. Without
this, calling UpdateTable via ARN keyed stream state under the ARN
while reads canonicalize, stranding the stream.
- Covers DescribeTable, Scan, Query, GetItem, PutItem, UpdateItem,
DeleteItem, BatchGetItem, BatchWriteItem, TransactGetItems,
TransactWriteItems, UpdateTable, DeleteTable, DescribeTimeToLive,
UpdateTimeToLive, DescribeContinuousBackups, UpdateContinuousBackups,
Enable/DisableKinesisStreamingDestination.
- Tests: 32 resolver unit tests, 7 integration tests (item/batch/
transact/TTL/backups/streaming/validation), 1 awscli bats case.
* feat(dynamodb): add EnableKinesisStreamingDestination support
Implement EnableKinesisStreamingDestination, DisableKinesisStreamingDestination,
and DescribeKinesisStreamingDestination API actions for DynamoDB.
When a Kinesis streaming destination is enabled on a table, all item mutations
(INSERT/MODIFY/REMOVE) are automatically forwarded to the configured Kinesis
stream. The Kinesis record payload matches the AWS format with awsRegion,
eventName, tableName, and dynamodb (Keys, NewImage, OldImage, etc.).
Closes#426
* fix(dynamodb): address review feedback for KinesisStreamingDestination
- Decouple Kinesis forwarding from DDB Streams: forwardToKinesisDestinations
is now called directly from DynamoDbService mutation hooks, independent of
whether DDB Streams is enabled
- Fix ApproximateCreationDateTime to use milliseconds (was seconds)
- Remove SequenceNumber and StreamViewType from Kinesis payload (not present
in real AWS)
- Add ApproximateCreationDateTimePrecision inside dynamodb record node
- Return ValidationException when disabling an already-disabled destination
- Simplify persistTable to accept TableDefinition directly
- Add test for disable-already-disabled and payload format assertions
applyRemoveClause() only handled top-level attributes, treating
"ratings.foo" as a literal key name instead of navigating into the
map structure. Add removeValueAtPath() that splits the path into
segments, resolves expression attribute names, and navigates through
nested Map wrappers (M field) to remove the target key.
Includes unit tests for nested paths, expression attribute names,
non-existent paths, and 3-level deep nesting, plus an AWS CLI
compat test reproducing the original report.
* test: move compatibility tests into this repo
* fix: add StatisticValues parsing to CloudWatchMetricsJsonHandler
* fix: add missing required abstract methods to EmulatorConfig in EventBridgeSchedulerIntegrationTest
* test: add sdk tests for multipart S3 copy coverage
* fix: cover and fix smithy cbor and multipart s3 copy regressions
* test: migrate more test coverage to new folder
* test: add missing ec2 expectation in healthcheck test
* docs: update READMEs in `./compatibility-tests`