

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

# AWS::Lex::BotAlias CloudWatchLogGroupLogDestination
<a name="aws-properties-lex-botalias-cloudwatchloggrouplogdestination"></a>

The Amazon CloudWatch Logs log group where the text and metadata logs are delivered. The log group must exist before you enable logging.

## Syntax
<a name="aws-properties-lex-botalias-cloudwatchloggrouplogdestination-syntax"></a>

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

### JSON
<a name="aws-properties-lex-botalias-cloudwatchloggrouplogdestination-syntax.json"></a>

```
{
  "[CloudWatchLogGroupArn](#cfn-lex-botalias-cloudwatchloggrouplogdestination-cloudwatchloggrouparn)" : String,
  "[LogPrefix](#cfn-lex-botalias-cloudwatchloggrouplogdestination-logprefix)" : String
}
```

### YAML
<a name="aws-properties-lex-botalias-cloudwatchloggrouplogdestination-syntax.yaml"></a>

```
  [CloudWatchLogGroupArn](#cfn-lex-botalias-cloudwatchloggrouplogdestination-cloudwatchloggrouparn): String
  [LogPrefix](#cfn-lex-botalias-cloudwatchloggrouplogdestination-logprefix): String
```

## Properties
<a name="aws-properties-lex-botalias-cloudwatchloggrouplogdestination-properties"></a>

`CloudWatchLogGroupArn`  <a name="cfn-lex-botalias-cloudwatchloggrouplogdestination-cloudwatchloggrouparn"></a>
The Amazon Resource Name (ARN) of the log group where text and metadata logs are delivered.  
*Required*: Yes  
*Type*: String  
*Minimum*: `1`  
*Maximum*: `2048`  
*Update requires*: [No interruption](https://docs.amazonaws.cn/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`LogPrefix`  <a name="cfn-lex-botalias-cloudwatchloggrouplogdestination-logprefix"></a>
The prefix of the log stream name within the log group that you specified   
*Required*: Yes  
*Type*: String  
*Minimum*: `0`  
*Maximum*: `1024`  
*Update requires*: [No interruption](https://docs.amazonaws.cn/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)