Closed ncilfone closed 1 month ago
I have the same issue using DynamoDB Resource and batch_get_item metthod... here in the requestItems argument the map keys are the ARN or Table Name.... when I use the ARN it doesn't mock correctly. (see doc)
Hi @alexevansigg and @ncilfone, thanks for raising this! The attached PR fixes this, so ARN's are now allowed for all methods that take a TableName
-parameter.
For instance, from the boto3 docs:
https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dynamodb/client/describe_table.html
If you look at the moto implementation of
describe_table
you can see that only the table name can be used and not the ARN sinceself.table[name]
is only in reference to the table name :https://github.com/getmoto/moto/blob/1c8c0fe4d9c7f5481a40814a8a6459a5142707ff/moto/dynamodb/models/__init__.py#L165-L169