ALIYUN::PAIPlugin::Campaign

ALIYUN::PAIPlugin::Campaign类型用于创建运营活动。

语法

{
  "Type": "ALIYUN::PAIPlugin::Campaign",
  "Properties": {
    "Name": String,
    "Remark": String
  }
}

属性

属性名称

类型

必须

允许更新

描述

约束

Name

String

运营活动名称。

Remark

String

备注。

返回值

Fn::GetAtt

CampaignId:运营活动ID。

示例

YAML格式

ROSTemplateFormatVersion: '2015-09-01'
Parameters: {}
Resources:
  Campaign:
    Type: ALIYUN::PAIPlugin::Campaign
    Properties:
      Name: VIP客户营销
Outputs:
  CampaignId:
    Description: The Campaign ID created this time.
    Value:
      Fn::GetAtt:
        - Campaign
        - CampaignId

JSON格式

{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
  },
  "Resources": {
    "Campaign": {
      "Type": "ALIYUN::PAIPlugin::Campaign",
      "Properties": {
        "Name": "VIP客户营销"
      }
    }
  },
  "Outputs": {
    "CampaignId": {
      "Description": "The Campaign ID created this time.",
      "Value": {
        "Fn::GetAtt": [
          "Campaign",
          "CampaignId"
        ]
      }
    }
  }
}