Class: AWSCDK::Interfaces::AWSWafv2::RuleGroupReference

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
interfaces/aws_wafv2/rule_group_reference.rb

Overview

A reference to a RuleGroup resource.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(rule_group_arn:, rule_group_id:, rule_group_name:, scope:) ⇒ RuleGroupReference

Returns a new instance of RuleGroupReference.

Parameters:

  • rule_group_arn (String)

    The ARN of the RuleGroup resource.

  • rule_group_id (String)

    The Id of the RuleGroup resource.

  • rule_group_name (String)

    The Name of the RuleGroup resource.

  • scope (String)

    The Scope of the RuleGroup resource.



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_arnString (readonly)

The ARN of the RuleGroup resource.

Returns:

  • (String)


25
26
27
# File 'interfaces/aws_wafv2/rule_group_reference.rb', line 25

def rule_group_arn
  @rule_group_arn
end

#rule_group_idString (readonly)

The Id of the RuleGroup resource.

Returns:

  • (String)


29
30
31
# File 'interfaces/aws_wafv2/rule_group_reference.rb', line 29

def rule_group_id
  @rule_group_id
end

#rule_group_nameString (readonly)

The Name of the RuleGroup resource.

Returns:

  • (String)


33
34
35
# File 'interfaces/aws_wafv2/rule_group_reference.rb', line 33

def rule_group_name
  @rule_group_name
end

#scopeString (readonly)

The Scope of the RuleGroup resource.

Returns:

  • (String)


37
38
39
# File 'interfaces/aws_wafv2/rule_group_reference.rb', line 37

def scope
  @scope
end

Class Method Details

.jsii_propertiesObject



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_jsiiObject



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