Tüm Ürünler
Search
Belge Merkezi

EventBridge:Service-linked roles for EventBridge

Son Güncelleme:Oct 07, 2026

EventBridge, sizin adınıza diğer Alibaba Cloud hizmetlerine erişmek için Resource Access Management (RAM) hizmete bağlı rollerini kullanır. Her rol, belirli bir entegrasyon kapsamında önceden tanımlanmış bir RAM rolüdür. Örneğin, bir rol Function Compute içindeki işlevleri çağırmak veya ApsaraMQ for RocketMQ'ya mesaj yayınlamak için izin verebilir.

Rol özeti

Bu roller gerektiğinde otomatik olarak oluşturulur. Manuel kurulum gerekmez. Hizmete bağlı rollerin çalışma şekli hakkında daha fazla bilgi için bkz. Hizmete bağlı roller.

EventBridge, işlevlerine göre düzenlenmiş 17 hizmete bağlı rolü destekler:

Olay kaynağı rolleri

Bu roller, EventBridge'in yukarı akış hizmetlerinden olayları çekmesi için okuma erişimi sağlar.

Rol adı Entegre hizmet Amaç
AliyunServiceRoleForEventBridgeSourceRocketMQ ApsaraMQ for RocketMQ Kaynaklara erişme ve mesajlara abone olma
AliyunServiceRoleForEventBridgeSourceRabbitMQ ApsaraMQ for RabbitMQ Kuyruklardan mesajlara erişme ve bunları tüketme
AliyunServiceRoleForEventBridgeSourceKafka ApsaraMQ for Kafka Örnekleri ve SASL kullanıcılarını listeleme
AliyunServiceRoleForEventBridgeSourceMqtt ApsaraMQ for MQTT Mesajlara abone olma
AliyunServiceRoleForEventBridgeSourceActionTrail ActionTrail Hizmet izlerini oluşturma ve silme
AliyunServiceRoleForEventBridgeSourceCMS Cloud Monitor Sistem olay verilerini sorgulama

Olay hedefi rolleri

Bu roller, EventBridge'in olayları aşağı akış hizmetlerine iletmesi için yazma erişimi sağlar.

Rol adı Entegre hizmet Amaç
AliyunServiceRoleForEventBridgeSendToFC Function Compute İşlevleri çağırma ve olay kaynaklarını yönetme
AliyunServiceRoleForEventBridgeSendToMNS Simple Message Queue (eski adıyla MNS) Kuyruklara ve konulara mesaj gönderme ve yayınlama
AliyunServiceRoleForEventBridgeSendToSMS Short Message Service Metin mesajları gönderme
AliyunServiceRoleForEventBridgeSendToDirectMail Direct Mail E-posta gönderme
AliyunServiceRoleForEventBridgeSendToRocketMQ ApsaraMQ for RocketMQ Mesaj yayınlama
AliyunServiceRoleForEventBridgeSendToRabbitMQ ApsaraMQ for RabbitMQ Mesaj yayınlama
AliyunServiceRoleForEventBridgeSendToKafka ApsaraMQ for Kafka Mesaj yayınlama
AliyunServiceRoleForEventBridgeSendToMqtt ApsaraMQ for MQTT Mesaj yayınlama
AliyunServiceRoleForEventBridgeSendToRDS ApsaraDB RDS Verileri RDS örneklerine iletme
AliyunServiceRoleForEventBridgeSendToSAE Serverless App Engine (SAE) SAE işlerini çalıştırma

Altyapı rolleri

Rol adı Entegre hizmet Amaç
AliyunServiceRoleForEventBridgeConnectVPC Virtual Private Cloud (VPC) VPC kaynaklarına erişme ve ağ arabirimlerini yönetme

İlke ayrıntıları

Her hizmete bağlı rolün, izin verilen eylemleri tanımlayan ekli bir erişim ilkesi vardır. Her ilke ayrıca, rolün kendi hizmet adı kapsamına alınmış koşullu bir ram:DeleteServiceLinkedRole izni içerir.

AliyunServiceRoleForEventBridgeSendToFC

Function Compute içindeki işlevleri çağırma izni verir.

İlke: AliyunServiceRolePolicyForEventBridgeSendToFC

