Todos os produtos
Search
Central de documentação

Resource Orchestration Service:ALIYUN::PAIPlugin::Template

Última atualização: Jun 27, 2026

Cria um modelo.

Sintaxe

{
  "Type": "ALIYUN::PAIPlugin::Template",
  "Properties": {
    "Content": String,
    "Description": String,
    "Name": String,
    "Type": Integer,
    "SignatureId": String,
    "Signature": String
  }
}

Propriedades

Propriedade

Tipo

Obrigatória

Editável

Descrição

Restrição

Content

String

Sim

Não

Conteúdo do modelo.

Nenhuma.

Description

String

Sim

Não

Descrição do modelo.

Nenhuma.

Name

String

Sim

Não

Nome do modelo.

Nenhuma.

Type

Integer

Sim

Não

Tipo do modelo.

Valores válidos:

  • 0: código de verificação

  • 1: notificação por SMS

  • 2: SMS promocional

SignatureId

String

Não

Não

ID da assinatura.

Especifique SignatureId ou Signature.

Signature

String

Não

Não

Nome da assinatura.

Especifique SignatureId ou Signature.

Valores de retorno

Fn::GetAtt

  • CreatedTime: hora de criação da assinatura.

  • Description: descrição do modelo.

  • Id: ID da assinatura.

  • Reason: sugestão de revisão.

  • Name: nome da assinatura.

Exemplos

                              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"
        ]
      }
    }
  }
}