Open
Description
Hi! I'm looking for a way to set up an endpoint that would use an index based on GSI, instead of using the primary Hash/Sort Key. Is this possible? I don't see any examples in the docs.
I tried adding this, but causes an error:
IndexName: user_id_index
apiGatewayServiceProxies:
- dynamodb:
path: /myapp/by_user/{user_id}
method: get
tableName: { Ref: 'myTable' }
IndexName: user_id_index
hashKey:
pathParam: user_id
attributeType: S
action: GetItem
cors: true
results in:
child "dynamodb" fails because ["IndexName" is not allowed]
Any help is appreciated. Thanks!