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。 | ALIYUN::PAIPlugin::Template を使用するには、SignatureId または Signature を指定する必要があります。 |
Signature | String | いいえ | いいえ | 署名。 | ALIYUN::PAIPlugin::Template を使用するには、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": "署名の作成時刻。",
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"CreatedTime"
]
}
},
"Description": {
"Description": "アプリケーションの説明。",
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"Description"
]
}
},
"Id": {
"Description": "署名の ID。",
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"Id"
]
}
},
"Reason": {
"Description": "レビューの推奨事項。",
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"Reason"
]
}
},
"Name": {
"Description": "署名名。",
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"Name"
]
}
}
}
}