Class: AWSCDK::Interfaces::AWSWafv2::IPSetReference

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

Overview

A reference to a IPSet resource.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(ip_set_arn:, ip_set_id:, ip_set_name:, scope:) ⇒ IPSetReference

Returns a new instance of IPSetReference.

Parameters:

  • ip_set_arn (String)

    The ARN of the IPSet resource.

  • ip_set_id (String)

    The Id of the IPSet resource.

  • ip_set_name (String)

    The Name of the IPSet resource.

  • scope (String)

    The Scope of the IPSet resource.



11
12
13
14
15
16
17
18
19
20
# File 'interfaces/aws_wafv2/ip_set_reference.rb', line 11

def initialize(ip_set_arn:, ip_set_id:, ip_set_name:, scope:)
  @ip_set_arn = ip_set_arn
  Jsii::Type.check_type(@ip_set_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "ipSetArn")
  @ip_set_id = ip_set_id
  Jsii::Type.check_type(@ip_set_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "ipSetId")
  @ip_set_name = ip_set_name
  Jsii::Type.check_type(@ip_set_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "ipSetName")
  @scope = scope
  Jsii::Type.check_type(@scope, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "scope")
end

Instance Attribute Details

#ip_set_arnString (readonly)

The ARN of the IPSet resource.

Returns:

  • (String)


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

def ip_set_arn
  @ip_set_arn
end

#ip_set_idString (readonly)

The Id of the IPSet resource.

Returns:

  • (String)


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

def ip_set_id
  @ip_set_id
end

#ip_set_nameString (readonly)

The Name of the IPSet resource.

Returns:

  • (String)


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

def ip_set_name
  @ip_set_name
end

#scopeString (readonly)

The Scope of the IPSet resource.

Returns:

  • (String)


37
38
39
# File 'interfaces/aws_wafv2/ip_set_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/ip_set_reference.rb', line 39

def self.jsii_properties
  {
    :ip_set_arn => "ipSetArn",
    :ip_set_id => "ipSetId",
    :ip_set_name => "ipSetName",
    :scope => "scope",
  }
end

Instance Method Details

#to_jsiiObject



48
49
50
51
52
53
54
55
56
57
# File 'interfaces/aws_wafv2/ip_set_reference.rb', line 48

def to_jsii
  result = {}
  result.merge!({
    "ipSetArn" => @ip_set_arn,
    "ipSetId" => @ip_set_id,
    "ipSetName" => @ip_set_name,
    "scope" => @scope,
  })
  result.compact
end