# ExecuteCommandLogConfigurationProperty

The log configuration for the results of the execute command actions.

The logs can be sent to CloudWatch Logs or an Amazon S3 bucket.

- Source: Generated code
- Type last changed: v2.93.0 · 23 Aug 2023

## Example

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_ecs as ecs } from 'aws-cdk-lib';
const executeCommandLogConfigurationProperty: ecs.CfnCluster.ExecuteCommandLogConfigurationProperty = {
  cloudWatchEncryptionEnabled: false,
  cloudWatchLogGroupName: 'cloudWatchLogGroupName',
  s3BucketName: 's3BucketName',
  s3EncryptionEnabled: false,
  s3KeyPrefix: 's3KeyPrefix',
};
```

## Properties

- `cloudWatchEncryptionEnabled`: boolean | [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) — Determines whether to use encryption on the CloudWatch logs.

  If not specified, encryption will be off.

- `cloudWatchLogGroupName`: string — The name of the CloudWatch log group to send logs to.

  > The CloudWatch log group must already be created.

- `s3BucketName`: string — The name of the S3 bucket to send logs to.

  > The S3 bucket must already be created.

- `s3EncryptionEnabled`: boolean | [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) — Determines whether to use encryption on the S3 logs.

  If not specified, encryption is not used.

- `s3KeyPrefix`: string — An optional folder in the S3 bucket to place logs in.
