title: How to use page iterator in aws pricing boto3 api get products
body: <p>How can I paginate results for iterating over aws pricing api to get prices?</p>
  
  <p>Here is what I tried but getting error for no attribute '<strong>getitem</strong>'</p>
  
  <pre><code>pricing = boto3.client('pricing', region_name='us-east-1')
  token = ''
  paginator = pricing.get_paginator('get_products')
  while True:
      response = paginator.paginate(
          ServiceCode='AmazonEC2',
          Filters=[
              {'Type': 'TERM_MATCH', 'Field': 'operatingSystem', 'Value': 'Linux'},
              {'Type': 'TERM_MATCH', 'Field': 'location', 'Value': 'US West (Oregon)'}
  
          ],
          PaginationConfig={
              'MaxItems':100,
              'PageSize':100,
              'StartingToken':token
          }
      )
      token = response['NextToken']
      print response.result_keys
  </code></pre>