DATASOURCE::VOD::MessageCallback类型用于查询事件通知配置详情。
语法
{
  "Type": "DATASOURCE::VOD::MessageCallback",
  "Properties": {
    "AppId": String,
    "RefreshOptions": String
  }
}属性
| 属性名称 | 类型 | 必须 | 允许更新 | 描述 | 约束 | 
| AppId | String | 是 | 是 | 应用 ID。 | 无 | 
| RefreshOptions | String | 否 | 是 | 当资源栈更新时,数据源资源的刷新策略。 | 有效值: 
 | 
返回值
Fn::GetAtt
- MnsEndpoint:回调方式选择 MNS 时,消息队列公网 Endpoint。 
- CallbackUrl:回调方式选择 HTTP 时,回调地址。 
- AuthSwitch:回调方式选择 HTTP 时,回调鉴权开关。 
- AppId:应用 ID。 
- CallbackType:回调方式。 
- EventTypeList:回调事件类型。 
- MnsQueueName:消息队列名称。 
- AuthKey:鉴权 Key。 
示例
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  AppId:
    Type: String
    Description:
      en: The ID of the application.
    Required: true
Resources:
  ExtensionDataSource:
    Type: DATASOURCE::VOD::MessageCallback
    Properties:
      AppId:
        Ref: AppId
Outputs:
  MnsEndpoint:
    Description: The public endpoint of MNS. This parameter is returned only for MNS callbacks.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - MnsEndpoint
  CallbackUrl:
    Description: The callback URL. This parameter is returned only for HTTP callbacks.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - CallbackUrl
  AuthSwitch:
    Description: 'Indicates whether callback authentication is enabled. This parameter is returned only for HTTP callbacks. '
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - AuthSwitch
  AppId:
    Description: The ID of the application.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - AppId
  CallbackType:
    Description: The callback method.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - CallbackType
  EventTypeList:
    Description: The type of the callback event.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - EventTypeList
  MnsQueueName:
    Description: The name of the Message Service (MNS) queue. This parameter is returned only for MNS callbacks.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - MnsQueueName
  AuthKey:
    Description: The cryptographic key. This parameter is returned only for HTTP callbacks.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - AuthKey
{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "AppId": {
      "Type": "String",
      "Description": {
        "en": "The ID of the application."
      },
      "Required": true
    }
  },
  "Resources": {
    "ExtensionDataSource": {
      "Type": "DATASOURCE::VOD::MessageCallback",
      "Properties": {
        "AppId": {
          "Ref": "AppId"
        }
      }
    }
  },
  "Outputs": {
    "MnsEndpoint": {
      "Description": "The public endpoint of MNS. This parameter is returned only for MNS callbacks.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "MnsEndpoint"
        ]
      }
    },
    "CallbackUrl": {
      "Description": "The callback URL. This parameter is returned only for HTTP callbacks.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "CallbackUrl"
        ]
      }
    },
    "AuthSwitch": {
      "Description": "Indicates whether callback authentication is enabled. This parameter is returned only for HTTP callbacks. ",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "AuthSwitch"
        ]
      }
    },
    "AppId": {
      "Description": "The ID of the application.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "AppId"
        ]
      }
    },
    "CallbackType": {
      "Description": "The callback method.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "CallbackType"
        ]
      }
    },
    "EventTypeList": {
      "Description": "The type of the callback event.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "EventTypeList"
        ]
      }
    },
    "MnsQueueName": {
      "Description": "The name of the Message Service (MNS) queue. This parameter is returned only for MNS callbacks.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "MnsQueueName"
        ]
      }
    },
    "AuthKey": {
      "Description": "The cryptographic key. This parameter is returned only for HTTP callbacks.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "AuthKey"
        ]
      }
    }
  }
}
                        该文章对您有帮助吗?