Access Control (RAM) is a service provided by Alibaba Cloud to manage user identities and resource access permissions.You can use RAM to prevent RAM users from sharing the AccessKey pairs of your Alibaba Cloud account. You can also use RAM to grant minimum permissions to RAM users. RAM used Permission Policy to describe the specific content for authorization.

This topic describes the elements, such as Action, Resource, and Condition, that are defined by EMR .You can use the elements to create policies in RAM. The code (RamCode) in RAM that is used to indicate EMR 's RAM code (RamCode) is emr. You can grant permissions on resource level

General structure of a policy

Policies can be stored as JSON files. The following code provides an example on the general structure of a policy:View Details...

Action

EMR defines the values that you can use in the Actionelement of a policy statement. The following table describes the values.View Details...

ActionsAPIAccess levelResource typeCondition keyAssociated operation
emr:AddApplications
Update
All Resources
*
NoneNone
emr:BindPrivateZoneVpc
Update
All Resources
*
NoneNone
emr:CancelOperationOrders
Update
Cluster
acs:emr:{#regionId}:{#accountId}:cluster/{#ClusterId}
NoneNone
emr:CheckDLFCatalogAuth
Get
All Resources
*
NoneNone
emr:CreateApiTemplate
Creates a predefined API operation template. The template contains information about an API operation, including the basic structure, request method, URL path, request parameters, and response format
Create
All Resources
*
NoneNone
emr:CreateCluster
Creates a pay-as-you-go or subscription cluster
Create
All Resources
*
NoneNone
emr:CreateDiagnoseFeedback
None
All Resources
*
NoneNone
emr:CreateDiagnoseReport
Create
All Resources
*
NoneNone
emr:CreateGateway
Create
All Resources
*
NoneNone
emr:CreateNodeGroup
Creates a node group
Create
All Resources
*
NoneNone
Resource

EMR resources that can be specified in the Resource policy element to grant the permissions to perform specific operations on this resource.

An Alibaba Cloud Resource Name (ARN) is the unique identifier of a resource on Alibaba Cloud. Description:

  • {#} is a variable and must be replaced with the actual value. Example: {#ramcode} must be replaced with the actual RAM code of the cloud service.
  • *) is used as a wildcard. Examples:
    • {#resourceType}/*: indicates all resources.
    • {#regionId} is set to *, all regions are specified.
    • {#accountId} is set to *, all Alibaba Cloud accounts are specified.
Resource typeARN
Cluster
  • acs:emr:{#regionId}:{#accountId}:Cluster/*
  • acs:emr:{#regionId}:{#accountId}:cluster/{#ClusterId}
  • acs:emr:{#regionId}:{#accountId}:cluster/{#Clusterld}
Condition

EMR does not define service-specific condition keys. For more information about common condition keys that are defined by Alibaba Cloud, see Generic Condition Keyword

What to do next

You can create a custom policy and attach the policy to a RAM user, RAM user group, or RAM role. For more information, see the following topics: