title: Can page size be set with dynamodb.ScanPages?
body: <p>The documentation for working with dynamodb scans, <a href="https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Scan.html#Scan.Pagination" rel="nofollow noreferrer">found here</a>, makes reference to a <code>page-size</code> parameter for the AWS CLI.</p>
  <p>In looking at the documentation for the go AWS SDK, <a href="https://docs.aws.amazon.com/sdk-for-go/api/service/dynamodb/#DynamoDB.Scan" rel="nofollow noreferrer">found here</a>, there is function ScanPages.  There is an example of how to use the function, but no where in the documentation is there a way to specify something like <code>page-size</code> as the AWS CLI has.  I can't determine how the paging occurs other than assuming if the results exceed 1MB, then that would be considered a page based on the go documentation and the general scan documentation.</p>
  <p>I'm also aware of the <code>Limit</code> value that can be set on the <code>ScanInput</code>, but the documentation indicates that value would function as a page size only if every item processed matched the filter expression of the scan:</p>
  <blockquote>
  <p>The maximum number of items to evaluate (not necessarily the number of matching items)</p>
  </blockquote>
  <p>Is there a way to set something equivalent to <code>page-size</code> with the go SDK?</p>