

# PutSystemTablesConfiguration

Enables or disables system tables for one or more Amazon EMR platforms in your account in the current Region. System tables store Amazon EMR operational data as Apache Iceberg tables in Amazon S3 Tables in your account. For each platform in the request, the operation replaces that platform's system tables configuration; platforms that you don't specify are unchanged. The operation isn't atomic across platforms: if it returns an error, some of the platforms in the request might already be updated. Call `GetSystemTablesConfiguration` to see the current configuration of each platform before you retry. Tables are set up asynchronously: a table that you enable reports `PROVISIONING` until it is ready. Use `GetSystemTablesConfiguration` to check its status. If the storage for your system tables is still transitioning after a recent deletion, the operation returns a `ConflictException`. Wait a few minutes and retry.

## Request Syntax
<a name="API_PutSystemTablesConfiguration_RequestSyntax"></a>

```
{
   "Platforms": [ 
      { 
         "EncryptionConfiguration": { 
            "KmsKeyArn": "{{string}}"
         },
         "Platform": "{{string}}",
         "SystemTables": { 
            "Mode": "{{string}}"
         }
      }
   ]
}
```

## Request Parameters
<a name="API_PutSystemTablesConfiguration_RequestParameters"></a>

For information about the parameters that are common to all actions, see [Common Parameters](CommonParameters.md).

The request accepts the following data in JSON format.

 ** [Platforms](#API_PutSystemTablesConfiguration_RequestSyntax) **   <a name="EMR-PutSystemTablesConfiguration-request-Platforms"></a>
The system tables configuration to apply to each platform. Specify each platform at most once.  
Type: Array of [SystemTablesConfiguration](API_SystemTablesConfiguration.md) objects  
Array Members: Minimum number of 1 item. Maximum number of 4 items.  
Required: Yes

## Response Syntax
<a name="API_PutSystemTablesConfiguration_ResponseSyntax"></a>

```
{
   "Configurations": [ 
      { 
         "EncryptionConfiguration": { 
            "KmsKeyArn": "string"
         },
         "Platform": "string",
         "SystemTables": { 
            "Mode": "string"
         },
         "Tables": [ 
            { 
               "Status": "string",
               "StatusReason": "string",
               "TableType": "string"
            }
         ]
      }
   ]
}
```

## Response Elements
<a name="API_PutSystemTablesConfiguration_ResponseElements"></a>

If the action is successful, the service sends back an HTTP 200 response.

The following data is returned in JSON format by the service.

 ** [Configurations](#API_PutSystemTablesConfiguration_ResponseSyntax) **   <a name="EMR-PutSystemTablesConfiguration-response-Configurations"></a>
The resulting system tables configuration of every platform, including platforms that the request didn't change.  
Type: Array of [SystemTablesConfigurationSummary](API_SystemTablesConfigurationSummary.md) objects  
Array Members: Maximum number of 4 items.

## Errors
<a name="API_PutSystemTablesConfiguration_Errors"></a>

For information about the errors that are common to all actions, see [Common Error Types](CommonErrors.md).

 ** AccessDeniedException **   
You do not have sufficient permissions to perform this operation.    
 ** Message **   
The message associated with the exception.
HTTP Status Code: 400

 ** ConflictException **   
The request conflicts with the current state of the resource.    
 ** Message **   
The message associated with the exception.
HTTP Status Code: 400

 ** InternalServerException **   
This exception occurs when there is an internal failure in the Amazon EMR service.    
 ** Message **   
The message associated with the exception.
HTTP Status Code: 500

 ** ThrottlingException **   
The request was denied because of request throttling. Retry the request after a delay.    
 ** Message **   
The message associated with the exception.
HTTP Status Code: 400

 ** ValidationException **   
The request failed because an input parameter is not valid.    
 ** Message **   
The message associated with the exception.
HTTP Status Code: 400

## See Also
<a name="API_PutSystemTablesConfiguration_SeeAlso"></a>

For more information about using this API in one of the language-specific AWS SDKs, see the following:
+  [AWS Command Line Interface V2](https://docs.aws.amazon.com/goto/cli2/elasticmapreduce-2009-03-31/PutSystemTablesConfiguration) 
+  [AWS SDK for .NET V4](https://docs.aws.amazon.com/goto/DotNetSDKV4/elasticmapreduce-2009-03-31/PutSystemTablesConfiguration) 
+  [AWS SDK for C\+\+](https://docs.aws.amazon.com/goto/SdkForCpp/elasticmapreduce-2009-03-31/PutSystemTablesConfiguration) 
+  [AWS SDK for Go v2](https://docs.aws.amazon.com/goto/SdkForGoV2/elasticmapreduce-2009-03-31/PutSystemTablesConfiguration) 
+  [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/elasticmapreduce-2009-03-31/PutSystemTablesConfiguration) 
+  [AWS SDK for JavaScript V3](https://docs.aws.amazon.com/goto/SdkForJavaScriptV3/elasticmapreduce-2009-03-31/PutSystemTablesConfiguration) 
+  [AWS SDK for Kotlin](https://docs.aws.amazon.com/goto/SdkForKotlin/elasticmapreduce-2009-03-31/PutSystemTablesConfiguration) 
+  [AWS SDK for PHP V3](https://docs.aws.amazon.com/goto/SdkForPHPV3/elasticmapreduce-2009-03-31/PutSystemTablesConfiguration) 
+  [AWS SDK for Python (Boto3)](https://docs.aws.amazon.com/goto/boto3/elasticmapreduce-2009-03-31/PutSystemTablesConfiguration) 
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/elasticmapreduce-2009-03-31/PutSystemTablesConfiguration) 