

This is the new *CloudFormation Template Reference Guide*. Please update your bookmarks and links. For help getting started with CloudFormation, see the [AWS CloudFormation User Guide](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/Welcome.html).

# AWS::CodeBuild::Project CloudWatchLogsConfig
<a name="aws-properties-codebuild-project-cloudwatchlogsconfig"></a>

`CloudWatchLogs` is a property of the [AWS CodeBuild Project LogsConfig ](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-logsconfig.html) property type that specifies settings for CloudWatch logs generated by an AWS CodeBuild build. 

## Syntax
<a name="aws-properties-codebuild-project-cloudwatchlogsconfig-syntax"></a>

To declare this entity in your CloudFormation template, use the following syntax:

### JSON
<a name="aws-properties-codebuild-project-cloudwatchlogsconfig-syntax.json"></a>

```
{
  "[GroupName](#cfn-codebuild-project-cloudwatchlogsconfig-groupname)" : String,
  "[Status](#cfn-codebuild-project-cloudwatchlogsconfig-status)" : String,
  "[StreamName](#cfn-codebuild-project-cloudwatchlogsconfig-streamname)" : String
}
```

### YAML
<a name="aws-properties-codebuild-project-cloudwatchlogsconfig-syntax.yaml"></a>

```
  [GroupName](#cfn-codebuild-project-cloudwatchlogsconfig-groupname): String
  [Status](#cfn-codebuild-project-cloudwatchlogsconfig-status): String
  [StreamName](#cfn-codebuild-project-cloudwatchlogsconfig-streamname): String
```

## Properties
<a name="aws-properties-codebuild-project-cloudwatchlogsconfig-properties"></a>

`GroupName`  <a name="cfn-codebuild-project-cloudwatchlogsconfig-groupname"></a>
 The group name of the logs in CloudWatch Logs. For more information, see [Working with Log Groups and Log Streams](https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/Working-with-log-groups-and-streams.html).   
*Required*: No  
*Type*: String  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`Status`  <a name="cfn-codebuild-project-cloudwatchlogsconfig-status"></a>
The current status of the logs in CloudWatch Logs for a build project. Valid values are:  
+ `ENABLED`: CloudWatch Logs are enabled for this build project.
+ `DISABLED`: CloudWatch Logs are not enabled for this build project.
*Required*: Yes  
*Type*: String  
*Allowed values*: `ENABLED | DISABLED`  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`StreamName`  <a name="cfn-codebuild-project-cloudwatchlogsconfig-streamname"></a>
 The prefix of the stream name of the CloudWatch Logs. For more information, see [Working with Log Groups and Log Streams](https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/Working-with-log-groups-and-streams.html).   
*Required*: No  
*Type*: String  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

## See also
<a name="aws-properties-codebuild-project-cloudwatchlogsconfig--seealso"></a>
+ [ CloudWatchLogsConfig](https://docs.aws.amazon.com/codebuild/latest/APIReference/API_CloudWatchLogsConfig.html) in the *AWS CodeBuild API Reference*