Class: AWSCDK::Interfaces::AWSWAF::RuleReference
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Interfaces::AWSWAF::RuleReference
- Defined in:
- interfaces/awswaf/rule_reference.rb
Overview
A reference to a Rule resource.
Instance Attribute Summary collapse
-
#rule_id ⇒ String
readonly
The Id of the Rule resource.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(rule_id:) ⇒ RuleReference
constructor
A new instance of RuleReference.
- #to_jsii ⇒ Object
Constructor Details
#initialize(rule_id:) ⇒ RuleReference
Returns a new instance of RuleReference.
8 9 10 11 |
# File 'interfaces/awswaf/rule_reference.rb', line 8 def initialize(rule_id:) @rule_id = rule_id Jsii::Type.check_type(@rule_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "ruleId") end |
Instance Attribute Details
#rule_id ⇒ String (readonly)
The Id of the Rule resource.
16 17 18 |
# File 'interfaces/awswaf/rule_reference.rb', line 16 def rule_id @rule_id end |
Class Method Details
.jsii_properties ⇒ Object
18 19 20 21 22 |
# File 'interfaces/awswaf/rule_reference.rb', line 18 def self.jsii_properties { :rule_id => "ruleId", } end |
Instance Method Details
#to_jsii ⇒ Object
24 25 26 27 28 29 30 |
# File 'interfaces/awswaf/rule_reference.rb', line 24 def to_jsii result = {} result.merge!({ "ruleId" => @rule_id, }) result.compact end |