# LoggingConfigurationProperty

Defines how AWS Network Firewall performs logging for a firewall.

- 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_networkfirewall as networkfirewall } from 'aws-cdk-lib';
const loggingConfigurationProperty: networkfirewall.CfnLoggingConfiguration.LoggingConfigurationProperty = {
  logDestinationConfigs: [{
    logDestination: {
      logDestinationKey: 'logDestination',
    },
    logDestinationType: 'logDestinationType',
    logType: 'logType',
  }],
};
```

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_networkfirewall as networkfirewall

logging_configuration_property = networkfirewall.CfnLoggingConfiguration.LoggingConfigurationProperty(
    log_destination_configs=[networkfirewall.CfnLoggingConfiguration.LogDestinationConfigProperty(
        log_destination={
            "log_destination_key": "logDestination"
        },
        log_destination_type="logDestinationType",
        log_type="logType"
    )]
)
```

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

LoggingConfigurationProperty loggingConfigurationProperty = LoggingConfigurationProperty.builder()
        .logDestinationConfigs(List.of(LogDestinationConfigProperty.builder()
                .logDestination(Map.of(
                        "logDestinationKey", "logDestination"))
                .logDestinationType("logDestinationType")
                .logType("logType")
                .build()))
        .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.NetworkFirewall;

var loggingConfigurationProperty = new LoggingConfigurationProperty {
    LogDestinationConfigs = new [] { new LogDestinationConfigProperty {
        LogDestination = new Dictionary<string, string> {
            { "logDestinationKey", "logDestination" }
        },
        LogDestinationType = "logDestinationType",
        LogType = "logType"
    } }
};
```

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{
	LogDestinationConfigs: []interface{}{
		&LogDestinationConfigProperty{
			LogDestination: map[string]*string{
				"logDestinationKey": jsii.String("logDestination"),
			},
			LogDestinationType: jsii.String("logDestinationType"),
			LogType: jsii.String("logType"),
		},
	},
}
```

## Properties

- `logDestinationConfigs`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnLoggingConfiguration.LogDestinationConfigProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_networkfirewall.CfnLoggingConfiguration.LogDestinationConfigProperty.html)[] (required) — Defines the logging destinations for the logs for a firewall.

  Network Firewall generates logs for stateful rule groups.