{
    "Version": "1",
    "Statement": [
        {
            "Action": [
                "fc:InvokeFunction",
                "fc:ListServices",
                "fc:ListFunctions"
                "fc:ListServiceVersions",
                "fc:ListAliases",
                "fc:RegisterEventSource",
                "fc:DeregisterEventSource",
                "fc:ListEventSources"
            ],
            "Resource": "*",
            "Effect": "Allow"
        },
        {
            "Action": "ram:DeleteServiceLinkedRole",
            "Resource": "*",
            "Effect": "Allow",
            "Condition": {
                "StringEquals": {
                    "ram:ServiceName": "sendevent-fc.eventbridge.aliyuncs.com"
                }
            }
        }
    ]
}

AliyunServiceRoleForEventBridgeSendToMNS

Simple Message Queue'a (eski adıyla MNS) mesaj gönderme ve yayınlama izni verir.

İlke: AliyunServiceRolePolicyForEventBridgeSendToMNS

{
    "Version": "1",
    "Statement": [
        {
            "Action": [
                "mns:SendMessage",
                "mns:GetQueueAttributes",
                "mns:PublishMessage",
                "mns:ListQueue",
                "mns:ListTopic",
                "mns:ReceiveMessage",
                "mns:BatchReceiveMessage",
                "mns:PeekMessage",
                "mns:BatchPeekMessage",
                "mns:ChangeMessageVisibility",
                "mns:DeleteMessage"
            ],
            "Resource": "*",
            "Effect": "Allow"
        },
        {
            "Action": "ram:DeleteServiceLinkedRole",
            "Resource": "*",
            "Effect": "Allow",
            "Condition": {
                "StringEquals": {
                    "ram:ServiceName": "sendevent-mns.eventbridge.aliyuncs.com"
                }
            }
        }
    ]
}

AliyunServiceRoleForEventBridgeSendToSMS

Short Message Service aracılığıyla metin mesajları gönderme izni verir.

İlke: AliyunServiceRolePolicyForEventBridgeSendToSMS

{
    "Version": "1",
    "Statement": [
        {
            "Action": [
                "dysms:SendSms",
                "dysms:SendBatchSms",
                "dysms:QuerySendDetails",
                "dysms:QuerySmsSign",
                "dysms:QuerySmsTemplate"
            ],
            "Resource": "*",
            "Effect": "Allow"
        },
        {
            "Action": "ram:DeleteServiceLinkedRole",
            "Resource": "*",
            "Effect": "Allow",
            "Condition": {
                "StringEquals": {
                    "ram:ServiceName": "sendevent-sms.eventbridge.aliyuncs.com"
                }
            }
        }
    ]
}

AliyunServiceRoleForEventBridgeSendToDirectMail

Direct Mail aracılığıyla e-posta gönderme izni verir.

İlke: AliyunServiceRolePolicyForEventBridgeSendToDirectMail

{
    "Version": "1",
    "Statement": [
        {
            "Action": [
                "dm:SingleSendMail",
                "dm:BatchSendMail",
                "dm:QueryMailAddressByParam"
            ],
            "Resource": "*",
            "Effect": "Allow"
        },
        {
            "Action": "ram:DeleteServiceLinkedRole",
            "Resource": "*",
            "Effect": "Allow",
            "Condition": {
                "StringEquals": {
                    "ram:ServiceName": "sendevent-directmail.eventbridge.aliyuncs.com"
                }
            }
        }
    ]
}

AliyunServiceRoleForEventBridgeSourceRocketMQ

Olay kaynağı olarak ApsaraMQ for RocketMQ'daki kaynaklara erişme izni verir.

İlke: AliyunServiceRolePolicyForEventBridgeSourceRocketMQ

{
    "Version":"1",
    "Statement":[
        {
            "Action":[
                "mq:QueryInstanceBaseInfo",
                "mq:QueryConsumerStatus",
                "mq:SUB"
            ],
            "Resource":"*",
            "Effect":"Allow"
        },
        {
            "Action":"ram:DeleteServiceLinkedRole",
            "Resource":"*",
            "Effect":"Allow",
            "Condition":{
                "StringEquals":{
                    "ram:ServiceName":"source-rocketmq.eventbridge.aliyuncs.com"
                }
            }
        }
    ]
}

AliyunServiceRoleForEventBridgeSendToRocketMQ

ApsaraMQ for RocketMQ'ya mesaj yayınlama izni verir.

İlke: AliyunServiceRolePolicyForEventBridgeSendToRocketMQ

