wafv2:GetSampledRequests

Read

wafv2:GetSampledRequests is a Read access-level action in the wafv2 service. Grants permission to retrieve detailed information about a sampling of web requests

Resource types

ARNs that wafv2:GetSampledRequests can be scoped to in an IAM policy.

arn:${Partition}:wafv2:${Region}:${Account}:${Scope}/webacl/${Name}/${Id}
webacl

Condition keys

Keys you can use in the Condition block of a policy that grants wafv2:GetSampledRequests.

aws:ResourceTag/${TagKey} String

Filters access by tag-value associated with the resource

Example IAM policy

A minimal policy that allows wafv2:GetSampledRequests. Replace "Resource": "*" with a specific ARN to follow least privilege.

{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Sid": "AllowWafv2GetSampledRequests",
      "Effect": "Allow",
      "Action": "wafv2:GetSampledRequests",
      "Resource": "*"
    }
  ]
}

Related actions in wafv2

View all wafv2 actions →