Class: AWSCDK::WAFRegional::CfnWebACLAssociationProps

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
waf_regional/cfn_web_acl_association_props.rb

Overview

Properties for defining a CfnWebACLAssociation.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(resource_arn:, web_acl_id:) ⇒ CfnWebACLAssociationProps

Returns a new instance of CfnWebACLAssociationProps.

Parameters:

  • resource_arn (String)

    The Amazon Resource Name (ARN) of the resource to protect with the web ACL.

  • web_acl_id (String)

    A unique identifier (ID) for the web ACL.



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_arnString (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_idString (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_propertiesObject



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_jsiiObject



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