MessageCallbackProps
Properties for defining a MessageCallback
.
See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-vod-messagecallback
Initializer
import "github.com/alibabacloud-go/ros-cdk/alicloudroscdkvod"
&alicloudroscdkvod.MessageCallbackProps {
CallbackType: interface{},
AppId: interface{},
AuthKey: interface{},
AuthSwitch: interface{},
CallbackUrl: interface{},
EventTypeList: interface{},
MnsEndpoint: interface{},
MnsQueueName: interface{},
}
Properties
Name | Type | Description |
---|---|---|
CallbackType |
interface{} |
Property callbackType: Callback method. |
AppId |
interface{} |
Property appId: App ID. |
AuthKey |
interface{} |
Property authKey: Authentication Key, up to 32 characters, must contain both uppercase and lowercase letters and numbers. |
AuthSwitch |
interface{} |
Property authSwitch: The authentication switch of the HTTP callback, this parameter is valid when the callback method is set to HTTP. |
CallbackUrl |
interface{} |
Property callbackUrl: Callback address. |
EventTypeList |
interface{} |
Property eventTypeList: Callback event type. |
MnsEndpoint |
interface{} |
Property mnsEndpoint: This parameter needs to be set when the callback method is MNS for the message queue public network endpoint. |
MnsQueueName |
interface{} |
Property mnsQueueName: The name of the message queue, which can be viewed in the queue list by logging in to the message service console. |
CallbackType
Required
CallbackType interface{}
- Type: interface{}
Property callbackType: Callback method.
AppId
Optional
AppId interface{}
- Type: interface{}
Property appId: App ID.
If it is not passed, it is the ID of the default application of the system, with a fixed value: app-1000000.
AuthKey
Optional
AuthKey interface{}
- Type: interface{}
Property authKey: Authentication Key, up to 32 characters, must contain both uppercase and lowercase letters and numbers.
This parameter can be set when the callback method is HTTP.
AuthSwitch
Optional
AuthSwitch interface{}
- Type: interface{}
Property authSwitch: The authentication switch of the HTTP callback, this parameter is valid when the callback method is set to HTTP.
CallbackUrl
Optional
CallbackUrl interface{}
- Type: interface{}
Property callbackUrl: Callback address.
When the callback method is HTTP, this parameter needs to be set. The length of the callback address URL cannot exceed 256 bytes, and setting multiple callback addresses is not supported.
EventTypeList
Optional
EventTypeList interface{}
- Type: interface{}
Property eventTypeList: Callback event type.
When the value is empty, all message notifications are turned off, and when the value is ALL, all message notifications are turned on. You can also specify to enable certain message notifications, and use a comma (,) to separate multiple event types.
MnsEndpoint
Optional
MnsEndpoint interface{}
- Type: interface{}
Property mnsEndpoint: This parameter needs to be set when the callback method is MNS for the message queue public network endpoint.
You can log in to the message service console and click the Get Endpoint button in the upper right corner to get it.
MnsQueueName
Optional
MnsQueueName interface{}
- Type: interface{}
Property mnsQueueName: The name of the message queue, which can be viewed in the queue list by logging in to the message service console.
When the callback method is MNS, this parameter needs to be set.