Class: AWSCDK::WAFv2::CfnWebACLAssociationProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::WAFv2::CfnWebACLAssociationProps
- Defined in:
- wa_fv2/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 associate with the web ACL.
-
#web_acl_arn ⇒ String
readonly
The Amazon Resource Name (ARN) of the web ACL that you want to associate with the resource.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(resource_arn:, web_acl_arn:) ⇒ CfnWebACLAssociationProps
constructor
A new instance of CfnWebACLAssociationProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(resource_arn:, web_acl_arn:) ⇒ CfnWebACLAssociationProps
Returns a new instance of CfnWebACLAssociationProps.
11 12 13 14 15 16 |
# File 'wa_fv2/cfn_web_acl_association_props.rb', line 11 def initialize(resource_arn:, web_acl_arn:) @resource_arn = resource_arn Jsii::Type.check_type(@resource_arn, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoic3RyaW5nIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5pbnRlcmZhY2VzLmF3c19hcHBzeW5jLklHcmFwaFFMQXBpUmVmIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5pbnRlcmZhY2VzLmF3c19lbGFzdGljbG9hZGJhbGFuY2luZ3YyLklMb2FkQmFsYW5jZXJSZWYifSx7ImZxbiI6ImF3cy1jZGstbGliLmludGVyZmFjZXMuYXdzX3dhZnYyLklXZWJBQ0xSZWYifV19fQ==")), "resourceArn") @web_acl_arn = web_acl_arn Jsii::Type.check_type(@web_acl_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "webAclArn") end |
Instance Attribute Details
#resource_arn ⇒ String, ... (readonly)
The Amazon Resource Name (ARN) of the resource to associate with the web ACL.
The ARN must be in one of the following formats:
- For an Application Load Balancer:
arn: *partition* :elasticloadbalancing: *region* : *account-id* :loadbalancer/app/ *load-balancer-name* / *load-balancer-id* - For an Amazon API Gateway REST API:
arn: *partition* :apigateway: *region* ::/restapis/ *api-id* /stages/ *stage-name* - For an AWS AppSync GraphQL API:
arn: *partition* :appsync: *region* : *account-id* :apis/ *GraphQLApiId* - For an Amazon Cognito user pool:
arn: *partition* :cognito-idp: *region* : *account-id* :userpool/ *user-pool-id* - For an AWS App Runner service:
arn: *partition* :apprunner: *region* : *account-id* :service/ *apprunner-service-name* / *apprunner-service-id* - For an AWS Verified Access instance:
arn: *partition* :ec2: *region* : *account-id* :verified-access-instance/ *instance-id* - For an AWS Amplify instance:
arn: *partition* :amplify: *region* : *account-id* :apps/ *app-id*
32 33 34 |
# File 'wa_fv2/cfn_web_acl_association_props.rb', line 32 def resource_arn @resource_arn end |
#web_acl_arn ⇒ String (readonly)
The Amazon Resource Name (ARN) of the web ACL that you want to associate with the resource.
37 38 39 |
# File 'wa_fv2/cfn_web_acl_association_props.rb', line 37 def web_acl_arn @web_acl_arn end |
Class Method Details
.jsii_properties ⇒ Object
39 40 41 42 43 44 |
# File 'wa_fv2/cfn_web_acl_association_props.rb', line 39 def self.jsii_properties { :resource_arn => "resourceArn", :web_acl_arn => "webAclArn", } end |
Instance Method Details
#to_jsii ⇒ Object
46 47 48 49 50 51 52 53 |
# File 'wa_fv2/cfn_web_acl_association_props.rb', line 46 def to_jsii result = {} result.merge!({ "resourceArn" => @resource_arn, "webAclArn" => @web_acl_arn, }) result.compact end |