ALIYUN::PAIPlugin::Template类型用于新增模板。
语法
{
"Type": "ALIYUN::PAIPlugin::Template",
"Properties": {
"Content": String,
"Description": String,
"Name": String,
"Type": Integer,
"SignatureId": String,
"Signature": String
}
}
属性
属性名称 | 类型 | 必须 | 允许更新 | 描述 | 约束 |
Content | String | 是 | 否 | 模板的内容。 | 无 |
Description | String | 是 | 否 | 模板描述。 | 无 |
Name | String | 是 | 否 | 模板名称。 | 无 |
Type | Integer | 是 | 否 | 模板的类型。 | 取值:
|
SignatureId | String | 否 | 否 | 签名ID。 | 您必须填写SignatureId或Signature才可以完成模板的创建,但不能同时选择两者。 |
Signature | String | 否 | 否 | 签名。 | 您必须填写SignatureId或Signature才可以完成模板的创建,但不能同时选择两者。 |
返回值
Fn::GetAtt
CreatedTime:签名的创建时间。
Description:模板描述。
Id:签名ID。
Reason:审阅建议。
Name:签名。
示例
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
Content:
Description:
en: The content of the template.
Required: true
Type: String
Description:
AssociationProperty: TextArea
Description:
en: For the template content, please keep the total word count within 70 words.
The excess will be charged as long text messages. Each text message is recorded
as 67 words.
Required: true
Type: String
Name:
Description:
en: The name of the template.
Required: true
Type: String
Signature:
Description:
en: The name of the Signature, You must select either Signature or SignatureId,
but not both.
Required: false
Type: String
SignatureId:
Description:
en: The ID of the Signature, You must select either Signature or SignatureId,
but not both.
Required: false
Type: String
Type:
AllowedValues:
- 0
- 1
- 2
Description:
en: 'The type of the template. The following values are supported:
0: Verification code.
1: SMS notification.
2: Promotional SMS.'
Required: true
Type: Number
Resources:
ExtensionResource:
Properties:
Content:
Ref: Content
Description:
Ref: Description
Name:
Ref: Name
Signature:
Ref: Signature
SignatureId:
Ref: SignatureId
Type:
Ref: Type
Type: ALIYUN::PAIPlugin::Template
Outputs:
CreatedTime:
Description: The creation time of the Signature.
Value:
Fn::GetAtt:
- ExtensionResource
- CreatedTime
Description:
Description: Application instructions.
Value:
Fn::GetAtt:
- ExtensionResource
- Description
Id:
Description: The ID of the Signature.
Value:
Fn::GetAtt:
- ExtensionResource
- Id
Name:
Description: The name of the Signature.
Value:
Fn::GetAtt:
- ExtensionResource
- Name
Reason:
Description: Review recommendations.
Value:
Fn::GetAtt:
- ExtensionResource
- Reason
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"SignatureId": {
"Type": "String",
"Description": {
"en": "The ID of the Signature, You must select either Signature or SignatureId, but not both."
},
"Required": false
},
"Type": {
"Type": "Number",
"Description": {
"en": "The type of the template. The following values are supported:\n0: Verification code.\n1: SMS notification.\n2: Promotional SMS."
},
"AllowedValues": [
0,
1,
2
],
"Required": true
},
"Description": {
"AssociationProperty": "TextArea",
"Type": "String",
"Description": {
"en": "For the template content, please keep the total word count within 70 words. The excess will be charged as long text messages. Each text message is recorded as 67 words."
},
"Required": true
},
"Content": {
"Type": "String",
"Description": {
"en": "The content of the template."
},
"Required": true
},
"Signature": {
"Type": "String",
"Description": {
"en": "The name of the Signature, You must select either Signature or SignatureId, but not both."
},
"Required": false
},
"Name": {
"Type": "String",
"Description": {
"en": "The name of the template."
},
"Required": true
}
},
"Resources": {
"ExtensionResource": {
"Type": "ALIYUN::PAIPlugin::Template",
"Properties": {
"SignatureId": {
"Ref": "SignatureId"
},
"Type": {
"Ref": "Type"
},
"Description": {
"Ref": "Description"
},
"Content": {
"Ref": "Content"
},
"Signature": {
"Ref": "Signature"
},
"Name": {
"Ref": "Name"
}
}
}
},
"Outputs": {
"CreatedTime": {
"Description": "The creation time of the Signature.",
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"CreatedTime"
]
}
},
"Description": {
"Description": "Application instructions.",
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"Description"
]
}
},
"Id": {
"Description": "The ID of the Signature.",
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"Id"
]
}
},
"Reason": {
"Description": "Review recommendations.",
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"Reason"
]
}
},
"Name": {
"Description": "The name of the Signature.",
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"Name"
]
}
}
}
}
文档内容是否对您有帮助?