Class CfnLoggingConfiguration
A CloudFormation AWS::NetworkFirewall::LoggingConfiguration
.
Inherited Members
Namespace: Amazon.CDK.AWS.NetworkFirewall
Assembly: Amazon.CDK.AWS.NetworkFirewall.dll
Syntax (csharp)
public class CfnLoggingConfiguration : CfnResource, IConstruct, IDependable, IInspectable
Syntax (vb)
Public Class CfnLoggingConfiguration
Inherits CfnResource
Implements IConstruct, IDependable, IInspectable
Remarks
Use the LoggingConfiguration
to define the destinations and logging options for an Firewall
.
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(Construct, String, ICfnLoggingConfigurationProps) | Create a new |
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 |
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(Construct, String, ICfnLoggingConfigurationProps)
Create a new AWS::NetworkFirewall::LoggingConfiguration
.
public CfnLoggingConfiguration(Construct scope, string id, ICfnLoggingConfigurationProps props)
Parameters
- scope Construct
- scope in which this resource is defined.
- id System.String
- scoped id of the resource.
- props ICfnLoggingConfigurationProps
- resource properties.
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
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
Remarks
You can't change the firewall specification after you create the logging configuration.
FirewallName
The name of the firewall that the logging configuration is associated with.
public virtual string FirewallName { get; set; }
Property Value
System.String
Remarks
You can't change the firewall specification after you create the logging configuration.
LoggingConfiguration
Defines how AWS Network Firewall performs logging for a Firewall
.
public virtual object LoggingConfiguration { get; set; }
Property Value
System.Object
Remarks
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>