Class: AWSCDK::NetworkFirewall::CfnLoggingConfigurationProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::NetworkFirewall::CfnLoggingConfigurationProps
- Defined in:
- network_firewall/cfn_logging_configuration_props.rb
Overview
Properties for defining a CfnLoggingConfiguration.
Instance Attribute Summary collapse
- #enable_monitoring_dashboard ⇒ Boolean, ... readonly
-
#firewall_arn ⇒ String, AWSCDK::Interfaces::AWSNetworkfirewall::IFirewallRef
readonly
The Amazon Resource Name (ARN) of the firewallthat the logging configuration is associated with.
-
#firewall_name ⇒ String?
readonly
The name of the firewall that the logging configuration is associated with.
-
#logging_configuration ⇒ AWSCDK::IResolvable, AWSCDK::NetworkFirewall::CfnLoggingConfiguration::LoggingConfigurationProperty
readonly
Defines how AWS Network Firewall performs logging for a firewall.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(firewall_arn:, logging_configuration:, enable_monitoring_dashboard: nil, firewall_name: nil) ⇒ CfnLoggingConfigurationProps
constructor
A new instance of CfnLoggingConfigurationProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(firewall_arn:, logging_configuration:, enable_monitoring_dashboard: nil, firewall_name: nil) ⇒ CfnLoggingConfigurationProps
Returns a new instance of CfnLoggingConfigurationProps.
13 14 15 16 17 18 19 20 21 22 |
# File 'network_firewall/cfn_logging_configuration_props.rb', line 13 def initialize(firewall_arn:, logging_configuration:, enable_monitoring_dashboard: nil, firewall_name: nil) @firewall_arn = firewall_arn Jsii::Type.check_type(@firewall_arn, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoic3RyaW5nIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5pbnRlcmZhY2VzLmF3c19uZXR3b3JrZmlyZXdhbGwuSUZpcmV3YWxsUmVmIn1dfX0=")), "firewallArn") @logging_configuration = logging_configuration.is_a?(Hash) ? ::AWSCDK::NetworkFirewall::CfnLoggingConfiguration::LoggingConfigurationProperty.new(**logging_configuration.transform_keys(&:to_sym)) : logging_configuration Jsii::Type.check_type(@logging_configuration, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19uZXR3b3JrZmlyZXdhbGwuQ2ZuTG9nZ2luZ0NvbmZpZ3VyYXRpb24uTG9nZ2luZ0NvbmZpZ3VyYXRpb25Qcm9wZXJ0eSJ9XX19")), "loggingConfiguration") @enable_monitoring_dashboard = enable_monitoring_dashboard Jsii::Type.check_type(@enable_monitoring_dashboard, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoiYm9vbGVhbiJ9LHsiZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifV19fQ==")), "enableMonitoringDashboard") unless @enable_monitoring_dashboard.nil? @firewall_name = firewall_name Jsii::Type.check_type(@firewall_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "firewallName") unless @firewall_name.nil? end |
Instance Attribute Details
#enable_monitoring_dashboard ⇒ Boolean, ... (readonly)
38 39 40 |
# File 'network_firewall/cfn_logging_configuration_props.rb', line 38 def enable_monitoring_dashboard @enable_monitoring_dashboard end |
#firewall_arn ⇒ String, AWSCDK::Interfaces::AWSNetworkfirewall::IFirewallRef (readonly)
The Amazon Resource Name (ARN) of the firewallthat the logging configuration is associated with.
You can't change the firewall specification after you create the logging configuration.
30 31 32 |
# File 'network_firewall/cfn_logging_configuration_props.rb', line 30 def firewall_arn @firewall_arn end |
#firewall_name ⇒ String? (readonly)
The name of the firewall that the logging configuration is associated with.
You can't change the firewall specification after you create the logging configuration.
45 46 47 |
# File 'network_firewall/cfn_logging_configuration_props.rb', line 45 def firewall_name @firewall_name end |
#logging_configuration ⇒ AWSCDK::IResolvable, AWSCDK::NetworkFirewall::CfnLoggingConfiguration::LoggingConfigurationProperty (readonly)
Defines how AWS Network Firewall performs logging for a firewall.
35 36 37 |
# File 'network_firewall/cfn_logging_configuration_props.rb', line 35 def logging_configuration @logging_configuration end |
Class Method Details
.jsii_properties ⇒ Object
47 48 49 50 51 52 53 54 |
# File 'network_firewall/cfn_logging_configuration_props.rb', line 47 def self.jsii_properties { :firewall_arn => "firewallArn", :logging_configuration => "loggingConfiguration", :enable_monitoring_dashboard => "enableMonitoringDashboard", :firewall_name => "firewallName", } end |
Instance Method Details
#to_jsii ⇒ Object
56 57 58 59 60 61 62 63 64 65 |
# File 'network_firewall/cfn_logging_configuration_props.rb', line 56 def to_jsii result = {} result.merge!({ "firewallArn" => @firewall_arn, "loggingConfiguration" => @logging_configuration, "enableMonitoringDashboard" => @enable_monitoring_dashboard, "firewallName" => @firewall_name, }) result.compact end |