Todos os produtos
Search
Central de documentação

Resource Orchestration Service:DATASOURCE::VOD::MessageCallback

Última atualização: Jun 27, 2026

Consulta os detalhes das configurações de notificação de eventos.

Sintaxe

{
  "Type": "DATASOURCE::VOD::MessageCallback",
  "Properties": {
    "AppId": String,
    "RefreshOptions": String
  }
}

Propriedades

Propriedade

Tipo

Obrigatória

Editável

Descrição

Restrição

AppId

String

Sim

Sim

O ID do aplicativo.

Nenhuma.

RefreshOptions

String

Não

Sim

A política de atualização dos recursos da source de dados durante a atualização da pilha.

Valores válidos:

  • Never (padrão): não atualiza os recursos da source de dados durante a atualização da pilha.

  • Always: atualiza os recursos da source de dados durante a atualização da pilha.

Valores de retorno

Fn::GetAtt

  • MnsEndpoint: o endpoint público do Simple Message Queue (anteriormente MNS) (SMQ). Retornado apenas quando o método de callback for SMQ.

  • CallbackUrl: a URL de callback. Retornada apenas quando o método de callback for HTTP.

  • AuthSwitch: indica se a autenticação de callback está ativada. Retornado apenas quando o método de callback for HTTP.

  • AppId: o ID do aplicativo.

  • CallbackType: o método de callback.

  • EventTypeList: os tipos de evento de callback.

  • MnsQueueName: o nome da fila do SMQ.

  • AuthKey: a chave de autenticação.

Exemplos

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"
        ]
      }
    }
  }
}