更新时间:2023-04-20 GMT+08:00
分享

SMN.Subscription

模型说明

SMN.Subscription用于创建消息通知服务的订阅。

模型属性

表1 模型定义属性说明

属性

是否必选

描述

remark

备注

参数类型:string

取值说明:必须是UTF-8编码的字符串,否则无法正常显示中文

取值约束:{u'regex': u'^[-_a-zA-Z0-9\\u4e00-\\u9fa5]*$', u'min_length': 1, u'max_length': 126}

endpoint

接受消息的接入点

参数类型:string

取值说明:http协议,接入点必须以"http://"开头;https协议,接入点必须以"https://"开头;email协议,接入点必须是邮件地址;sms协议,接入点必须是一个电话号码

protocol

Endpoint推送的方式

参数类型:string

取值说明:当前仅支持["email", "sms", "http", "https"]

默认值:email

取值约束:可取"email", "sms", "http", "https"

topicUrn

主题的唯一资源标识

参数类型:string

取值说明:英文字符串类型,例如:urn:smn:southchina:c51567523b744d098a8a81ede51894ac:gcs-haha.

关联关系

表2 关联关系说明

关系说明

关联节点

被包含关系

SMN.Topic

输出

属性

参数类型

描述

topicUrn

string

主题的唯一资源标识

subscriptionUrn

string

订阅的唯一资源标识

blueprint样例

tosca_definitions_version: huaweicloud_tosca_version_1_0
inputs:
  smns33gi_topicUrn:
    description: 主题的唯一资源标识
    label: ''
  smns33gi_endpoint:
    description: 接受消息的接入点
    label: ''
node_templates:
  smns33gi:
    type: HuaweiCloud.SMN.Subscription
    properties:
      topicUrn:
        get_input: smns33gi_topicUrn
      endpoint:
        get_input: smns33gi_endpoint
      protocol: email
分享:

    相关文档

    相关产品