Actions, resources, and condition keys for Amazon Managed Streaming for Apache Kafka
Amazon Managed Streaming for Apache Kafka (service prefix: kafka) provides the following
service-specific operations, resources, actions, and condition keys for use in IAM permission
policies.
References:
-
Learn how to configure this service.
-
View a list of the API operations available for this service.
-
Learn how to secure this service and its resources by using IAM permission policies.
-
View the programmatic service authorization reference
for this service.
Topics
API operations defined by Amazon Managed Streaming for Apache Kafka
The following table maps API operations to the IAM actions they authorize. Only condition keys that have static values for the given API and action are listed; for the full set of condition keys supported by each action, see the Actions table.
| Operation | IAM action | Condition key | Possible value(s) | Access level |
|---|---|---|---|---|
|
BatchAssociateScramSecret |
Write |
|||
|
BatchDisassociateScramSecret |
Write |
|||
|
CreateCluster |
Write |
|||
Tagging, Write |
||||
|
CreateClusterV2 |
Write |
|||
Tagging, Write |
||||
|
CreateConfiguration |
Write |
|||
|
CreateReplicator |
Write |
|||
Tagging, Write |
||||
iam:PassedToService |
kafka.amazonaws.com |
Write |
||
|
CreateTopic |
Write |
|||
Write |
||||
|
CreateVpcConnection |
Write |
|||
Tagging, Write |
||||
|
DeleteCluster |
Write |
|||
|
DeleteClusterPolicy |
Write |
|||
|
DeleteConfiguration |
Write |
|||
|
DeleteReplicator |
Write |
|||
|
DeleteTopic |
Write |
|||
Write |
||||
List |
||||
|
DeleteVpcConnection |
Write |
|||
|
DescribeCluster |
Read |
|||
|
DescribeClusterOperation |
Read |
|||
|
DescribeClusterOperationV2 |
Read |
|||
|
DescribeClusterV2 |
Read |
|||
|
DescribeConfiguration |
Read |
|||
|
DescribeConfigurationRevision |
Read |
|||
|
DescribeReplicator |
Read |
|||
Read |
||||
|
DescribeTopic |
Write |
|||
List |
||||
List |
||||
|
DescribeTopicPartitions |
Write |
|||
List |
||||
List |
||||
|
DescribeVpcConnection |
Read |
|||
|
GetBootstrapBrokers |
Read |
|||
|
GetClusterPolicy |
Read |
|||
|
GetCompatibleKafkaVersions |
List |
|||
|
ListClientVpcConnections |
List |
|||
|
ListClusterOperations |
List |
|||
|
ListClusterOperationsV2 |
List |
|||
|
ListClusters |
List |
|||
|
ListClustersV2 |
List |
|||
|
ListConfigurationRevisions |
List |
|||
|
ListConfigurations |
List |
|||
|
ListKafkaVersions |
List |
|||
|
ListNodes |
List |
|||
|
ListReplicators |
List |
|||
|
ListScramSecrets |
List |
|||
|
ListTagsForResource |
Read |
|||
|
ListTopics |
Write |
|||
List |
||||
|
ListVpcConnections |
List |
|||
|
PutClusterPolicy |
Write |
|||
|
RebootBroker |
Write |
|||
|
RejectClientVpcConnection |
Write |
|||
|
TagResource |
Tagging, Write |
|||
|
UntagResource |
Tagging, Write |
|||
|
UpdateBrokerCount |
Write |
|||
|
UpdateBrokerStorage |
Write |
|||
|
UpdateBrokerType |
Write |
|||
|
UpdateClusterConfiguration |
Write |
|||
|
UpdateClusterKafkaVersion |
Write |
|||
|
UpdateConfiguration |
Write |
|||
|
UpdateConnectivity |
Write |
|||
|
UpdateMonitoring |
Write |
|||
|
UpdateRebalancing |
Write |
|||
|
UpdateReplicationInfo |
Write |
|||
|
UpdateSecurity |
Write |
|||
|
UpdateStorage |
Write |
|||
|
UpdateTopic |
Write |
|||
Write |
||||
Write |
||||
List |
Actions defined by Amazon Managed Streaming for Apache Kafka
You can specify the following actions in the Action element of an IAM
policy statement. Use policies to grant permissions to perform an operation in Amazon. When
you use an action in a policy, you usually allow or deny access to the API operation or CLI
command with the same name. However, in some cases, a single action controls access to more
than one operation. Alternatively, some operations require several different actions.
| Actions | Description | Resource types (*required) | Condition keys | Access level |
|---|---|---|---|---|
Grants permission to associate one or more Scram Secrets with an Amazon MSK cluster |
Write |
|||
Grants permission to disassociate one or more Scram Secrets from an Amazon MSK cluster |
Write |
|||
Grants permission to create an MSK cluster |
Write |
|||
Grants permission to create an MSK cluster |
Write |
|||
Grants permission to create an MSK configuration |
Write |
|||
Grants permission to create a MSK replicator |
Write |
|||
Grants permission to create a Kafka topic in an MSK cluster |
Write |
|||
Grants permission to create a MSK VPC connection |
Write |
|||
Grants permission to delete an MSK cluster |
Write |
|||
Grants permission to delete a cluster resource-based policy |
Write |
|||
Grants permission to delete the specified MSK configuration |
Write |
|||
Grants permission to delete a MSK replicator |
Write |
|||
Grants permission to delete a Kafka topic from an MSK cluster |
Write |
|||
Grants permission to delete a MSK VPC connection |
Write |
|||
Grants permission to describe an MSK cluster |
Read |
|||
Grants permission to describe the cluster operation that is specified by the given ARN |
Read |
|||
Grants permission to describe the cluster operation that is specified by the given ARN |
Read |
|||
Grants permission to describe an MSK cluster |
Read |
|||
Grants permission to describe an MSK configuration |
Read |
|||
Grants permission to describe an MSK configuration revision |
Read |
|||
Grants permission to describe a MSK replicator |
Read |
|||
Grants permission to return metadata details about a specific Kafka topic |
Read |
|||
Grants permission to list all partitions of a specific topic |
Read |
|||
Grants permission to describe a MSK VPC connection |
Read |
|||
Grants permission to get connection details for the brokers in an MSK cluster |
Read |
|||
Grants permission to describe a cluster resource-based policy |
Read |
|||
Grants permission to get a list of the Apache Kafka versions to which you can update an MSK cluster |
List |
|||
Grants permission to list all MSK VPC connections created for a cluster |
List |
|||
Grants permission to return a list of all the operations that have been performed on the specified MSK cluster |
List |
|||
Grants permission to return a list of all the operations that have been performed on the specified MSK cluster |
List |
|||
Grants permission to list all MSK clusters in this account |
List |
|||
Grants permission to list all MSK clusters in this account |
List |
|||
Grants permission to list all revisions for an MSK configuration in this account |
List |
|||
Grants permission to list all MSK configurations in this account |
List |
|||
Grants permission to list all Apache Kafka versions supported by Amazon MSK |
List |
|||
Grants permission to list brokers in an MSK cluster |
List |
|||
Grants permission to list all MSK replicators in this account |
List |
|||
Grants permission to list the Scram Secrets associated with an Amazon MSK cluster |
List |
|||
Grants permission to list tags of an MSK resource |
Read |
|||
Grants permission to list all Kafka topics for a specified MSK cluster |
List |
|||
Grants permission to list all MSK VPC connections that this account uses |
List |
|||
Grants permission to create or update the resource-based policy for a cluster |
Write |
|||
Grants permission to reboot broker |
Write |
|||
Grants permission to reject a MSK VPC connection |
Write |
|||
Grants permission to tag an MSK resource |
Tagging, Write |
|||
Grants permission to remove tags from an MSK resource |
Tagging, Write |
|||
Grants permission to update the number of brokers of the MSK cluster |
Write |
|||
Grants permission to update the storage size of the brokers of the MSK cluster |
Write |
|||
Grants permission to update the broker type of an Amazon MSK cluster |
Write |
|||
Grants permission to update the configuration of the MSK cluster |
Write |
|||
Grants permission to update the MSK cluster to the specified Apache Kafka version |
Write |
|||
Grants permission to create a new revision of the MSK configuration |
Write |
|||
Grants permission to update the connectivity settings for the MSK cluster |
Write |
|||
Grants permission to update the monitoring settings for the MSK cluster |
Write |
|||
Grants permission to update the intelligent rebalancing status of the MSK cluster |
Write |
|||
Grants permission to update the replication info of the MSK replicator |
Write |
|||
Grants permission to update the security settings for the MSK cluster |
Write |
|||
Grants permission to update the EBS storage (size or provisioned throughput) associated with MSK brokers or set cluster storage mode to TIERED |
Write |
|||
Grants permission to update the configuration of a Kafka topic in an MSK cluster |
Write |
Resource types defined by Amazon Managed Streaming for Apache Kafka
The following resource types are defined by this service and can be used in the
Resource element of IAM permission policy statements.
| Resource types | ARN | Condition keys |
|---|---|---|
arn:${Partition}:kafka:${Region}:${Account}:cluster/${ClusterName}/${Uuid} |
||
arn:${Partition}:kafka:${Region}:${Account}:configuration/${ConfigurationName}/${Uuid} |
||
arn:${Partition}:kafka:${Region}:${Account}:group/${ClusterName}/${ClusterUuid}/${GroupName} |
||
arn:${Partition}:kafka:${Region}:${Account}:replicator/${ReplicatorName}/${Uuid} |
||
arn:${Partition}:kafka:${Region}:${Account}:topic/${ClusterName}/${ClusterUuid}/${TopicName} |
||
arn:${Partition}:kafka:${Region}:${Account}:transactional-id/${ClusterName}/${ClusterUuid}/${TransactionalId} |
||
arn:${Partition}:kafka:${Region}:${VpcOwnerAccount}:vpc-connection/${ClusterOwnerAccount}/${ClusterName}/${Uuid} |
Condition keys for Amazon Managed Streaming for Apache Kafka
Amazon Managed Streaming for Apache Kafka defines the following condition keys that can be used in the
Condition element of an IAM policy.
| Condition keys | Description | Type |
|---|---|---|
Filters access by the presence of tag key-value pairs in the request |
String |
|
Filters access by tag key-value pairs attached to the resource |
String |
|
Filters access by the presence of tag keys in the request |
ArrayOfString |
|
Filters access by the presence of public access enabled in the request |
Bool |