RAM authorization

Updated at:

Resource Access Management (RAM) is a service provided by Alibaba Cloud to manage user identities and resource access permissions. Using RAM helps you avoid sharing your Alibaba Cloud account keys with other users and allows you to grant users the least privilege access. RAM uses permission policies to define authorizations. This topic describes the actions, resources, and conditions that EventBridge defines for RAM permission policies. The RamCode of EventBridge is eventbridge , and the supported authorization granularity is RESOURCE . For the resource authorization scope of each action, see the Action table.

General structure of a policy

Permission policies support the JSON format. The following example shows the structure of a policy that uses the Action element. Values in angle brackets (<>) are placeholders. Replace them with actual values.

{
  "Version": "1",
  "Statement": [
    {
      "Effect": "<Effect>",
      "Action": "<Action>",
      "Resource": "<Resource>",
      "Condition": {
        "<Condition_operator>": {
          "<Condition_key>": [
            "<Condition_value>"
          ]
        }
      }
    }
  ]
}        

The following list describes the fields and placeholders in the policy:

  • Effect: Specifies the authorization result. Valid values: Allow and Deny.

  • Action: Specifies one or more operations that are allowed or denied.

  • Resource: Specifies the specific objects affected by the operations. You can use Alibaba Cloud Resource Names (ARNs) to describe specific resources.

  • Condition: Specifies the conditions for the authorization to take effect. This field is optional.

  • Condition operator: Specifies the conditional operators. Different types of conditions support different conditional operators.

  • Condition_key: Specifies the condition keys.

  • Condition_value: Specifies the condition values.

Action

The following table lists the RAM actions defined by EventBridge. These actions can be used in the Action element of RAM permission policies.

  • Action: A specific RAM permission point. In most cases, it has the same name as the corresponding OpenAPI.

  • OpenAPI: The OpenAPI associated with the RAM action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that support authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding ARN in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The product-level condition keys supported by the action. Common condition keys are not included. For more information, see Common condition keys.

  • Dependent action: Other action permissions required to perform the action.

Action

OpenAPI

Access level

Resource type

Condition key

Dependent action

eventbridge:TestEventSourceConfig TestEventSourceConfig create

*All Resource

*

None None
eventbridge:CreateNamespace CreateNamespace create

*Namespace

