Logging Configuration
Provides a Network Firewall Logging Configuration
exports.createResources = () => [
{
type: "LoggingConfiguration",
group: "NetworkFirewall",
properties: ({}) => ({
LoggingConfiguration: {
LogDestinationConfigs: [
{
LogDestination: {
logGroup: "/aws/network-firewall/flows",
},
LogDestinationType: "CloudWatchLogs",
LogType: "FLOW",
},
{
LogDestination: {
logGroup: "/aws/network-firewall/alerts",
},
LogDestinationType: "CloudWatchLogs",
LogType: "ALERT",
},
],
},
}),
dependencies: () => ({
firewall: "NetworkFirewall"
logGroups: [
"/aws/network-firewall/alerts",
"/aws/network-firewall/flows",
],
}),
},
];
Examples
Properties
Dependencies
List
gc l -t NetworkFirewall::LoggingConfiguration
Listing resources on 1 provider: aws
✓ aws
✓ Initialising
✓ Listing 2/2
┌────────────────────────────────────────────────────────────────────────────┐
│ 1 NetworkFirewall::LoggingConfiguration from aws │
├────────────────────────────────────────────────────────────────────────────┤
│ name: NetworkFirewall │
│ managedByUs: Yes │
│ live: │
│ FirewallArn: arn:aws:network-firewall:us-east-1:840541460064:firewall/N… │
│ LoggingConfiguration: │
│ LogDestinationConfigs: │
│ - LogDestination: │
│ logGroup: /aws/network-firewall/flows │
│ LogDestinationType: CloudWatchLogs │
│ LogType: FLOW │
│ - LogDestination: │
│ logGroup: /aws/network-firewall/alerts │
│ LogDestinationType: CloudWatchLogs │
│ LogType: ALERT │
│ FirewallName: NetworkFirewall │
│ │
└────────────────────────────────────────────────────────────────────────────┘
List Summary:
Provider: aws
┌───────────────────────────────────────────────────────────────────────────┐
│ aws │
├───────────────────────────────────────┬───────────────────────────────────┤
│ NetworkFirewall::LoggingConfiguration │ NetworkFirewall │
└───────────────────────────────────────┴───────────────────────────────────┘
1 resource, 1 type, 1 provider
Command "gc l -t NetworkFirewall::LoggingConfiguration" executed in 8s, 169 MB