{
    "Version":"1",
    "Statement":[
        {
            "Action":[
                "mq:PUB",
                "mq:QueryInstanceBaseInfo",
                "mq:QueryTopicStatus",
                "mq:QueryConsumerAccumulate",
                "mq:QueryConsumerStatus"
            ],
            "Resource":"*",
            "Effect":"Allow"
        },
        {
            "Action":"ram:DeleteServiceLinkedRole",
            "Resource":"*",
            "Effect":"Allow",
            "Condition":{
                "StringEquals":{
                    "ram:ServiceName":"sendevent-rocketmq.eventbridge.aliyuncs.com"
                }
            }
        }
    ]
}

AliyunServiceRoleForEventBridgeConnectVPC

Özel ağ bağlantısı için VPC kaynaklarına erişme ve esnek ağ arabirimlerini (ENI'ler) yönetme izni verir.

İlke: AliyunServiceRolePolicyForEventBridgeConnectVPC

{
    "Version":"1",
    "Statement":[
        {
            "Action":[
                "vpc:DescribeVpcs",
                "vpc:DescribeVSwitches",
                "vpc:DescribeVSwitchAttributes"
            ],
            "Resource":"*",
            "Effect":"Allow"
        },
        {
            "Action":[
                "ecs:DescribeSecurityGroups",
                "ecs:CreateSecurityGroup",
                "ecs:CreateNetworkInterface",
                "ecs:DeleteNetworkInterface",
                "ecs:DescribeNetworkInterfaces",
                "ecs:CreateNetworkInterfacePermission",
                "ecs:DescribeNetworkInterfacePermissions",
                "ecs:DeleteNetworkInterfacePermission"
            ],
            "Resource":"*",
            "Effect":"Allow"
        },
        {
            "Action":"ram:DeleteServiceLinkedRole",
            "Resource":"*",
            "Effect":"Allow",
            "Condition":{
                "StringEquals":{
                    "ram:ServiceName":"connect-vpc.eventbridge.aliyuncs.com"
                }
            }
        }
    ]
}

AliyunServiceRoleForEventBridgeSourceActionTrail

ActionTrail'de hizmet izlerini oluşturma ve silme izni verir.

İlke: AliyunServiceRolePolicyForEventBridgeSourceActionTrail

{
    "Version": "1",
    "Statement": [
        {
            "Action": [
                "actiontrail:CreateServiceTrail",
                "actiontrail:DeleteServiceTrail"
            ],
            "Resource": "*",
            "Effect": "Allow"
        },
        {
            "Action": "ram:DeleteServiceLinkedRole",
            "Resource": "*",
            "Effect": "Allow",
            "Condition": {
                "StringEquals": {
                    "ram:ServiceName": "source-actiontrail.eventbridge.aliyuncs.com"
                }
            }
        }
    ]
}

AliyunServiceRoleForEventBridgeSourceRabbitMQ

Olay kaynağı olarak ApsaraMQ for RabbitMQ'daki kaynaklara erişme izni verir.

İlke: AliyunServiceRolePolicyForEventBridgeSourceRabbitMQ

{
    "Version": "1",
    "Statement": [
        {
            "Action": [
                "amqp:ListInstance",
                "amqp:ListVhost",
                "amqp:ListExchange",
                "amqp:GetVhost",
                "amqp:GetExchange",
                "amqp:GetQueue",
                "amqp:BasicRecover",
                "amqp:BasicCancel",
                "amqp:BasicConsume",
                "amqp:BasicAck",
                "amqp:BasicNack",
                "amqp:BasicReject",
                "amqp:QueuePurge",
                "amqp:BasicGet"
            ],
            "Resource": "*",
            "Effect": "Allow"
        },
        {
            "Action": "ram:DeleteServiceLinkedRole",
            "Resource": "*",
            "Effect": "Allow",
            "Condition": {
                "StringEquals": {
                    "ram:ServiceName": "source-rabbitmq.eventbridge.aliyuncs.com"
                }
            }
        }
    ]
}

AliyunServiceRoleForEventBridgeSendToRabbitMQ

ApsaraMQ for RabbitMQ'ya mesaj yayınlama izni verir.

İlke: AliyunServiceRolePolicyForEventBridgeSendToRabbitMQ

{
    "Version":"1",
    "Statement":[
        {
            "Action":[
                "amqp:ListInstance",
                "amqp:ListVhost",
                "amqp:ListExchange",
                "amqp:GetVhost",
                "amqp:CreateExchange",
                "amqp:GetExchange",
                "amqp:CreateQueue",
                "amqp:GetQueue",
                "amqp:BasicRecover",
                "amqp:BasicPublish",
                "amqp:BasicAck",
                "amqp:BasicNack"
            ],
            "Resource":"*",
            "Effect":"Allow"
        },
        {
            "Action":"ram:DeleteServiceLinkedRole",
            "Resource":"*",
            "Effect":"Allow",
            "Condition":{
                "StringEquals":{
                    "ram:ServiceName":"sendevent-rabbitmq.eventbridge.aliyuncs.com"
                }
            }
        }
    ]
}

AliyunServiceRoleForEventBridgeSourceKafka

Olay kaynağı olarak ApsaraMQ for Kafka'ya erişme izni verir.

İlke: AliyunServiceRolePolicyForEventBridgeSourceKafka

{
    "Version": "1",
    "Statement": [
        {
            "Effect": "Allow",
            "Action": [
                "alikafka:ListInstance",
                "alikafka:ListSaslUser"
            ],
            "Resource": "*"
        },
        {
            "Effect": "Allow",
            "Action": "ram:DeleteServiceLinkedRole",
            "Resource": "*",
            "Condition": {
                "StringEquals": {
                    "ram:ServiceName": "source-kafka.eventbridge.aliyuncs.com"
                }
            }
        }
    ]
}

AliyunServiceRoleForEventBridgeSendToKafka

ApsaraMQ for Kafka'ya mesaj yayınlama izni verir.

İlke: AliyunServiceRolePolicyForEventBridgeSendToKafka

{
    "Version": "1",
    "Statement": [
        {
            "Effect": "Allow",
            "Action": [
                "alikafka:ListInstance",
                "alikafka:ListSaslUser"
            ],
            "Resource": "*"
        },
        {
            "Effect": "Allow",
            "Action": "ram:DeleteServiceLinkedRole",
            "Resource": "*",
            "Condition": {
                "StringEquals": {
                    "ram:ServiceName": "sendevent-kafka.eventbridge.aliyuncs.com"
                }
            }
        }
    ]
}

AliyunServiceRoleForEventBridgeSendToRDS

Verileri ApsaraDB RDS'ye iletme izni verir.

İlke: AliyunServiceRolePolicyForEventBridgeSendToRDS

{
    "Version": "1",
    "Statement": [
        {
            "Action": [
                "rds:DescribeDBInstanceAttribute",
                "rds:DescribeDatabases",
                "rds:DescribeAccounts"
            ],
            "Resource": "*",
            "Effect": "Allow"
        },
        {
            "Action": "ram:DeleteServiceLinkedRole",
            "Resource": "*",
            "Effect": "Allow",
            "Condition": {
                "StringEquals": {
                    "ram:ServiceName": "sendevent-rds.eventbridge.aliyuncs.com"
                }
            }
        }
    ]
}

AliyunServiceRoleForEventBridgeSourceCMS

Cloud Monitor'da sistem olay verilerini sorgulama izni verir.

İlke: AliyunServiceRolePolicyForEventBridgeSourceCMS

{
    "Version": "1",
    "Statement": [
        {
            "Effect": "Allow",
            "Action": [
                "cms:DescribeSystemEventAttribute",
                "cms:DescribeSystemEventCount",
                "cms:DescribeSystemEventHistogram"
            ],
            "Resource": "*"
        },
        {
            "Action": "ram:DeleteServiceLinkedRole",
            "Resource": "*",
            "Effect": "Allow",
            "Condition": {
                "StringEquals": {
                    "ram:ServiceName": "source-cms.eventbridge.aliyuncs.com"
                }
            }
        }
    ]
}

AliyunServiceRoleForEventBridgeSendToSAE

Serverless App Engine (SAE) içinde işleri çalıştırma izni verir.

İlke: AliyunServiceRolePolicyForEventBridgeSendToSAE

{
    "Version": "1",
    "Statement": [
        {
            "Action": [
              "sae:ExecJob"
            ],
            "Resource": "*"
            "Effect": "Allow"
        },
        {
            "Action": "ram:DeleteServiceLinkedRole",
            "Resource": "*",
            "Effect": "Allow",
            "Condition": {
                "StringEquals": {
                    "ram:ServiceName": "sendevent-sae.eventbridge.aliyuncs.com"
                }
            }
        }
    ]
}

AliyunServiceRoleForEventBridgeSourceMqtt

Olay kaynağı olarak ApsaraMQ for MQTT'deki mesajlara abone olma izni verir.

İlke: AliyunServiceRolePolicyForEventBridgeSourceMqtt

{
    "Version": "1",
    "Statement": [
        {
            "Action": [
                "mq:SUB"
            ],
            "Resource": "*",
            "Effect": "Allow"
        },
        {
            "Action": "ram:DeleteServiceLinkedRole",
            "Resource": "*",
            "Effect": "Allow",
            "Condition": {
                "StringEquals": {
                    "ram:ServiceName": "source-mqtt.eventbridge.aliyuncs.com"
                }
            }
        }
    ]
}

AliyunServiceRoleForEventBridgeSendToMqtt

ApsaraMQ for MQTT'ye mesaj yayınlama izni verir.

İlke: AliyunServiceRolePolicyForEventBridgeSendToMqtt

{
    "Version": "1",
    "Statement": [
        {
            "Effect":"Allow",
            "Action":[
                "mq:MqttInstanceAccess"
            ],
            "Resource": "*"
        },
        {
            "Action": [
                "mq:PUB"
            ],
            "Resource": "*",
            "Effect": "Allow"
        },
        {
            "Effect": "Allow",
            "Action": "ram:DeleteServiceLinkedRole",
            "Resource": "*",
            "Condition": {
                "StringEquals": {
                    "ram:ServiceName": "sendevent-mqtt.eventbridge.aliyuncs.com"
                }
            }
        }
    ]
}

Hizmete bağlı bir rolü silme

Hizmete bağlı bir rolü silmek, EventBridge'in ilgili hizmete olay iletmesi için gereken izinleri iptal eder. Hizmete bağlı rolleri silerken dikkatli olun.

Entegrasyonu geri yüklemek için rolü yeniden oluşturun. Talimatlar için bkz. Hizmete bağlı bir rol oluşturma.

Silme adımları için bkz. Hizmete bağlı bir rolü silme.

SSS

RAM kullanıcım neden otomatik olarak hizmete bağlı bir rol oluşturamaz?

Bir RAM kullanıcısı, hizmete bağlı rolü Alibaba Cloud hesabından devralır. Bir RAM kullanıcısı otomatik olarak hizmete bağlı bir rol oluşturamıyorsa, RAM konsolu aracılığıyla RAM kullanıcısına özel bir ilke atayın. Aşağıdaki ilke belgesini kullanın:

{
    "Version":"1",
    "Statement":[
        {
            "Action":"ram:CreateServiceLinkedRole",
            "Resource":"acs:ram:*:<Alibaba Cloud account ID>:role/*",
            "Effect":"Allow",
            "Condition":{
                "StringEquals":{
                    "ram:ServiceName":[
                        "sendevent-fc.eventbridge.aliyuncs.com",
                        "sendevent-mns.eventbridge.aliyuncs.com",
                        "sendevent-sms.eventbridge.aliyuncs.com",
                        "sendevent-directmail.eventbridge.aliyuncs.com",
                        "source-rocketmq.eventbridge.aliyuncs.com",
                        "source-mns.eventbridge.aliyuncs.com",
                        "source-cms.eventbridge.aliyuncs.com",
                        "source-mqtt.eventbridge.aliyuncs.com",
                        "source-sls.eventbridge.aliyuncs.com",
                        "sendevent-sae.eventbridge.aliyuncs.com",
                        "sendevent-rocketmq.eventbridge.aliyuncs.com",
                        "connect-vpc.eventbridge.aliyuncs.com",
                        "source-actiontrail.eventbridge.aliyuncs.com",
                        "source-rabbitmq.eventbridge.aliyuncs.com",
                        "sendevent-rabbitmq.eventbridge.aliyuncs.com",
                        "source-kafka.eventbridge.aliyuncs.com",
                        "sendevent-kafka.eventbridge.aliyuncs.com",
                        "sendevent-rds.eventbridge.aliyuncs.com",
                        "sendevent-arms.eventbridge.aliyuncs.com",
                        "sendevent-mqtt.eventbridge.aliyuncs.com"
                    ]
                }
            }
        }
    ]
}

<Alibaba Cloud account ID> ifadesini Alibaba Cloud hesabınızın gerçek kimliği ile değiştirin.

Bu ilkeyi atadıktan sonra RAM kullanıcısı hala rolü oluşturamıyorsa, bunun yerine RAM kullanıcısına AliyunEventBridgeFullAccess sistem ilkesini verin. Ayrıntılar için bkz. Erişim ilkeleri ve örnekler.