DynamoDB is read from iam-request-resources.json now, and
ResourceArnBuilder's DynamoDB branch, the registry's PartiQL action,
the condition resolver's mapping of transaction items and statements to
actions and Step Functions' copy of all three are gone, leaving iam in
HAND_BUILT.
Which action each transaction item and each PartiQL statement is
checked as comes from the developer guide, vendored by
fetch_dynamodb_permissions.py into
tools/aws/sources/dynamodb-permissions.json and read under
PERMISSION_SOURCES: the PartiQL IAM page's required permissions and the
transactions page's paragraph on each kind of item.
- Each transaction item is checked as the action of its kind on the
table its TableName names (TransactItems[].Put.TableName as
dynamodb:PutItem), each PartiQL statement as the action of its verb on
the table or index it names, an EXISTS statement as the SELECT it
evaluates, which DynamoDB's own parser reads through the new
StoredResourceArns.statement hook before it binds the request's
parameters. A request naming nothing is checked as its own action on
*; a state machine's task naming nothing is left to DynamoDB, as
before.
- RequestResources.targets replaces checkedAs: each element of a list is
read apart and returned with its check, so the condition resolver
still gives each item or statement its own keys and
dynamodb:EnclosingOperation.
- BatchGetItem and BatchWriteItem name their tables by the keys of
RequestItems, which the generator reads from botocore (RequestItems{}).
- RequestResourceMembers reads Name{}, Name[].Item.Field and statement
rows (statement, verb, names).