iot:RetainPublish

Write

iot:RetainPublish is a Write access-level action in the iot service. Grants permission to publish a retained message to the specified topic

Resource types

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

arn:${Partition}:iot:${Region}:${Account}:topic/${TopicName}
topic

Condition keys

No condition keys are documented for this action.

Example IAM policy

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

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

Related actions in iot

View all iot actions →