Skip to content

TemplateProps

Properties for defining a Template.

See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-paiplugin-template

Initializer

import ros_cdk_paiplugin
ros_cdk_paiplugin.TemplateProps(
  content: typing.Union[str, IResolvable],
  description: typing.Union[str, IResolvable],
  name: typing.Union[str, IResolvable],
  type: typing.Union[typing.Union[int, float], IResolvable],
  signature: typing.Union[str, IResolvable] = None,
  signature_id: typing.Union[str, IResolvable] = None
)

Properties

Name Type Description
content typing.Union[str, ros_cdk_core.IResolvable] Property content: The content of the template.
description typing.Union[str, ros_cdk_core.IResolvable] Property description: For the template content, please keep the total word count within 70 words.
name typing.Union[str, ros_cdk_core.IResolvable] Property name: The name of the template.
type typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable] Property type: The type of the template.
signature typing.Union[str, ros_cdk_core.IResolvable] Property signature: The name of the Signature, You must select either Signature or SignatureId, but not both.
signature_id typing.Union[str, ros_cdk_core.IResolvable] Property signatureId: The ID of the Signature, You must select either Signature or SignatureId, but not both.

contentRequired

content: typing.Union[str, IResolvable]
  • Type: typing.Union[str, ros_cdk_core.IResolvable]

Property content: The content of the template.


descriptionRequired

description: typing.Union[str, IResolvable]
  • Type: typing.Union[str, 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.


nameRequired

name: typing.Union[str, IResolvable]
  • Type: typing.Union[str, ros_cdk_core.IResolvable]

Property name: The name of the template.


typeRequired

type: typing.Union[typing.Union[int, float], IResolvable]
  • Type: typing.Union[typing.Union[int, float], 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.


signatureOptional

signature: typing.Union[str, IResolvable]
  • Type: typing.Union[str, ros_cdk_core.IResolvable]

Property signature: The name of the Signature, You must select either Signature or SignatureId, but not both.


signature_idOptional

signature_id: typing.Union[str, IResolvable]
  • Type: typing.Union[str, ros_cdk_core.IResolvable]

Property signatureId: The ID of the Signature, You must select either Signature or SignatureId, but not both.