Class: AWSCDK::Interfaces::AWSWafv2::WebACLReference

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

Overview

A reference to a WebACL resource.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(scope:, web_acl_arn:, web_acl_id:, web_acl_name:) ⇒ WebACLReference

Returns a new instance of WebACLReference.

Parameters:

  • scope (String)

    The Scope of the WebACL resource.

  • web_acl_arn (String)

    The ARN of the WebACL resource.

  • web_acl_id (String)

    The Id of the WebACL resource.

  • web_acl_name (String)

    The Name of the WebACL resource.



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

def initialize(scope:, web_acl_arn:, web_acl_id:, web_acl_name:)
  @scope = scope
  Jsii::Type.check_type(@scope, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "scope")
  @web_acl_arn = web_acl_arn
  Jsii::Type.check_type(@web_acl_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "webAclArn")
  @web_acl_id = web_acl_id
  Jsii::Type.check_type(@web_acl_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "webAclId")
  @web_acl_name = web_acl_name
  Jsii::Type.check_type(@web_acl_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "webAclName")
end

Instance Attribute Details

#scopeString (readonly)

The Scope of the WebACL resource.

Returns:

  • (String)


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

def scope
  @scope
end

#web_acl_arnString (readonly)

The ARN of the WebACL resource.

Returns:

  • (String)


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

def web_acl_arn
  @web_acl_arn
end

#web_acl_idString (readonly)

The Id of the WebACL resource.

Returns:

  • (String)


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

def web_acl_id
  @web_acl_id
end

#web_acl_nameString (readonly)

The Name of the WebACL resource.

Returns:

  • (String)


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

def web_acl_name
  @web_acl_name
end

Class Method Details

.jsii_propertiesObject



39
40
41
42
43
44
45
46
# File 'interfaces/aws_wafv2/web_acl_reference.rb', line 39

def self.jsii_properties
  {
    :scope => "scope",
    :web_acl_arn => "webAclArn",
    :web_acl_id => "webAclId",
    :web_acl_name => "webAclName",
  }
end

Instance Method Details

#to_jsiiObject



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

def to_jsii
  result = {}
  result.merge!({
    "scope" => @scope,
    "webAclArn" => @web_acl_arn,
    "webAclId" => @web_acl_id,
    "webAclName" => @web_acl_name,
  })
  result.compact
end