Class: AWSCDK::Interfaces::AWSWafv2::WebACLReference
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Interfaces::AWSWafv2::WebACLReference
- Defined in:
- interfaces/aws_wafv2/web_acl_reference.rb
Overview
A reference to a WebACL resource.
Instance Attribute Summary collapse
-
#scope ⇒ String
readonly
The Scope of the WebACL resource.
-
#web_acl_arn ⇒ String
readonly
The ARN of the WebACL resource.
-
#web_acl_id ⇒ String
readonly
The Id of the WebACL resource.
-
#web_acl_name ⇒ String
readonly
The Name of the WebACL resource.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(scope:, web_acl_arn:, web_acl_id:, web_acl_name:) ⇒ WebACLReference
constructor
A new instance of WebACLReference.
- #to_jsii ⇒ Object
Constructor Details
#initialize(scope:, web_acl_arn:, web_acl_id:, web_acl_name:) ⇒ WebACLReference
Returns a new instance of WebACLReference.
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
#scope ⇒ String (readonly)
The Scope of the WebACL resource.
25 26 27 |
# File 'interfaces/aws_wafv2/web_acl_reference.rb', line 25 def scope @scope end |
#web_acl_arn ⇒ String (readonly)
The ARN of the WebACL resource.
29 30 31 |
# File 'interfaces/aws_wafv2/web_acl_reference.rb', line 29 def web_acl_arn @web_acl_arn end |
#web_acl_id ⇒ String (readonly)
The Id of the WebACL resource.
33 34 35 |
# File 'interfaces/aws_wafv2/web_acl_reference.rb', line 33 def web_acl_id @web_acl_id end |
#web_acl_name ⇒ String (readonly)
The Name of the WebACL resource.
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_properties ⇒ Object
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_jsii ⇒ Object
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 |