iot:DetachPolicy

Permissions management

iot:DetachPolicy is a Permissions management access-level action in the iot service. Grants permission to detach a policy from the specified target

Resource types

ARNs that iot:DetachPolicy can be scoped to in an IAM policy.

arn:${Partition}:iot:${Region}:${Account}:cert/${Certificate}
cert
arn:${Partition}:iot:${Region}:${Account}:thinggroup/${ThingGroupName}
thinggroup

Condition keys

Keys you can use in the Condition block of a policy that grants iot:DetachPolicy.

aws:ResourceTag/${TagKey} String

Filters access by a tag key component of a tag associated to the IoT resource in the request

Example IAM policy

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

{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Sid": "AllowIotDetachPolicy",
      "Effect": "Allow",
      "Action": "iot:DetachPolicy",
      "Resource": "*"
    }
  ]
}

Related actions in iot

View all iot actions →