Skip to content

List Resources For Web Acl

wafv2_list_resources_for_web_acl R Documentation

Retrieves an array of the Amazon Resource Names (ARNs) for the resources that are associated with the specified web ACL

Description

Retrieves an array of the Amazon Resource Names (ARNs) for the resources that are associated with the specified web ACL.

For Amazon CloudFront, don't use this call. Instead, use the CloudFront call ListDistributionsByWebACLId. For information, see ListDistributionsByWebACLId in the Amazon CloudFront API Reference.

Required permissions for customer-managed IAM policies

This call requires permissions that are specific to the protected resource type. For details, see Permissions for ListResourcesForWebACL in the WAF Developer Guide.

Usage

wafv2_list_resources_for_web_acl(WebACLArn, ResourceType)

Arguments

WebACLArn

[required] The Amazon Resource Name (ARN) of the web ACL.

ResourceType

Retrieves the web ACLs that are used by the specified resource type.

For Amazon CloudFront, don't use this call. Instead, use the CloudFront call ListDistributionsByWebACLId. For information, see ListDistributionsByWebACLId in the Amazon CloudFront API Reference.

If you don't provide a resource type, the call uses the resource type APPLICATION_LOAD_BALANCER.

Default: APPLICATION_LOAD_BALANCER

Value

A list with the following syntax:

list(
  ResourceArns = list(
    "string"
  )
)

Request syntax

svc$list_resources_for_web_acl(
  WebACLArn = "string",
  ResourceType = "APPLICATION_LOAD_BALANCER"|"API_GATEWAY"|"APPSYNC"|"COGNITO_USER_POOL"|"APP_RUNNER_SERVICE"|"VERIFIED_ACCESS_INSTANCE"
)