Class CfnLoggingConfiguration.LogDestinationConfigProperty
Defines where AWS Network Firewall sends logs for the firewall for one log type.
Inheritance
Namespace: Amazon.CDK.AWS.NetworkFirewall
Assembly: Amazon.CDK.AWS.NetworkFirewall.dll
Syntax (csharp)
public class LogDestinationConfigProperty : Object, CfnLoggingConfiguration.ILogDestinationConfigProperty
Syntax (vb)
Public Class LogDestinationConfigProperty
Inherits Object
Implements CfnLoggingConfiguration.ILogDestinationConfigProperty
Remarks
This is used in LoggingConfiguration
. You can send each type of log to an Amazon S3 bucket, a CloudWatch log group, or a Kinesis Data Firehose delivery stream.
Network Firewall generates logs for stateful rule groups. You can save alert and flow log types. The stateful rules engine records flow logs for all network traffic that it receives. It records alert logs for traffic that matches stateful rules that have the rule action set to DROP
or ALERT
.
ExampleMetadata: fixture=_generated
Examples
// 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 logDestinationConfigProperty = new LogDestinationConfigProperty {
LogDestination = new Dictionary<string, string> {
{ "logDestinationKey", "logDestination" }
},
LogDestinationType = "logDestinationType",
LogType = "logType"
};
Synopsis
Constructors
LogDestinationConfigProperty() |
Properties
LogDestination | The named location for the logs, provided in a key:value mapping that is specific to the chosen destination type. |
LogDestinationType | The type of storage destination to send these logs to. |
LogType | The type of log to send. |
Constructors
LogDestinationConfigProperty()
public LogDestinationConfigProperty()
Properties
LogDestination
The named location for the logs, provided in a key:value mapping that is specific to the chosen destination type.
public object LogDestination { get; set; }
Property Value
System.Object
Remarks
"LogDestination": { "bucketName": "DOC-EXAMPLE-BUCKET", "prefix": "alerts" }
"LogDestination": { "logGroup": "alert-log-group" }
"LogDestination": { "deliveryStream": "alert-delivery-stream" }
LogDestinationType
The type of storage destination to send these logs to.
public string LogDestinationType { get; set; }
Property Value
System.String
Remarks
You can send logs to an Amazon S3 bucket, a CloudWatch log group, or a Kinesis Data Firehose delivery stream.
LogType
The type of log to send.
public string LogType { get; set; }
Property Value
System.String
Remarks
Alert logs report traffic that matches a stateful rule with an action setting that sends an alert log message. Flow logs are standard network traffic flow logs.