Class CfnLoggingConfigurationPropsMixin.LogDestinationConfigProperty
Defines where AWS Network Firewall sends logs for the firewall for one log type.
Inherited Members
Namespace: Amazon.CDK.CfnPropertyMixins.AWS.NetworkFirewall
Assembly: Amazon.CDK.CfnPropertyMixins.dll
Syntax (csharp)
public class CfnLoggingConfigurationPropsMixin.LogDestinationConfigProperty : CfnLoggingConfigurationPropsMixin.ILogDestinationConfigProperty
Syntax (vb)
Public Class CfnLoggingConfigurationPropsMixin.LogDestinationConfigProperty Implements CfnLoggingConfigurationPropsMixin.ILogDestinationConfigProperty
Remarks
This is used in logging configuration. 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.CfnPropertyMixins.AWS.NetworkFirewall;
var logDestinationConfigProperty = new LogDestinationConfigProperty {
LogDestination = new Dictionary<string, string> {
{ "logDestinationKey", "logDestination" }
},
LogDestinationType = "logDestinationType",
LogType = "logType"
};
Synopsis
Constructors
| LogDestinationConfigProperty() | Defines where AWS Network Firewall sends logs for the firewall for one log type. |
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 record. |
Constructors
LogDestinationConfigProperty()
Defines where AWS Network Firewall sends logs for the firewall for one log type.
public LogDestinationConfigProperty()
Remarks
This is used in logging configuration. 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.CfnPropertyMixins.AWS.NetworkFirewall;
var logDestinationConfigProperty = new LogDestinationConfigProperty {
LogDestination = new Dictionary<string, string> {
{ "logDestinationKey", "logDestination" }
},
LogDestinationType = "logDestinationType",
LogType = "logType"
};
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
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" }
Type union: either Dictionary<string, string> or IResolvable
LogDestinationType
The type of storage destination to send these logs to.
public string? LogDestinationType { get; set; }
Property Value
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.
public string? LogType { get; set; }
Property Value
Remarks
You can record the following types of logs from your Network Firewall stateful engine.