All Products
Search
Document Center

EventBridge:CreateServiceLinkedRoleForProduct

Last Updated:Dec 19, 2025

Creates the service-linked role (SLR) that is associated with a specified product.

Operation description

Creates the service-linked role (SLR) that is associated with a specified product.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

No authorization for this operation. If you encounter issues with this operation, contact technical support.

Request parameters

Parameter

Type

Required

Description

Example

ProductName

string

Yes

The name of the cloud service or the service-linked role (SLR) that is associated with the service.

  • AliyunServiceRoleForEventBridgeSendToFC: Delivers events to Function Compute (FC).

  • AliyunServiceRoleForEventBridgeSendToSMS: Delivers events as text messages to Short Message Service (SMS).

  • AliyunServiceRoleForEventBridgeSendToDirectMail: Delivers events as emails to Alibaba Cloud DirectMail.

  • AliyunServiceRoleForEventBridgeSourceRocketMQ: Integrates messages from ApsaraMQ for RocketMQ instances into EventBridge.

  • AliyunServiceRoleForEventBridgeSourceMNS: Integrates Message Service (MNS) into EventBridge.

  • AliyunServiceRoleForEventBridgeConnectVPC: Lets EventBridge access your Virtual Private Cloud (VPC) network.

  • AliyunServiceRoleForEventBridgeSourceActionTrail: Uses operation records from ActionTrail as event sources.

  • AliyunServiceRoleForEventBridgeSourceRabbitMQ: Integrates ApsaraMQ for RabbitMQ instances into EventBridge.

  • AliyunServiceRoleForEventBridgeSendToRabbitMQ: Delivers EventBridge events to ApsaraMQ for RabbitMQ instances.

  • AliyunServiceRoleForEventBridgeSendToRocketMQ: Delivers EventBridge events to ApsaraMQ for RocketMQ instances.

  • AliyunServiceRoleForEventBridgeSourceCMS: Integrates CloudMonitor (CMS) into EventBridge.

  • AliyunServiceRoleForEventBridgeSendToKafka: Delivers EventBridge events to ApsaraMQ for Kafka clusters.

  • AliyunServiceRoleForEventBridgeSourceKafka: Integrates ApsaraMQ for Kafka into EventBridge.

  • AliyunServiceRoleForEventBridgeSendToRDS: Delivers EventBridge events to Relational Database Service (RDS) instances.

  • AliyunServiceRoleForEventBridgeSendToSAE: Delivers EventBridge events to Serverless App Engine (SAE) applications.

  • AliyunServiceRoleForEventBridgeSourceMqtt: Integrates ApsaraMQ for MQTT into EventBridge.

  • AliyunServiceRoleForEventBridgeSourceSLS: Integrates Simple Log Service (SLS) into EventBridge.

AliyunServiceRoleForEventBridgeSendToMNS

Response elements

Element

Type

Description

Example

object

The response parameters.

Message

string

The returned message. If the request is successful, `success` is returned.

success

RequestId

string

The ID of the request.

C36345A1-75F3-5A1A-BFCF-33B8271971FA

Code

string

The status code of the request. `Success` indicates that the request was successful. For more information about error codes, see the Error codes section.

Success

Success

boolean

Indicates whether the request was successful. If the request is successful, `true` is returned.

true

HttpCode

integer

The HTTP status code. Valid values:

  • 2xx: a 2xx status code.

  • 3xx: a 3xx status code.

  • 4xx: a 4xx status code.

  • 5xx: a 5xx status code.

If this parameter is not specified, all HTTP status codes are queried.

200

Examples

Success response

JSON format

{
  "Message": "success",
  "RequestId": "C36345A1-75F3-5A1A-BFCF-33B8271971FA",
  "Code": "Success",
  "Success": true,
  "HttpCode": 200
}

Error codes

HTTP status code

Error code

Error message

Description

403 ServiceNotEnable Service not enable

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.