title: How can I pass a variable properly into this boto3 batch_get_item function?
body: <p>A small example can be seen here on how to pass in hard coded values for batch_get_item </p>
  
  <p><a href="https://stackoverflow.com/questions/37872542/is-there-a-python-api-for-submitting-batch-get-requests-to-aws-dynamodb">Is there a Python API for submitting batch get requests to AWS DynamoDB?</a></p>
  
  <p>and the documentation is here</p>
  
  <p><a href="http://boto3.readthedocs.io/en/latest/reference/services/dynamodb.html#DynamoDB.Client.batch_get_item" rel="nofollow noreferrer">http://boto3.readthedocs.io/en/latest/reference/services/dynamodb.html#DynamoDB.Client.batch_get_item</a></p>
  
  <p>but I can hardly believe this is how an experienced python user would pass in keys to the function. Is it possible to pass in a list of strings (ids) into the Keys array and how is that done? </p>