# CloudWatchOutputConfigProperty

Configuration options for sending command output to Amazon CloudWatch Logs.

- Source: Generated at build time
- Type last changed: v2.93.0 · 23 Aug 2023

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_ssm as ssm } from 'aws-cdk-lib';
const cloudWatchOutputConfigProperty: ssm.CfnMaintenanceWindowTask.CloudWatchOutputConfigProperty = {
  cloudWatchLogGroupName: 'cloudWatchLogGroupName',
  cloudWatchOutputEnabled: false,
};
```

Python:

```python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_ssm as ssm

cloud_watch_output_config_property = ssm.CfnMaintenanceWindowTask.CloudWatchOutputConfigProperty(
    cloud_watch_log_group_name="cloudWatchLogGroupName",
    cloud_watch_output_enabled=False
)
```

Java:

```java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.ssm.*;

CloudWatchOutputConfigProperty cloudWatchOutputConfigProperty = CloudWatchOutputConfigProperty.builder()
        .cloudWatchLogGroupName("cloudWatchLogGroupName")
        .cloudWatchOutputEnabled(false)
        .build();
```

C# / .NET:

```csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.SSM;

var cloudWatchOutputConfigProperty = new CloudWatchOutputConfigProperty {
    CloudWatchLogGroupName = "cloudWatchLogGroupName",
    CloudWatchOutputEnabled = false
};
```

Golang:

```go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

cloudWatchOutputConfigProperty := &CloudWatchOutputConfigProperty{
	CloudWatchLogGroupName: jsii.String("cloudWatchLogGroupName"),
	CloudWatchOutputEnabled: jsii.Boolean(false),
}
```

## Properties

- `cloudWatchLogGroupName`: string — The name of the CloudWatch Logs log group where you want to send command output.

  If you don't specify a group name, AWS Systems Manager automatically creates a log group for you. The log group uses the following naming format:

  `aws/ssm/ *SystemsManagerDocumentName*`

- `cloudWatchOutputEnabled`: boolean | [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) — Enables Systems Manager to send command output to CloudWatch Logs.
