Class CfnLoggingConfiguration
Use the LoggingConfiguration
to define the destinations and logging options for an Firewall
.
Implements
Inherited Members
Namespace: Amazon.CDK.AWS.NetworkFirewall
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnLoggingConfiguration : CfnResource, IInspectable
Syntax (vb)
Public Class CfnLoggingConfiguration
Inherits CfnResource
Implements IInspectable
Remarks
You must change the logging configuration by changing one LogDestinationConfig
setting at a time in your LogDestinationConfigs
.
You can make only one of the following changes to your LoggingConfiguration
resource:
You can't change the LogDestinationType
or LogType
in a LogDestinationConfig
. To change these settings, delete the existing LogDestinationConfig
object and create a new one, in two separate modifications.
CloudformationResource: AWS::NetworkFirewall::LoggingConfiguration
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 cfnLoggingConfiguration = new CfnLoggingConfiguration(this, "MyCfnLoggingConfiguration", new CfnLoggingConfigurationProps {
FirewallArn = "firewallArn",
LoggingConfiguration = new LoggingConfigurationProperty {
LogDestinationConfigs = new [] { new LogDestinationConfigProperty {
LogDestination = new Dictionary<string, string> {
{ "logDestinationKey", "logDestination" }
},
LogDestinationType = "logDestinationType",
LogType = "logType"
} }
},
// the properties below are optional
FirewallName = "firewallName"
});
Synopsis
Constructors
CfnLoggingConfiguration(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
CfnLoggingConfiguration(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
CfnLoggingConfiguration(Construct, String, ICfnLoggingConfigurationProps) |
Properties
CFN_RESOURCE_TYPE_NAME | The CloudFormation resource type name for this resource class. |
CfnProperties | |
FirewallArn | The Amazon Resource Name (ARN) of the |
FirewallName | The name of the firewall that the logging configuration is associated with. |
LoggingConfiguration | Defines how AWS Network Firewall performs logging for a |
Methods
Inspect(TreeInspector) | Examines the CloudFormation resource and discloses attributes. |
RenderProperties(IDictionary<String, Object>) |
Constructors
CfnLoggingConfiguration(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected CfnLoggingConfiguration(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
CfnLoggingConfiguration(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected CfnLoggingConfiguration(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
CfnLoggingConfiguration(Construct, String, ICfnLoggingConfigurationProps)
public CfnLoggingConfiguration(Construct scope, string id, ICfnLoggingConfigurationProps props)
Parameters
- scope Constructs.Construct
Scope in which this resource is defined.
- id System.String
Construct identifier for this resource (unique in its scope).
- props ICfnLoggingConfigurationProps
Resource properties.
Properties
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
public static string CFN_RESOURCE_TYPE_NAME { get; }
Property Value
System.String
CfnProperties
protected override IDictionary<string, object> CfnProperties { get; }
Property Value
System.Collections.Generic.IDictionary<System.String, System.Object>
Overrides
FirewallArn
The Amazon Resource Name (ARN) of the Firewall
that the logging configuration is associated with.
public virtual string FirewallArn { get; set; }
Property Value
System.String
FirewallName
The name of the firewall that the logging configuration is associated with.
public virtual string FirewallName { get; set; }
Property Value
System.String
LoggingConfiguration
Defines how AWS Network Firewall performs logging for a Firewall
.
public virtual object LoggingConfiguration { get; set; }
Property Value
System.Object
Methods
Inspect(TreeInspector)
Examines the CloudFormation resource and discloses attributes.
public virtual void Inspect(TreeInspector inspector)
Parameters
- inspector TreeInspector
tree inspector to collect and process attributes.
RenderProperties(IDictionary<String, Object>)
protected override IDictionary<string, object> RenderProperties(IDictionary<string, object> props)
Parameters
- props System.Collections.Generic.IDictionary<System.String, System.Object>
Returns
System.Collections.Generic.IDictionary<System.String, System.Object>