TemplateProps
Properties for defining a Template
.
See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-paiplugin-template
Initializer
import { TemplateProps } from '@alicloud/ros-cdk-paiplugin'
const templateProps: TemplateProps = { ... }
Properties
Name | Type | Description |
---|---|---|
content |
string | @alicloud/ros-cdk-core.IResolvable |
Property content: The content of the template. |
description |
string | @alicloud/ros-cdk-core.IResolvable |
Property description: For the template content, please keep the total word count within 70 words. |
name |
string | @alicloud/ros-cdk-core.IResolvable |
Property name: The name of the template. |
type |
number | @alicloud/ros-cdk-core.IResolvable |
Property type: The type of the template. |
signature |
string | @alicloud/ros-cdk-core.IResolvable |
Property signature: The name of the Signature, You must select either Signature or SignatureId, but not both. |
signatureId |
string | @alicloud/ros-cdk-core.IResolvable |
Property signatureId: The ID of the Signature, You must select either Signature or SignatureId, but not both. |
content
Required
public readonly content: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Property content: The content of the template.
description
Required
public readonly description: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Property description: 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.
name
Required
public readonly name: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Property name: The name of the template.
type
Required
public readonly type: number | IResolvable;
- Type: number | @alicloud/ros-cdk-core.IResolvable
Property type: The type of the template.
The following values are supported: 0: Verification code. 1: SMS notification. 2: Promotional SMS.
signature
Optional
public readonly signature: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Property signature: The name of the Signature, You must select either Signature or SignatureId, but not both.
signatureId
Optional
public readonly signatureId: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Property signatureId: The ID of the Signature, You must select either Signature or SignatureId, but not both.