

# datasync-task-logging-enabled
<a name="datasync-task-logging-enabled"></a>

Checks if an Amazon DataSync task has Amazon CloudWatch logging enabled. The rule is NON\_COMPLIANT if an Amazon DataSync task does not have Amazon CloudWatch logging enabled or if the logging level is not equivalent to the logging level that you specify. 



**Identifier:** DATASYNC\_TASK\_LOGGING\_ENABLED

**Resource Types:** AWS::DataSync::Task

**Trigger type:** Configuration changes

**Amazon Web Services Region:** All supported Amazon regions except Asia Pacific (New Zealand), Asia Pacific (Thailand), Asia Pacific (Malaysia), Mexico (Central), Asia Pacific (Taipei), Canada West (Calgary) Region

**Parameters:**

logLevel (Optional)Type: String  
String value for the logging level. Valid values include: 'BASIC' and 'TRANSFER'. If not specified, the default value is 'BASIC'.

## Amazon CloudFormation template
<a name="w2aac20c16c17b7d439c19"></a>

To create Amazon Config managed rules with Amazon CloudFormation templates, see [Creating Amazon Config Managed Rules With Amazon CloudFormation Templates](aws-config-managed-rules-cloudformation-templates.md).