macie2:ListResourceProfileDetections is a List access-level action in the macie2 service. Grants permission to retrieve information about the types and amount of sensitive data that Amazon Macie found in an S3 bucket
This action does not support resource-level permissions; use "Resource": "*" in your policy.
No condition keys are documented for this action.
A minimal policy that allows macie2:ListResourceProfileDetections. Replace "Resource": "*" with a specific ARN to follow least privilege.
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "AllowMacie2ListResourceProfileDetections",
"Effect": "Allow",
"Action": "macie2:ListResourceProfileDetections",
"Resource": "*"
}
]
}