iot:AttachPrincipalPolicy

Permissions management

iot:AttachPrincipalPolicy is a Permissions management access-level action in the iot service. Grants permission to attach the specified policy to the specified principal (certificate or other credential)

Resource types

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

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

Condition keys

No condition keys are documented for this action.

Example IAM policy

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

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

Related actions in iot

View all iot actions →