

# InfluxDBBatchConfig

The batching configuration of an InfluxDB rule action. AWS IoT closes a batch and writes it to InfluxDB when the first of the configured limits is reached.

## Contents
<a name="API_InfluxDBBatchConfig_Contents"></a>

 ** batchAcrossTopics **   <a name="iot-Type-InfluxDBBatchConfig-batchAcrossTopics"></a>
Specifies whether to collect data points from different topics into the same batch.  
If omitted or `false`, AWS IoT batches data points for each topic separately.  
Type: Boolean  
Required: No

 ** maxBatchOpenMs **   <a name="iot-Type-InfluxDBBatchConfig-maxBatchOpenMs"></a>
The maximum length of time, in milliseconds, to keep a batch open before writing it to InfluxDB.  
If you don't specify a value, this limit doesn't apply. AWS IoT then closes each batch when another configured limit is reached.  
Type: Integer  
Valid Range: Minimum value of 5. Maximum value of 1000.  
Required: No

 ** maxBatchSize **   <a name="iot-Type-InfluxDBBatchConfig-maxBatchSize"></a>
The maximum number of data points to collect in a batch.  
If you don't specify a value, this limit doesn't apply. AWS IoT then closes each batch when another configured limit is reached.  
Type: Integer  
Valid Range: Minimum value of 1. Maximum value of 500.  
Required: No

 ** maxBatchSizeBytes **   <a name="iot-Type-InfluxDBBatchConfig-maxBatchSizeBytes"></a>
The maximum size of a batch, in bytes, before AWS IoT writes it to InfluxDB.  
If you don't specify a value, this limit doesn't apply. AWS IoT then closes each batch when another configured limit is reached.  
Type: Integer  
Valid Range: Minimum value of 100. Maximum value of 131072.  
Required: No

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

For more information about using this API in one of the language-specific AWS SDKs, see the following:
+  [AWS SDK for C\+\+](https://docs.aws.amazon.com/goto/SdkForCpp/iot-2015-05-28/InfluxDBBatchConfig) 
+  [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/iot-2015-05-28/InfluxDBBatchConfig) 
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/iot-2015-05-28/InfluxDBBatchConfig) 