cognito-idp:AssociateWebACL

Write

cognito-idp:AssociateWebACL is a Write access-level action in the cognito-idp service. Grants permission to associate the user pool with an AWS WAF web ACL

Resource types

ARNs that cognito-idp:AssociateWebACL can be scoped to in an IAM policy.

arn:${Partition}:cognito-idp:${Region}:${Account}:userpool/${UserPoolId}
userpool
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 cognito-idp:AssociateWebACL.

aws:ResourceTag/${TagKey} String

Filters access by tag key-value pairs attached to the resource

Example IAM policy

A minimal policy that allows cognito-idp:AssociateWebACL. Replace "Resource": "*" with a specific ARN to follow least privilege.

{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Sid": "AllowCognitoidpAssociateWebACL",
      "Effect": "Allow",
      "Action": "cognito-idp:AssociateWebACL",
      "Resource": "*"
    }
  ]
}

Related actions in cognito-idp

View all cognito-idp actions →