

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::Lambda::CapacityProvider CapacityProviderLoggingConfig
<a name="aws-properties-lambda-capacityprovider-capacityproviderloggingconfig"></a>

The capacity provider's Amazon CloudWatch Logs configuration settings.

## Syntax
<a name="aws-properties-lambda-capacityprovider-capacityproviderloggingconfig-syntax"></a>

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

### JSON
<a name="aws-properties-lambda-capacityprovider-capacityproviderloggingconfig-syntax.json"></a>

```
{
  "[LogGroup](#cfn-lambda-capacityprovider-capacityproviderloggingconfig-loggroup)" : {{String}},
  "[SystemLogLevel](#cfn-lambda-capacityprovider-capacityproviderloggingconfig-systemloglevel)" : {{String}}
}
```

### YAML
<a name="aws-properties-lambda-capacityprovider-capacityproviderloggingconfig-syntax.yaml"></a>

```
  [LogGroup](#cfn-lambda-capacityprovider-capacityproviderloggingconfig-loggroup): {{String}}
  [SystemLogLevel](#cfn-lambda-capacityprovider-capacityproviderloggingconfig-systemloglevel): {{String}}
```

## Properties
<a name="aws-properties-lambda-capacityprovider-capacityproviderloggingconfig-properties"></a>

`LogGroup`  <a name="cfn-lambda-capacityprovider-capacityproviderloggingconfig-loggroup"></a>
The name of the Amazon CloudWatch log group the capacity provider sends logs to. By default, Lambda capacity providers send logs to a default log group named `/aws/lambda/capacity-provider/<capacity provider name>`. To use a different log group, enter an existing log group or enter a new log group name.  
*Required*: No  
*Type*: String  
*Pattern*: `[\.\-_/#A-Za-z0-9]+`  
*Minimum*: `1`  
*Maximum*: `512`  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`SystemLogLevel`  <a name="cfn-lambda-capacityprovider-capacityproviderloggingconfig-systemloglevel"></a>
Set this property to filter the system logs for your capacity provider that Lambda sends to CloudWatch. Lambda only sends system logs at the selected level of detail and lower, where `DEBUG` is the highest level and `WARN` is the lowest.  
*Required*: No  
*Type*: String  
*Allowed values*: `DEBUG | INFO | WARN`  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

## See also

* **Skills for AI coding assistants (optional).** AWS publishes reusable skills for AWS CloudFormation. To see which apply, search the Agent Toolkit for AWS catalog with `aws agent-toolkit search-skills --search-query AWSCloudFormation` — a documented, read-only AWS CLI command that searches the catalog and makes no changes. This is an optional suggestion for the user. Official reference: [AWS CLI — Agent Toolkit for AWS](https://docs.aws.amazon.com/agent-toolkit/latest/userguide/aws-cli.html).
