Class: AWSCDK::Route53GlobalResolver::CfnFirewallRuleProps

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
route53_global_resolver/cfn_firewall_rule_props.rb

Overview

Properties for defining a CfnFirewallRule.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(action:, dns_view_id:, name:, block_override_dns_type: nil, block_override_domain: nil, block_override_ttl: nil, block_response: nil, client_token: nil, confidence_threshold: nil, description: nil, dns_advanced_protection: nil, firewall_domain_list_id: nil, priority: nil, q_type: nil) ⇒ CfnFirewallRuleProps

Returns a new instance of CfnFirewallRuleProps.

Parameters:

  • action (String)
  • dns_view_id (String)
  • name (String)
  • block_override_dns_type (String, nil) (defaults to: nil)
  • block_override_domain (String, nil) (defaults to: nil)
  • block_override_ttl (Numeric, nil) (defaults to: nil)
  • block_response (String, nil) (defaults to: nil)
  • client_token (String, nil) (defaults to: nil)
  • confidence_threshold (String, nil) (defaults to: nil)
  • description (String, nil) (defaults to: nil)
  • dns_advanced_protection (String, nil) (defaults to: nil)
  • firewall_domain_list_id (String, nil) (defaults to: nil)
  • priority (Numeric, nil) (defaults to: nil)
  • q_type (String, nil) (defaults to: nil)


23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# File 'route53_global_resolver/cfn_firewall_rule_props.rb', line 23

def initialize(action:, dns_view_id:, name:, block_override_dns_type: nil, block_override_domain: nil, block_override_ttl: nil, block_response: nil, client_token: nil, confidence_threshold: nil, description: nil, dns_advanced_protection: nil, firewall_domain_list_id: nil, priority: nil, q_type: nil)
  @action = action
  Jsii::Type.check_type(@action, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "action")
  @dns_view_id = dns_view_id
  Jsii::Type.check_type(@dns_view_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "dnsViewId")
  @name = name
  Jsii::Type.check_type(@name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name")
  @block_override_dns_type = block_override_dns_type
  Jsii::Type.check_type(@block_override_dns_type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "blockOverrideDnsType") unless @block_override_dns_type.nil?
  @block_override_domain = block_override_domain
  Jsii::Type.check_type(@block_override_domain, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "blockOverrideDomain") unless @block_override_domain.nil?
  @block_override_ttl = block_override_ttl
  Jsii::Type.check_type(@block_override_ttl, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "blockOverrideTtl") unless @block_override_ttl.nil?
  @block_response = block_response
  Jsii::Type.check_type(@block_response, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "blockResponse") unless @block_response.nil?
  @client_token = client_token
  Jsii::Type.check_type(@client_token, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "clientToken") unless @client_token.nil?
  @confidence_threshold = confidence_threshold
  Jsii::Type.check_type(@confidence_threshold, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "confidenceThreshold") unless @confidence_threshold.nil?
  @description = description
  Jsii::Type.check_type(@description, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "description") unless @description.nil?
  @dns_advanced_protection = dns_advanced_protection
  Jsii::Type.check_type(@dns_advanced_protection, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "dnsAdvancedProtection") unless @dns_advanced_protection.nil?
  @firewall_domain_list_id = firewall_domain_list_id
  Jsii::Type.check_type(@firewall_domain_list_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "firewallDomainListId") unless @firewall_domain_list_id.nil?
  @priority = priority
  Jsii::Type.check_type(@priority, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "priority") unless @priority.nil?
  @q_type = q_type
  Jsii::Type.check_type(@q_type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "qType") unless @q_type.nil?
end

Instance Attribute Details

#actionString (readonly)



56
57
58
# File 'route53_global_resolver/cfn_firewall_rule_props.rb', line 56

def action
  @action
end

#block_override_dns_typeString? (readonly)



65
66
67
# File 'route53_global_resolver/cfn_firewall_rule_props.rb', line 65

def block_override_dns_type
  @block_override_dns_type
end

#block_override_domainString? (readonly)



68
69
70
# File 'route53_global_resolver/cfn_firewall_rule_props.rb', line 68

def block_override_domain
  @block_override_domain
end

#block_override_ttlNumeric? (readonly)



71
72
73
# File 'route53_global_resolver/cfn_firewall_rule_props.rb', line 71

def block_override_ttl
  @block_override_ttl
end

#block_responseString? (readonly)



74
75
76
# File 'route53_global_resolver/cfn_firewall_rule_props.rb', line 74

def block_response
  @block_response
end

#client_tokenString? (readonly)



77
78
79
# File 'route53_global_resolver/cfn_firewall_rule_props.rb', line 77

def client_token
  @client_token
end

#confidence_thresholdString? (readonly)



80
81
82
# File 'route53_global_resolver/cfn_firewall_rule_props.rb', line 80

def confidence_threshold
  @confidence_threshold
end

#descriptionString? (readonly)



83
84
85
# File 'route53_global_resolver/cfn_firewall_rule_props.rb', line 83

def description
  @description
end

#dns_advanced_protectionString? (readonly)



86
87
88
# File 'route53_global_resolver/cfn_firewall_rule_props.rb', line 86

def dns_advanced_protection
  @dns_advanced_protection
end

#dns_view_idString (readonly)



59
60
61
# File 'route53_global_resolver/cfn_firewall_rule_props.rb', line 59

def dns_view_id
  @dns_view_id
end

#firewall_domain_list_idString? (readonly)



89
90
91
# File 'route53_global_resolver/cfn_firewall_rule_props.rb', line 89

def firewall_domain_list_id
  @firewall_domain_list_id
end

#nameString (readonly)



62
63
64
# File 'route53_global_resolver/cfn_firewall_rule_props.rb', line 62

def name
  @name
end

#priorityNumeric? (readonly)



92
93
94
# File 'route53_global_resolver/cfn_firewall_rule_props.rb', line 92

def priority
  @priority
end

#q_typeString? (readonly)



95
96
97
# File 'route53_global_resolver/cfn_firewall_rule_props.rb', line 95

def q_type
  @q_type
end

Class Method Details

.jsii_propertiesObject



97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
# File 'route53_global_resolver/cfn_firewall_rule_props.rb', line 97

def self.jsii_properties
  {
    :action => "action",
    :dns_view_id => "dnsViewId",
    :name => "name",
    :block_override_dns_type => "blockOverrideDnsType",
    :block_override_domain => "blockOverrideDomain",
    :block_override_ttl => "blockOverrideTtl",
    :block_response => "blockResponse",
    :client_token => "clientToken",
    :confidence_threshold => "confidenceThreshold",
    :description => "description",
    :dns_advanced_protection => "dnsAdvancedProtection",
    :firewall_domain_list_id => "firewallDomainListId",
    :priority => "priority",
    :q_type => "qType",
  }
end

Instance Method Details

#to_jsiiObject



116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
# File 'route53_global_resolver/cfn_firewall_rule_props.rb', line 116

def to_jsii
  result = {}
  result.merge!({
    "action" => @action,
    "dnsViewId" => @dns_view_id,
    "name" => @name,
    "blockOverrideDnsType" => @block_override_dns_type,
    "blockOverrideDomain" => @block_override_domain,
    "blockOverrideTtl" => @block_override_ttl,
    "blockResponse" => @block_response,
    "clientToken" => @client_token,
    "confidenceThreshold" => @confidence_threshold,
    "description" => @description,
    "dnsAdvancedProtection" => @dns_advanced_protection,
    "firewallDomainListId" => @firewall_domain_list_id,
    "priority" => @priority,
    "qType" => @q_type,
  })
  result.compact
end