You are viewing documentation for version 3 of the AWS SDK for Ruby. Version 2 documentation can be found here.

Class: Aws::WAFRegional::Types::AssociateWebACLRequest

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-wafregional/lib/aws-sdk-wafregional/types.rb

Overview

Note:

When making an API call, you may pass AssociateWebACLRequest data as a hash:

{
  web_acl_id: "ResourceId", # required
  resource_arn: "ResourceArn", # required
}

Instance Attribute Summary collapse

Instance Attribute Details

#resource_arnString

The ARN (Amazon Resource Name) of the resource to be protected, either an application load balancer or Amazon API Gateway stage.

The ARN should be in one of the following formats:

  • For an Application Load Balancer: arn:aws:elasticloadbalancing:region:account-id:loadbalancer/app/load-balancer-name/load-balancer-id

  • For an Amazon API Gateway stage: arn:aws:apigateway:region::/restapis/api-id/stages/stage-name

Returns:

  • (String)


192
193
194
195
196
# File 'gems/aws-sdk-wafregional/lib/aws-sdk-wafregional/types.rb', line 192

class AssociateWebACLRequest < Struct.new(
  :web_acl_id,
  :resource_arn)
  include Aws::Structure
end

#web_acl_idString

A unique identifier (ID) for the web ACL.

Returns:

  • (String)


192
193
194
195
196
# File 'gems/aws-sdk-wafregional/lib/aws-sdk-wafregional/types.rb', line 192

class AssociateWebACLRequest < Struct.new(
  :web_acl_id,
  :resource_arn)
  include Aws::Structure
end