Repository navigation
Description
DynamoDBTable.TableARN carries json:"TableARN" (emulator/dynamodb_types.go). AWS's member is TableArn — lowercase rn — on both TableDescription and Table:
TableDescription:TableArnDescribeTablereturns it insideTable
So a caller asking for the ARN gets nothing, with no error:
$ aws --endpoint-url http://localhost:4678 dynamodb create-table --table-name probe \
--attribute-definitions AttributeName=id,AttributeType=S \
--key-schema AttributeName=id,KeyType=HASH --billing-mode PAY_PER_REQUEST \
--query 'TableDescription.TableArn' --output text
None
$ aws --endpoint-url http://localhost:4678 dynamodb describe-table --table-name probe \
--query 'Table.TableArn' --output text
None
The ARN itself is correct and stored — the Resource Groups Tagging API reports it accurately from the same record — so this is purely the wire name.
Found during #734's live SDK verification, which used a DynamoDB table to show that a resource written under one credential is visible to another. The table was visible; its ARN was not.
Why it matters more than a spelling
A consumer's usual next step after CreateTable is to pass the ARN to TagResource, to a CloudFormation output, or to an IAM policy's Resource. A typed SDK unmarshals TableArn into an empty string rather than failing, so that flow produces an empty-ARN request whose refusal names something unrelated. #734's own live script had to hard-code the ARN for exactly this reason.
Acceptance criteria
- The JSON tag is
TableArn, matching the API reference -
CreateTable,DescribeTable,UpdateTableandDeleteTableall report it under that name - Index ARNs are checked the same way: AWS publishes
IndexArnonGlobalSecondaryIndexDescriptionandLocalSecondaryIndexDescription, andLatestStreamArnonTableDescription— substrate's fields areIndexARNandLatestStreamARN - A test asserts the raw JSON key, not the Go field, so a rename cannot silently regress it
- Compatibility noted: a fixture asserting on
TableARNneeds updating
Activity
fix(dynamodb,eventbridge,lambda,cloudtrail,wafv2): publish the member…