acs:eventbridge:{#regionId}:{#accountId}:namespace/{#NamespaceId}

None None
eventbridge:GetEventStreaming GetEventStreaming get

*EventStreaming

acs:eventbridge:{#regionId}:{#accountId}:eventstreaming/{#EventStreamingName}

None None
eventbridge:ListLumaTables ListLumaTables get

*All Resource

*

None None
eventbridge:UpdateKnowledgeBase UpdateKnowledgeBase update

*KnowledgeBase

acs:eventbridge:{#regionId}:{#accountId}:catalog/{#Catalog}/namespace/{#Namespace}/knowledgebase/{#KnowledgeBaseName}

None None
eventbridge:GetAgent GetAgent get

*All Resource

*

None None
eventbridge:GetLumaDocument GetLumaDocument get

*All Resource

*

None None
eventbridge:StartEventStreaming StartEventStreaming update

*EventStreaming

acs:eventbridge:{#regionId}:{#accountId}:eventstreaming/{#EventStreamingName}

None None
eventbridge:CreateKnowledgeBase CreateKnowledgeBase create

*KnowledgeBase

acs:eventbridge:{#regionId}:{#accountId}:catalog/{#Catalog}/namespace/{#Namespace}/knowledgebase/{#KnowledgeBaseName}

None None
eventbridge:GetTable GetTable get

*Table

acs:eventbridge:{#regionId}:{#accountId}:table/{#TableId}

None None
eventbridge:DeleteEventAnalysisJob DeleteEventAnalysisJob none

*All Resource

*

None None
eventbridge:CreateEventSource CreateEventSource create

*EventSource

acs:eventbridge:{#regionId}:{#accountId}:eventbus/{#EventBusName}/eventsource/*

None None
eventbridge:GetLumaDocumentDownloadUrl GetLumaDocumentDownloadUrl get

*All Resource

*

None None
eventbridge:QueryTracedEventByEventId QueryTracedEventByEventId get

*EventBus

acs:eventbridge:{#regionId}:{#accountId}:eventbus/{#EventBusName}

None None
eventbridge:DeleteEventBus DeleteEventBus delete

*EventBus

acs:eventbridge:{#regionId}:{#accountId}:eventbus/{#EventBusName}

None None
eventbridge:DiscoverEventSource DiscoverEventSource create

*All Resource

*

None None
eventbridge:QueryEventTraces QueryEventTraces get

*EventBus

acs:eventbridge:{#regionId}:{#accountId}:eventbus/{#EventBusName}

None None
eventbridge:ListApiDestinations ListApiDestinations list

*ApiDestination

acs:eventbridge:{#regionId}:{#accountId}:apidestination/*

None None
eventbridge:ListTables ListTables list

*Table

acs:eventbridge:{#regionId}:{#accountId}:table/{#TableId}

None None
eventbridge:DeleteConnection DeleteConnection delete

*Connection

acs:eventbridge:{#regionId}:{#accountId}:connection/{#ConnectionName}

None None
eventbridge:CreateEventBus CreateEventBus create

*EventBus

acs:eventbridge:{#regionId}:{#accountId}:eventbus/*

None None
eventbridge:CheckServiceLinkedRoleForProduct CheckServiceLinkedRoleForProduct none

*All Resource

*

None None
eventbridge:ListConnections ListConnections get

*Connection

acs:eventbridge:{#regionId}:{#accountId}:connection/*

None None
eventbridge:PollAskResult PollAskResult get

*All Resource

*

None None
eventbridge:ListTargets ListTargets list

*Rule

acs:eventbridge:{#regionId}:{#accountId}:eventbus/{#EventBusName}/rule/{#RuleName}

None None
eventbridge:SaveAgentDataSemantics SaveAgentDataSemantics update

*All Resource

*

None None
eventbridge:GetNamespace GetNamespace get

*Namespace

acs:eventbridge:{#regionId}:{#accountId}:namespace/{#NamespaceId}

None None
eventbridge:DeleteAgent DeleteAgent delete

*All Resource

*

None None
eventbridge:PutEvents PutEvents none

*EventBus

acs:eventbridge:{#regionId}:{#accountId}:eventbus/{#EventBusName}

None None
eventbridge:ListRules ListRules get

*Rule

acs:eventbridge:{#regionId}:{#accountId}:eventbus/{#EventBusName}/rule/*

None None
eventbridge:QueryTracedEvents QueryTracedEvents get

*EventBus

acs:eventbridge:{#regionId}:{#accountId}:eventbus/{#EventBusName}

None None
eventbridge:UpdateEventSource UpdateEventSource update

*EventSource

acs:eventbridge:{#regionId}:{#accountId}:eventbus/{#EventBusName}/eventsource/{#EventSourceName}

None None
eventbridge:GetKnowledgeBase GetKnowledgeBase get

*KnowledgeBase

acs:eventbridge:{#regionId}:{#accountId}:catalog/{#Catalog}/namespace/{#Namespace}/knowledgebase/{#KnowledgeBaseName}

None None
eventbridge:ListLumaNamespaces ListLumaNamespaces get

*All Resource

*

None None
eventbridge:ListKnowledgeBases ListKnowledgeBases list

*KnowledgeBase

acs:eventbridge:{#regionId}:{#accountId}:catalog/{#Catalog}/namespace/{#Namespace}/knowledgebase/*

None None
eventbridge:CreateServiceLinkedRoleForProduct CreateServiceLinkedRoleForProduct none

*All Resource

*

None None
eventbridge:GetLumaTable GetLumaTable get

*All Resource

*

None None
eventbridge:GetLumaCatalog GetLumaCatalog get

*All Resource

*

None None
eventbridge:EnableRule EnableRule update

*Rule

acs:eventbridge:{#regionId}:{#accountId}:eventbus/{#EventBusName}/rule/{#RuleName}

None None
eventbridge:QueryWithSQL QueryWithSQL list

*All Resource

*

None None
eventbridge:UpdateAgent UpdateAgent get

*All Resource

*

None None
eventbridge:DeleteNamespace DeleteNamespace delete

*Namespace

acs:eventbridge:{#regionId}:{#accountId}:namespace/{#NamespaceId}

None None
eventbridge:ListEventStreamings ListEventStreamings list

*EventStreaming

acs:eventbridge:{#regionId}:{#accountId}:eventstreaming/*

None None
eventbridge:PauseEventStreaming PauseEventStreaming update

*EventStreaming

acs:eventbridge:{#regionId}:{#accountId}:eventstreaming/{#EventStreamingName}

None None
eventbridge:GetDocument GetDocument get

*KnowledgeBase

acs:eventbridge:{#regionId}:{#accountId}:catalog/{#Catalog}/namespace/{#Namespace}/knowledgebase/{#KnowledgeBaseName}

None None
eventbridge:CreateAgent CreateAgent create

*All Resource

*

None None
eventbridge:QueryEventHouse QueryEventHouse list

*Table

acs:eventbridge:{#regionId}:{#accountId}:table/{#TableId}

None None
eventbridge:GetApiDestination GetApiDestination get

*ApiDestination

acs:eventbridge:{#regionId}:{#accountId}:apidestination/{#ApiDestinationName}

None None
eventbridge:GetRule GetRule get

*Rule

acs:eventbridge:{#regionId}:{#accountId}:eventbus/{#EventBusName}/rule/{#RuleName}

None None
eventbridge:ListLumaDocuments ListLumaDocuments get

*All Resource

*

None None
eventbridge:GetEventHouseRuntime GetEventHouseRuntime get

*All Resource

*

None None
eventbridge:DeleteKnowledgeBase DeleteKnowledgeBase delete

*KnowledgeBase

acs:eventbridge:{#regionId}:{#accountId}:catalog/{#Catalog}/namespace/{#Namespace}/knowledgebase/{#KnowledgeBaseName}

None None
eventbridge:GetAgentDataSemantics GetAgentDataSemantics get

*All Resource

*

None None
eventbridge:GenerateAgentDataSemantics GenerateAgentDataSemantics create

*All Resource

*

None None
eventbridge:UpdateEventStreaming UpdateEventStreaming update

*EventStreaming

acs:eventbridge:{#regionId}:{#accountId}:eventstreaming/{#EventStreamingName}

None None
eventbridge:UpdateEventStreamingBusinessOption UpdateEventStreamingBusinessOption update

*EventStreaming

acs:eventbridge:{#regionId}:{#accountId}:eventstreaming/{#EventStreamingName}

None None
eventbridge:QueryAskLumaLog QueryAskLumaLog get

*All Resource

*

None None
eventbridge:UpdateConnection UpdateConnection update

*Connection

acs:eventbridge:{#regionId}:{#accountId}:connection/{#ConnectionName}

None None
eventbridge:QueryEventHouseWithTimeRange QueryEventHouseWithTimeRange list

*Table

acs:eventbridge:{#regionId}:{#accountId}:table/{#TableId}

None None
eventbridge:GetLumaKnowledgeBase GetLumaKnowledgeBase get

*All Resource

*

None None
eventbridge:GetLumaChunk GetLumaChunk get

*All Resource

*

None None
eventbridge:DeleteTable DeleteTable delete

*Table

acs:eventbridge:{#regionId}:{#accountId}:table/{#TableId}

None None
eventbridge:ListEventBuses ListEventBuses get

*EventBus

acs:eventbridge:{#regionId}:{#accountId}:eventbus/*

None None
eventbridge:UpdateNamespace UpdateNamespace update

*Namespace

acs:eventbridge:{#regionId}:{#accountId}:namespace/{#NamespaceId}

None None
eventbridge:DeleteEventHouseRuntime DeleteEventHouseRuntime delete

*All Resource

*

None None
eventbridge:UpdateApiDestination UpdateApiDestination update

*ApiDestination

acs:eventbridge:{#regionId}:{#accountId}:apidestination/{#ApiDestinationName}

None None
eventbridge:ListLumaCatalogs ListLumaCatalogs get

*All Resource

*

None None
eventbridge:SearchLumaKnowledgeBase SearchLumaKnowledgeBase get

*All Resource

*

None None
eventbridge:ListNamespaces ListNamespaces list

*Namespace

acs:eventbridge:{#regionId}:{#accountId}:namespace/*

None None
eventbridge:DisableRule DisableRule update

*Rule

acs:eventbridge:{#regionId}:{#accountId}:eventbus/{#EventBusName}/rule/{#RuleName}

None None
eventbridge:GetEventBus GetEventBus get

*EventBus

acs:eventbridge:{#regionId}:{#accountId}:eventbus/{#EventBusName}

None None
eventbridge:ListLumaChunks ListLumaChunks get

*All Resource

*

None None
eventbridge:GetChunk GetChunk get

*KnowledgeBase

acs:eventbridge:{#regionId}:{#accountId}:catalog/{#Catalog}/namespace/{#Namespace}/knowledgebase/{#KnowledgeBaseName}

None None
eventbridge:CreateApiDestination CreateApiDestination create

*ApiDestination

acs:eventbridge:{#regionId}:{#accountId}:apidestination/{#ApiDestinationName}

None None
eventbridge:ListLumaKnowledgeBases ListLumaKnowledgeBases get

*All Resource

*

None None
eventbridge:ListUserDefinedEventSources ListUserDefinedEventSources get

*EventSource

acs:eventbridge:{#regionId}:{#accountId}:eventbus/{#EventBusName}/eventsource/*

None None
eventbridge:GetCatalog GetCatalog get

*Catalog

acs:eventbridge:{#regionId}:{#accountId}:catalog/{#Catalog}

None None
eventbridge:UpdateEventHouseRuntime UpdateEventHouseRuntime update

*All Resource

*

None None
eventbridge:UpdateRule UpdateRule update

*Rule

acs:eventbridge:{#regionId}:{#accountId}:eventbus/{#EventBusName}/rule/{#RuleName}

None None
eventbridge:ListCatalogs ListCatalogs list

*Catalog

acs:eventbridge:{#regionId}:{#accountId}:catalog/*

None None
eventbridge:DeleteEventSource DeleteEventSource delete

*EventSource

acs:eventbridge:{#regionId}:{#accountId}:eventbus/{#EventBusName}/eventsource/{#EventSourceName}

None None
eventbridge:PutTargets PutTargets update

*Rule

acs:eventbridge:{#regionId}:{#accountId}:eventbus/{#EventBusName}/rule/{#RuleName}

None None
eventbridge:UpdateTable UpdateTable create

*Table

acs:eventbridge:{#regionId}:{#accountId}:table/{#TableId}

None None
eventbridge:GetLumaNamespace GetLumaNamespace get

*All Resource

*

None None
eventbridge:AskLuma AskLuma get

*All Resource

*

None None
eventbridge:QueryEvent QueryEvent get

*EventBus

acs:eventbridge:{#regionId}:{#accountId}:eventbus/{#EventBusName}

None None
eventbridge:CreateTable CreateTable create

*Table

acs:eventbridge:{#regionId}:{#accountId}:table/{#TableId}

None None
eventbridge:CreateRule CreateRule create

*Rule

acs:eventbridge:{#regionId}:{#accountId}:eventbus/{#EventBusName}/rule/{#RuleName}

None None
eventbridge:SearchKnowledgeBase SearchKnowledgeBase get

*KnowledgeBase

acs:eventbridge:{#regionId}:{#accountId}:catalog/{#Catalog}/namespace/{#Namespace}/knowledgebase/{#KnowledgeBaseName}

None None
eventbridge:UpdateEventBus UpdateEventBus update

*EventBus

acs:eventbridge:{#regionId}:{#accountId}:eventbus/{#EventBusName}

None None
eventbridge:ListDocuments ListDocuments list

*KnowledgeBase

acs:eventbridge:{#regionId}:{#accountId}:catalog/{#Catalog}/namespace/{#Namespace}/knowledgebase/{#KnowledgeBaseName}

None None
eventbridge:CreateEventStreaming CreateEventStreaming create

*EventStreaming

acs:eventbridge:{#regionId}:{#accountId}:eventstreaming/{#EventStreamingName}

None None
eventbridge:ListChunks ListChunks list

*KnowledgeBase

acs:eventbridge:{#regionId}:{#accountId}:catalog/{#Catalog}/namespace/{#Namespace}/knowledgebase/{#KnowledgeBaseName}

None None
eventbridge:GetDocumentDownloadUrl GetDocumentDownloadUrl get

*KnowledgeBase

acs:eventbridge:{#regionId}:{#accountId}:catalog/{#Catalog}/namespace/{#Namespace}/knowledgebase/{#KnowledgeBaseName}

None None
eventbridge:GetConnection GetConnection get

*Connection

acs:eventbridge:{#regionId}:{#accountId}:connection/{#ConnectionName}

None None
eventbridge:EventCenterQueryEvents EventCenterQueryEvents get

*EventBus

acs:eventbridge:{#regionId}:{#accountId}:eventbus/{#eventbus}

None None
eventbridge:GetGenerateAgentDataSemanticsProgress GetGenerateAgentDataSemanticsProgress get

*All Resource

*

None None
eventbridge:DeleteRule DeleteRule delete

*Rule

acs:eventbridge:{#regionId}:{#accountId}:eventbus/{#EventBusName}/rule/{#RuleName}

None None
eventbridge:DeleteEventStreaming DeleteEventStreaming delete

*EventStreaming

acs:eventbridge:{#regionId}:{#accountId}:eventstreaming/{#EventStreamingName}

None None
eventbridge:DeleteTargets DeleteTargets delete

*Rule

acs:eventbridge:{#regionId}:{#accountId}:eventbus/{#EventBusName}/rule/{#RuleName}

None None
eventbridge:DeleteApiDestination DeleteApiDestination delete

*ApiDestination

acs:eventbridge:{#regionId}:{#accountId}:apidestination/{#ApiDestinationName}

None None
eventbridge:ListEventHouseRuntimes ListEventHouseRuntimes list

*All Resource

*

None None
eventbridge:ListAgents ListAgents list

*All Resource

*

None None
eventbridge:CreateConnection CreateConnection create

*Connection

acs:eventbridge:{#regionId}:{#accountId}:connection/*

None None
eventbridge:QueryLumaWithSQL QueryLumaWithSQL get

*All Resource

*

None None

Resource

The following table lists the resource types and ARN formats defined by EventBridge. The Resource element of RAM policy statements specifies the resources to which the statement applies. Notes:

  • {#} in an ARN is a variable placeholder. Replace it with the actual value. For example, replace {#ramcode} with the actual RAM code of the cloud service.

  • * in an ARN indicates all. For example:

    • {#resourceType} set to *: all resources.

    • {#regionId} set to *: all regions.

    • {#accountId} set to *: all Alibaba Cloud accounts.

Resource type

ARN

Namespace
  • acs:eventbridge:{#regionId}:{#accountId}:namespace/{#NamespaceId}
  • acs:eventbridge:{#regionId}:{#accountId}:namespace/*
EventStreaming
  • acs:eventbridge:{#regionId}:{#accountId}:eventstreaming/{#EventStreamingName}
  • acs:eventbridge:{#regionId}:{#accountId}:eventstreaming/*
Agent
  • acs:eventbridge:{#regionId}:{#accountId}:agent/*
KnowledgeBase
  • acs:eventbridge:{#regionId}:{#accountId}:catalog/{#Catalog}/namespace/{#Namespace}/knowledgebase/{#KnowledgeBaseName}
  • acs:eventbridge:{#regionId}:{#accountId}:catalog/{#Catalog}/namespace/{#Namespace}/knowledgebase/*
Table
  • acs:eventbridge:{#regionId}:{#accountId}:table/{#TableId}
EventSource
  • acs:eventbridge:{#regionId}:{#accountId}:eventbus/{#EventBusName}/eventsource/*
  • acs:eventbridge:{#regionId}:{#accountId}:eventbus/{#EventBusName}/eventsource/{#EventSourceName}
EventBus
  • acs:eventbridge:{#regionId}:{#accountId}:eventbus/{#EventBusName}
  • acs:eventbridge:{#regionId}:{#accountId}:eventbus/*
  • acs:eventbridge:{#regionId}:{#accountId}:eventbus/{#eventbus}
ApiDestination
  • acs:eventbridge:{#regionId}:{#accountId}:apidestination/*
  • acs:eventbridge:{#regionId}:{#accountId}:apidestination/{#ApiDestinationName}
Connection
  • acs:eventbridge:{#regionId}:{#accountId}:connection/{#ConnectionName}
  • acs:eventbridge:{#regionId}:{#accountId}:connection/*
Schema
  • acs:eventbridge:{#regionId}:{#accountId}:*
Rule
  • acs:eventbridge:{#regionId}:{#accountId}:eventbus/{#EventBusName}/rule/{#RuleName}
  • acs:eventbridge:{#regionId}:{#accountId}:eventbus/{#EventBusName}/rule/*
EventHouseRuntime
  • acs:eventbridge:{#regionId}:{#accountId}:eventhouseruntime/*
Catalog
  • acs:eventbridge:{#regionId}:{#accountId}:catalog/{#Catalog}
  • acs:eventbridge:{#regionId}:{#accountId}:catalog/*

Condition

The following table lists the product-level condition keys defined by EventBridge. Specify them in the Condition element of RAM policy statements to define the conditions under which the statement takes effect. Use conditional operators that match the data type of the condition key. If the operator does not match, the statement does not take effect. For more information about conditional operators, see Condition operator.

Condition key

Description

Data type

acs:ResourceTag acs:ResourceTag String
acs:RequestTag acs:RequestTag String
acs:ResourceGroupId acs:ResourceGroupId

References

For information about conditional operators, custom policies, and authorization operations, see the following documents: