All Products
Search
Document Center

EventBridge:CreateServiceLinkedRoleForProduct

Last Updated:Sep 18, 2025

Creates a service-linked role (SLR) for a product.

Operation description

Creates a service-linked role (SLR) for a 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 name of the SLR that is associated with the cloud 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 Direct Mail.

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

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

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

  • AliyunServiceRoleForEventBridgeSourceActionTrail: Obtains operation records from ActionTrail to use as event sources.

  • AliyunServiceRoleForEventBridgeSourceRabbitMQ: Integrates an ApsaraMQ for RabbitMQ instance into EventBridge.

  • AliyunServiceRoleForEventBridgeSendToRabbitMQ: Delivers EventBridge events to an ApsaraMQ for RabbitMQ instance.

  • AliyunServiceRoleForEventBridgeSendToRocketMQ: Delivers EventBridge events to an ApsaraMQ for RocketMQ instance.

  • AliyunServiceRoleForEventBridgeSourceCMS: Integrates Cloud Monitor (CMS) into EventBridge.

  • AliyunServiceRoleForEventBridgeSendToKafka: Delivers EventBridge events to an ApsaraMQ for Kafka cluster.

  • AliyunServiceRoleForEventBridgeSourceKafka: Integrates ApsaraMQ for Kafka into EventBridge.

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

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

  • AliyunServiceRoleForEventBridgeSourceMqtt: Integrates ApsaraMQ for MQTT into EventBridge.

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

AliyunServiceRoleForEventBridgeSendToMNS

Response elements

Element

Type

Description

Example

object

The returned data.

Message

string

The response 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. A value of "Success" indicates that the request was successful. For more information about other values, see Error codes.

Success

Success

boolean

Indicates whether the request was successful. A value of `true` indicates success.

true

HttpCode

integer

The HTTP status code.

  • 2xx: A success status code.

  • 3xx: A redirection status code.

  • 4xx: A client error status code.

  • 5xx: A server error 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.