Class: AWSCDK::WAFRegional::CfnWebACLAssociationProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::WAFRegional::CfnWebACLAssociationProps
- Defined in:
- waf_regional/cfn_web_acl_association_props.rb
Overview
Properties for defining a CfnWebACLAssociation.
Instance Attribute Summary collapse
-
#resource_arn ⇒ String
readonly
The Amazon Resource Name (ARN) of the resource to protect with the web ACL.
-
#web_acl_id ⇒ String
readonly
A unique identifier (ID) for the web ACL.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(resource_arn:, web_acl_id:) ⇒ CfnWebACLAssociationProps
constructor
A new instance of CfnWebACLAssociationProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(resource_arn:, web_acl_id:) ⇒ CfnWebACLAssociationProps
Returns a new instance of CfnWebACLAssociationProps.
11 12 13 14 15 16 |
# File 'waf_regional/cfn_web_acl_association_props.rb', line 11 def initialize(resource_arn:, web_acl_id:) @resource_arn = resource_arn Jsii::Type.check_type(@resource_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "resourceArn") @web_acl_id = web_acl_id Jsii::Type.check_type(@web_acl_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "webAclId") end |
Instance Attribute Details
#resource_arn ⇒ String (readonly)
The Amazon Resource Name (ARN) of the resource to protect with the web ACL.
22 23 24 |
# File 'waf_regional/cfn_web_acl_association_props.rb', line 22 def resource_arn @resource_arn end |
#web_acl_id ⇒ String (readonly)
A unique identifier (ID) for the web ACL.
27 28 29 |
# File 'waf_regional/cfn_web_acl_association_props.rb', line 27 def web_acl_id @web_acl_id end |
Class Method Details
.jsii_properties ⇒ Object
29 30 31 32 33 34 |
# File 'waf_regional/cfn_web_acl_association_props.rb', line 29 def self.jsii_properties { :resource_arn => "resourceArn", :web_acl_id => "webAclId", } end |
Instance Method Details
#to_jsii ⇒ Object
36 37 38 39 40 41 42 43 |
# File 'waf_regional/cfn_web_acl_association_props.rb', line 36 def to_jsii result = {} result.merge!({ "resourceArn" => @resource_arn, "webAclId" => @web_acl_id, }) result.compact end |