Complete the code to specify the HTTP method for the API Gateway integration.
"HttpMethod": "[1]"
The GET method is used to retrieve data from DynamoDB via API Gateway.
Complete the code to specify the DynamoDB action for reading an item.
"Action": "dynamodb:[1]"
GetItem is the DynamoDB action to retrieve a single item.
Fix the error in the integration request template to correctly pass the partition key.
"Key": {"id": {"S": "$input.path('$.[1]')"}}
The partition key attribute name is 'id' in this example, so it must match exactly.
Fill both blanks to correctly configure the API Gateway integration type and the DynamoDB table name.
"Type": "[1]", "TableName": "[2]"
The integration type for direct DynamoDB access is 'AWS'. The table name must match the actual DynamoDB table, here 'UserDataTable'.
Fill all three blanks to complete the IAM role policy allowing API Gateway to access DynamoDB.
"Effect": "[1]", "Action": "dynamodb:[2]", "Resource": "arn:aws:dynamodb:region:account-id:table/[3]"
The IAM policy must allow ('Allow') the 'GetItem' action on the specific DynamoDB table 'UserDataTable'.