<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Mapping File Configuration on</title><link>https://docs.protegrity.com/cloud-protect/4.1.0/docs/aws/s3/mapping-file/</link><description>Recent content in Mapping File Configuration on</description><generator>Hugo</generator><language>en</language><atom:link href="https://docs.protegrity.com/cloud-protect/4.1.0/docs/aws/s3/mapping-file/index.xml" rel="self" type="application/rss+xml"/><item><title>Mapping File</title><link>https://docs.protegrity.com/cloud-protect/4.1.0/docs/aws/s3/mapping-file/cloud_s3_mapping_config/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://docs.protegrity.com/cloud-protect/4.1.0/docs/aws/s3/mapping-file/cloud_s3_mapping_config/</guid><description>&lt;h2 id="overview">Overview&lt;/h2>
&lt;p>S3 Protector uses a &lt;code>mapping.json&lt;/code> file to determine how columns in the source file are
mapped to Protegrity data elements for protection. The Lambda resolves the mapping file
location using the following &lt;strong>precedence order&lt;/strong> (highest to lowest):&lt;/p>
&lt;table>
 &lt;thead>
 &lt;tr>
 &lt;th>Priority&lt;/th>
 &lt;th>Source&lt;/th>
 &lt;th>Description&lt;/th>
 &lt;/tr>
 &lt;/thead>
 &lt;tbody>
 &lt;tr>
 &lt;td>&lt;strong>1 — S3 Object Tag&lt;/strong>&lt;/td>
 &lt;td>AWS S3 object tag &lt;code>MAPPING_LOCATION&lt;/code> on the source file&lt;/td>
 &lt;td>If the source S3 object has a tag with the key &lt;code>MAPPING_LOCATION&lt;/code>, its value is used to locate the mapping file. The value can be a full S3 URI (&lt;code>s3://bucket/path/to/mapping.json&lt;/code>) pointing to an exact file, or a bucket name for a hierarchical folder walk. This takes precedence over all other methods. Requires &lt;code>s3:GetObjectTagging&lt;/code> permission on the source bucket.&lt;/td>
 &lt;/tr>
 &lt;tr>
 &lt;td>&lt;strong>2 — &lt;code>MAPPING_CONFIG_BUCKET&lt;/code> (mirror bucket)&lt;/strong>&lt;/td>
 &lt;td>&lt;code>MAPPING_CONFIG_BUCKET&lt;/code> environment variable&lt;/td>
 &lt;td>When set, S3 Protector looks for the mapping file in this dedicated bucket, using the same folder path as the source file (mirroring the source bucket&amp;rsquo;s folder structure). Use this to centralise mapping files without tagging every individual object or using source bucket.&lt;/td>
 &lt;/tr>
 &lt;tr>
 &lt;td>&lt;strong>3 — Source bucket&lt;/strong>&lt;/td>
 &lt;td>Source S3 bucket (used by default)&lt;/td>
 &lt;td>If neither a tag nor &lt;code>MAPPING_CONFIG_BUCKET&lt;/code> resolves a mapping file, S3 Protector falls back to loading &lt;code>mapping.json&lt;/code> from the same bucket and folder as the source file.&lt;/td>
 &lt;/tr>
 &lt;/tbody>
&lt;/table>
&lt;h2 id="using-s3-object-tags-for-mapping-file-resolution">Using S3 Object Tags for Mapping File Resolution&lt;/h2>
&lt;p>Add a tag to the source S3 object to point to a specific mapping file. The tag key is always
&lt;code>MAPPING_LOCATION&lt;/code>. The tag value supports two formats:&lt;/p></description></item><item><title>Column Mapping Rules</title><link>https://docs.protegrity.com/cloud-protect/4.1.0/docs/aws/s3/mapping-file/cloud_s3_column_mapping_rules/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://docs.protegrity.com/cloud-protect/4.1.0/docs/aws/s3/mapping-file/cloud_s3_column_mapping_rules/</guid><description>&lt;h2 id="common-error-conditions">Common Error Conditions&lt;/h2>
&lt;p>The table below summaries common error conditions that may occur when creating a &amp;lsquo;mapping.json&amp;rsquo; file:&lt;/p>
&lt;table>
 &lt;thead>
 &lt;tr>
 &lt;th>Mapping&lt;/th>
 &lt;th>Error Message&lt;/th>
 &lt;/tr>
 &lt;/thead>
 &lt;tbody>
 &lt;tr>
 &lt;td>A column name appears in &amp;lsquo;mapping.json&amp;rsquo; but does not exist in the source file.&lt;/td>
 &lt;td>Columns [&amp;lsquo;column name&amp;rsquo;] in the mapping file have no matches in the input data columns&lt;/td>
 &lt;/tr>
 &lt;tr>
 &lt;td>Source file column name appears neither in &amp;lsquo;columns&amp;rsquo; nor &amp;lsquo;ignored-columns&amp;rsquo; sections.&lt;/td>
 &lt;td>Input file contains data columns which are not defined in the mapping file.&lt;/td>
 &lt;/tr>
 &lt;tr>
 &lt;td>Source file column name appears in both &amp;lsquo;columns&amp;rsquo; and &amp;lsquo;ignored-columns&amp;rsquo; sections.&lt;/td>
 &lt;td>Ignored column [&amp;lsquo;column-name&amp;rsquo;] is present in &amp;lsquo;columns&amp;rsquo; list. Column must be defined in either &amp;lsquo;columns&amp;rsquo; or &amp;lsquo;ignored-columns&amp;rsquo;, but not both.&lt;/td>
 &lt;/tr>
 &lt;tr>
 &lt;td>Source file column name appears more than once in either &amp;lsquo;columns&amp;rsquo; or &amp;lsquo;ignored-columns&amp;rsquo; section.&lt;/td>
 &lt;td>Duplicate column [&amp;ldquo;column-name&amp;rdquo;] found in &amp;lsquo;ignored-columns&amp;rsquo;.&lt;/td>
 &lt;/tr>
 &lt;/tbody>
&lt;/table>


&lt;div class="alert alert-info" role="alert">
&lt;h4 class="alert-heading">Note&lt;/h4>

 The column names in the mapping file are &lt;strong>case sensitive&lt;/strong>.

&lt;/div></description></item></channel></rss>