LoggingConfigurationProperty Struct
Defines how AWS Network Firewall performs logging for a firewall.
| Source | |
|---|---|
| Type last changed |
Example
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
# 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
// 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();
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"
} }
};
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
logDestinationConfigsIResolvable | IResolvable | CfnLoggingConfiguration.log_destination_configstyping.Union[IResolvable, typing.List[typing.Union[IResolvable, LogDestinationConfigProperty]]]logDestinationConfigsIResolvableLogDestinationConfigsIResolvableLogDestinationConfigsinterface{} required #Defines the logging destinations for the logs for a firewall.
Network Firewall generates logs for stateful rule groups.