Interface CfnLoggingConfiguration.ILogDestinationConfigProperty
Defines where AWS Network Firewall sends logs for the firewall for one log type.
Namespace: Amazon.CDK.AWS.NetworkFirewall
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface ILogDestinationConfigProperty
Syntax (vb)
Public Interface 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
Properties
Log |
The named location for the logs, provided in a key:value mapping that is specific to the chosen destination type. |
Log |
The type of storage destination to send these logs to. |
Log |
The type of log to record. |
Properties
LogDestination
The named location for the logs, provided in a key:value mapping that is specific to the chosen destination type.
object LogDestination { get; }
Property Value
System.
Remarks
The following example specifies an Amazon S3 bucket named DOC-EXAMPLE-BUCKET
and the prefix alerts
:
"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.
string LogDestinationType { get; }
Property Value
System.
Remarks
You can send logs to an Amazon S3 bucket, a CloudWatch log group, or a Firehose delivery stream.
LogType
The type of log to record.
string LogType { get; }
Property Value
System.
Remarks
You can record the following types of logs from your Network Firewall stateful engine.