kafka:ListTopics

List

kafka:ListTopics is a List access-level action in the kafka service. Grants permission to list all Kafka topics for a specified MSK cluster

Resource types

ARNs that kafka:ListTopics can be scoped to in an IAM policy.

arn:${Partition}:kafka:${Region}:${Account}:cluster/${ClusterName}/${Uuid}
cluster

Condition keys

Keys you can use in the Condition block of a policy that grants kafka:ListTopics.

aws:ResourceTag/${TagKey} String

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

Dependent actions

To use kafka:ListTopics you may also need to grant:

Example IAM policy

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

{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Sid": "AllowKafkaListTopics",
      "Effect": "Allow",
      "Action": "kafka:ListTopics",
      "Resource": "*"
    }
  ]
}

Related actions in kafka

View all kafka actions →