Class: AWSCDK::Route53Resolver::CfnFirewallRuleGroup::FirewallRuleTypeProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Route53Resolver::CfnFirewallRuleGroup::FirewallRuleTypeProperty
- Defined in:
- route53_resolver/cfn_firewall_rule_group.rb
Overview
Firewall rule type union.
Exactly one member must be set. Mutually exclusive with FirewallDomainListId and DnsThreatProtection/ConfidenceThreshold.
Instance Attribute Summary collapse
-
#firewall_advanced_content_category ⇒ AWSCDK::IResolvable, ...
readonly
Configuration for an advanced content category rule type.
-
#firewall_advanced_threat_category ⇒ AWSCDK::IResolvable, ...
readonly
Configuration for an advanced threat category rule type.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(firewall_advanced_content_category: nil, firewall_advanced_threat_category: nil) ⇒ FirewallRuleTypeProperty
constructor
A new instance of FirewallRuleTypeProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(firewall_advanced_content_category: nil, firewall_advanced_threat_category: nil) ⇒ FirewallRuleTypeProperty
Returns a new instance of FirewallRuleTypeProperty.
898 899 900 901 902 903 |
# File 'route53_resolver/cfn_firewall_rule_group.rb', line 898 def initialize(firewall_advanced_content_category: nil, firewall_advanced_threat_category: nil) @firewall_advanced_content_category = firewall_advanced_content_category.is_a?(Hash) ? ::AWSCDK::Route53Resolver::CfnFirewallRuleGroup::FirewallAdvancedContentCategoryConfigProperty.new(**firewall_advanced_content_category.transform_keys(&:to_sym)) : firewall_advanced_content_category Jsii::Type.check_type(@firewall_advanced_content_category, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19yb3V0ZTUzcmVzb2x2ZXIuQ2ZuRmlyZXdhbGxSdWxlR3JvdXAuRmlyZXdhbGxBZHZhbmNlZENvbnRlbnRDYXRlZ29yeUNvbmZpZ1Byb3BlcnR5In1dfX0=")), "firewallAdvancedContentCategory") unless @firewall_advanced_content_category.nil? @firewall_advanced_threat_category = firewall_advanced_threat_category.is_a?(Hash) ? ::AWSCDK::Route53Resolver::CfnFirewallRuleGroup::FirewallAdvancedThreatCategoryConfigProperty.new(**firewall_advanced_threat_category.transform_keys(&:to_sym)) : firewall_advanced_threat_category Jsii::Type.check_type(@firewall_advanced_threat_category, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19yb3V0ZTUzcmVzb2x2ZXIuQ2ZuRmlyZXdhbGxSdWxlR3JvdXAuRmlyZXdhbGxBZHZhbmNlZFRocmVhdENhdGVnb3J5Q29uZmlnUHJvcGVydHkifV19fQ==")), "firewallAdvancedThreatCategory") unless @firewall_advanced_threat_category.nil? end |
Instance Attribute Details
#firewall_advanced_content_category ⇒ AWSCDK::IResolvable, ... (readonly)
Configuration for an advanced content category rule type.
909 910 911 |
# File 'route53_resolver/cfn_firewall_rule_group.rb', line 909 def firewall_advanced_content_category @firewall_advanced_content_category end |
#firewall_advanced_threat_category ⇒ AWSCDK::IResolvable, ... (readonly)
Configuration for an advanced threat category rule type.
914 915 916 |
# File 'route53_resolver/cfn_firewall_rule_group.rb', line 914 def firewall_advanced_threat_category @firewall_advanced_threat_category end |
Class Method Details
.jsii_properties ⇒ Object
916 917 918 919 920 921 |
# File 'route53_resolver/cfn_firewall_rule_group.rb', line 916 def self.jsii_properties { :firewall_advanced_content_category => "firewallAdvancedContentCategory", :firewall_advanced_threat_category => "firewallAdvancedThreatCategory", } end |
Instance Method Details
#to_jsii ⇒ Object
923 924 925 926 927 928 929 930 |
# File 'route53_resolver/cfn_firewall_rule_group.rb', line 923 def to_jsii result = {} result.merge!({ "firewallAdvancedContentCategory" => @firewall_advanced_content_category, "firewallAdvancedThreatCategory" => @firewall_advanced_threat_category, }) result.compact end |