# LoggingConfigurationProperty

- 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_sam as sam } from 'aws-cdk-lib';
const loggingConfigurationProperty: sam.CfnStateMachine.LoggingConfigurationProperty = {
  destinations: [{
    cloudWatchLogsLogGroup: {
      logGroupArn: 'logGroupArn',
    },
  }],
  includeExecutionData: false,
  level: 'level',
};
```

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_sam as sam

logging_configuration_property = sam.CfnStateMachine.LoggingConfigurationProperty(
    destinations=[sam.CfnStateMachine.LogDestinationProperty(
        cloud_watch_logs_log_group=sam.CfnStateMachine.CloudWatchLogsLogGroupProperty(
            log_group_arn="logGroupArn"
        )
    )],
    include_execution_data=False,
    level="level"
)
```

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.sam.*;

LoggingConfigurationProperty loggingConfigurationProperty = LoggingConfigurationProperty.builder()
        .destinations(List.of(LogDestinationProperty.builder()
                .cloudWatchLogsLogGroup(CloudWatchLogsLogGroupProperty.builder()
                        .logGroupArn("logGroupArn")
                        .build())
                .build()))
        .includeExecutionData(false)
        .level("level")
        .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.SAM;

var loggingConfigurationProperty = new LoggingConfigurationProperty {
    Destinations = new [] { new LogDestinationProperty {
        CloudWatchLogsLogGroup = new CloudWatchLogsLogGroupProperty {
            LogGroupArn = "logGroupArn"
        }
    } },
    IncludeExecutionData = false,
    Level = "level"
};
```

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"

loggingConfigurationProperty := &LoggingConfigurationProperty{
	Destinations: []interface{}{
		&LogDestinationProperty{
			CloudWatchLogsLogGroup: &CloudWatchLogsLogGroupProperty{
				LogGroupArn: jsii.String("logGroupArn"),
			},
		},
	},
	IncludeExecutionData: jsii.Boolean(false),
	Level: jsii.String("level"),
}
```

## Properties

- `destinations`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnStateMachine.LogDestinationProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_sam.CfnStateMachine.LogDestinationProperty.html)[] (required)

- `includeExecutionData`: boolean | [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) (required)

- `level`: string (required)
