Class: AWSCDK::Interfaces::AWSWafv2::RuleGroupReference
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Interfaces::AWSWafv2::RuleGroupReference
- Defined in:
- interfaces/aws_wafv2/rule_group_reference.rb
Overview
A reference to a RuleGroup resource.
Instance Attribute Summary collapse
-
#rule_group_arn ⇒ String
readonly
The ARN of the RuleGroup resource.
-
#rule_group_id ⇒ String
readonly
The Id of the RuleGroup resource.
-
#rule_group_name ⇒ String
readonly
The Name of the RuleGroup resource.
-
#scope ⇒ String
readonly
The Scope of the RuleGroup resource.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(rule_group_arn:, rule_group_id:, rule_group_name:, scope:) ⇒ RuleGroupReference
constructor
A new instance of RuleGroupReference.
- #to_jsii ⇒ Object
Constructor Details
#initialize(rule_group_arn:, rule_group_id:, rule_group_name:, scope:) ⇒ RuleGroupReference
Returns a new instance of RuleGroupReference.
11 12 13 14 15 16 17 18 19 20 |
# File 'interfaces/aws_wafv2/rule_group_reference.rb', line 11 def initialize(rule_group_arn:, rule_group_id:, rule_group_name:, scope:) @rule_group_arn = rule_group_arn Jsii::Type.check_type(@rule_group_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "ruleGroupArn") @rule_group_id = rule_group_id Jsii::Type.check_type(@rule_group_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "ruleGroupId") @rule_group_name = rule_group_name Jsii::Type.check_type(@rule_group_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "ruleGroupName") @scope = scope Jsii::Type.check_type(@scope, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "scope") end |
Instance Attribute Details
#rule_group_arn ⇒ String (readonly)
The ARN of the RuleGroup resource.
25 26 27 |
# File 'interfaces/aws_wafv2/rule_group_reference.rb', line 25 def rule_group_arn @rule_group_arn end |
#rule_group_id ⇒ String (readonly)
The Id of the RuleGroup resource.
29 30 31 |
# File 'interfaces/aws_wafv2/rule_group_reference.rb', line 29 def rule_group_id @rule_group_id end |
#rule_group_name ⇒ String (readonly)
The Name of the RuleGroup resource.
33 34 35 |
# File 'interfaces/aws_wafv2/rule_group_reference.rb', line 33 def rule_group_name @rule_group_name end |
#scope ⇒ String (readonly)
The Scope of the RuleGroup resource.
37 38 39 |
# File 'interfaces/aws_wafv2/rule_group_reference.rb', line 37 def scope @scope end |
Class Method Details
.jsii_properties ⇒ Object
39 40 41 42 43 44 45 46 |
# File 'interfaces/aws_wafv2/rule_group_reference.rb', line 39 def self.jsii_properties { :rule_group_arn => "ruleGroupArn", :rule_group_id => "ruleGroupId", :rule_group_name => "ruleGroupName", :scope => "scope", } end |
Instance Method Details
#to_jsii ⇒ Object
48 49 50 51 52 53 54 55 56 57 |
# File 'interfaces/aws_wafv2/rule_group_reference.rb', line 48 def to_jsii result = {} result.merge!({ "ruleGroupArn" => @rule_group_arn, "ruleGroupId" => @rule_group_id, "ruleGroupName" => @rule_group_name, "scope" => @scope, }) result.compact end |