title: What is the correct syntax for multiple conditions in a Terraform `aws_iam_policy_document` data block
body: <p>How can this S3 bucket IAM policy, which has <em>multiple</em> conditions, be re-written as <code>aws_iam_policy_document</code> data block, please?</p>
  <pre class="lang-json prettyprint-override"><code>    &quot;Condition&quot;: {
        &quot;StringEquals&quot;: {
            &quot;s3:x-amz-acl&quot;: &quot;bucket-owner-full-control&quot;,
            &quot;aws:SourceAccount&quot;: &quot;xxxxxxxxxxxx&quot;
        },
        &quot;ArnLike&quot;: {
            &quot;aws:SourceArn&quot;: &quot;arn:aws:s3:::my-tf-test-bucket&quot;
        }
      }
  </code></pre>
  <p>With the <code>aws_iam_policy_document</code> <code>condition</code> data block syntax <a href="https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/iam_policy_document#condition" rel="noreferrer">1</a>:</p>
  <pre><code>    condition {
        test = &quot;StringEquals&quot;
        values = []
        variable = &quot;&quot;
      }
  </code></pre>