title: Python list to list of map
body: <p>ENV: python 3.7+, boto3</p>
  <p>I have list of private IP address ['10.0.3.11', '10.0.2.22']</p>
  <pre><code>response = route53_client.change_resource_record_sets(
             HostedZoneId=&quot;ABDCEFGH&quot;,
             ChangeBatch={
                 'Comment': 'Dns to ec2 instance',
                 'Changes': [
                     {
                         'Action': 'UPSERT',
                         'ResourceRecordSet': {
                             'Name': &quot;ts-uat&quot;,
                             'Type': 'A',
                             'TTL': 120,
                             'ResourceRecords': [
                                {
                                     'Value': record['Value']
                                },
                            ]
                         }
                     }
                 ]
             }
         )
  </code></pre>
  <p>How to get it as follows</p>
  <pre><code>            HostedZoneId=&quot;ABDCEFGH&quot;,
              ChangeBatch={
                  'Comment': 'Dns to ec2 instance',
                  'Changes': [
                      {
                          'Action': 'UPSERT',
                          'ResourceRecordSet': {
                              'Name': &quot;ts-uat&quot;,
                              'Type': 'A',
                              'TTL': 120,
                              'ResourceRecords': [
                                 {
                                     'Value': 10.0.3.11
                                 },
                                 {
                                     'Value': 10.0.2.22
                                 },
                              ]
                          }
                      }
                  ]
              }
          )
  </code></pre>
  <p>I tried the following</p>
  <pre><code>def getListofIP(n):
      return &quot;{'value' : %s,}&quot; %  (n) 
  result = map(getListofIP, private_ip)
  print(list(result))
  </code></pre>
  <p>output was</p>
  <p>[&quot;{'value' : 10.0.3.11,}&quot;, &quot;{'value' : 10.0.2.22,}&quot;]</p>