title: Invalid type for parameter Body in Amazon S3
body: <p>I'm trying to save python list <code>data_issues</code> (of type <code>&lt;class 'list'&gt;</code>) using Glue to an Amazon S3 bucket but I'm getting below error:</p>
  <pre><code>Parameter validation failed:
  Invalid type for parameter Body, value: 
  
  [('document_entity_sdi', Exception(&quot;For column, int and YES don't match.&quot;)), 
      ('account_status_sdi', Py4JJavaError('An error occurred while calling o80.getCatalogSink.\n', JavaObject id=o654)), 
      ('account_transaction_fcs_status', Py4JJavaError('An error occurred while calling o80.getCatalogSink.\n', JavaObject id=o797)),
      ('purchase_order_agreement', Py4JJavaError('An error occurred while calling o80.getCatalogSink.\n', JavaObject id=o21565))], 
  
  type: &lt;class 'list'&gt;, valid types: &lt;class 'bytes'&gt;, &lt;class 'bytearray'&gt;, file-like object
  </code></pre>
  <p>I tried this workaround to convert the list <code>bytes(data_issues)</code> but doesn't work:</p>
  <pre><code>BUCKET = 'bucket_name'
  s3 = boto3.client('s3')
  keyid = 'keyID'
  
  print(&quot;Uploading S3 object with SSE-KMS&quot;)
  s3.put_object(Bucket=BUCKET,
            Key='encrypt-key',
            Body=bytes(data_issues),
            ServerSideEncryption='aws:kms',
            SSEKMSKeyId=keyid)
  print(&quot;Saving to S3, Done&quot;)
  </code></pre>