

# CloudwatchLogsAction


Describes an action that sends data to CloudWatch Logs.

## Contents


 ** logGroupName **   <a name="iot-Type-CloudwatchLogsAction-logGroupName"></a>
The CloudWatch log group to which the action sends data.  
Type: String  
Required: Yes

 ** roleArn **   <a name="iot-Type-CloudwatchLogsAction-roleArn"></a>
The IAM role that allows access to the CloudWatch log.  
Type: String  
Required: Yes

 ** batchMode **   <a name="iot-Type-CloudwatchLogsAction-batchMode"></a>
Indicates whether batches of log records will be extracted and uploaded into CloudWatch. Values include `true` or `false` *(default)*.  
Type: Boolean  
Required: No

## See Also


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