All Products
Search
Document Center

Resource Orchestration Service:ALIYUN::ResourceManager::MessageContact

更新時間:Jul 06, 2026

Use ALIYUN::ResourceManager::MessageContact to add a message contact.

Syntax

{
  "Type": "ALIYUN::ResourceManager::MessageContact",
  "Properties": {
    "EmailAddress": String,
    "MessageTypes": List,
    "MessageContactName": String,
    "Title": String,
    "PhoneNumber": String
  }
}

Properties

Property

Type

Required

Editable

Description

Constraints

EmailAddress

String

Yes

Yes

The email address of the contact.

None

MessageContactName

String

Yes

Yes

The name of the contact.

The name must be unique within the resource directory. The name must be 2 to 12 characters long and contain only letters.

MessageTypes

List

Yes

Yes

The message types received by the contact.

None

Title

String

Yes

Yes

The job title of the contact.

Valid values:

  • TechnicalDirector

  • MaintenanceDirector

  • ProjectDirector

  • CEO

  • Other

PhoneNumber

String

No

Yes

The mobile phone number of the contact.

None

Return values

Fn::GetAtt

  • CreateTime: The creation time of the message contact.

  • MessageContactId: The ID of the message contact.

  • MessageTypes: The message types received by the contact.

  • Title: The job title of the contact.

  • PhoneNumber: The mobile phone number of the contact.

  • MessageContactName: The name of the contact.

  • EmailAddress: The email address of the contact.

Examples

ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  MessageTypes:
    Description:
      en: The message types received by the contact.
    Required: true
    Type: Json
    AssociationProperty: List[Parameter]
    AssociationPropertyMetadata:
      Parameter:
        Type: String
        Description:
          en: |-
            The type of message the contact receives. Valid values:
            * ServiceMessage
            * FaultMessage.
            * AccountExpenses.
            * SecurityMessage.
            * ActivityMessage.
            * ProductMessage.
        AllowedValues:
          - ServiceMessage
          - FaultMessage
          - AccountExpenses
          - SecurityMessage
          - ActivityMessage
          - ProductMessage
        Default: Null
        Required: false
  MessageContactName:
    Type: String
    Description:
      en: The name of the contact. The name must be unique in your resource directory. The name must be 2 to 12 characters long and can contain only letters.
    MinLength: 2
    MaxLength: 12
    Required: true
  EmailAddress:
    Type: String
    Description:
      en: The email address of the contact.
    Required: true
  PhoneNumber:
    Type: String
    Description:
      en: The mobile phone number of the contact.
    Default: Null
    Required: false
  Title:
    Type: String
    Description:
      en: |-
        The job title of the contact. Valid values:
        * TechnicalDirector.
        * MaintenanceDirector.
        * CEO.
        * ProjectDirector.
        * Other.
    AllowedValues:
      - TechnicalDirector
      - MaintenanceDirector
      - ProjectDirector
      - CEO
      - Other
    Required: true
Resources:
  ExtensionResource:
    Type: ALIYUN::ResourceManager::MessageContact
    Properties:
      MessageTypes:
        Ref: MessageTypes
      MessageContactName:
        Ref: MessageContactName
      EmailAddress:
        Ref: EmailAddress
      PhoneNumber:
        Ref: PhoneNumber
      Title:
        Ref: Title
Outputs:
  Title:
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - Title
    Description: The job title of the contact.
  MessageContactName:
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - MessageContactName
    Description: The name of the contact.
  MessageContactId:
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - MessageContactId
    Description: The ID of the message contact.
  MessageTypes:
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - MessageTypes
    Description: The types of messages received by the contact.
  EmailAddress:
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - EmailAddress
    Description: The email address of the contact.
  PhoneNumber:
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - PhoneNumber
    Description: The mobile phone number of the contact.
  CreateTime:
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - CreateTime
    Description: The creation time of the message contact.
{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "MessageTypes": {
      "Description": {
        "en": "The message types received by the contact."
      },
      "Required": true,
      "Type": "Json",
      "AssociationProperty": "List[Parameter]",
      "AssociationPropertyMetadata": {
        "Parameter": {
          "Type": "String",
          "Description": {
            "en": "The type of message the contact receives. Valid values:\n* ServiceMessage\n* FaultMessage.\n* AccountExpenses.\n* SecurityMessage.\n* ActivityMessage.\n* ProductMessage."
          },
          "AllowedValues": [
            "ServiceMessage",
            "FaultMessage",
            "AccountExpenses",
            "SecurityMessage",
            "ActivityMessage",
            "ProductMessage"
          ],
          "Default": null,
          "Required": false
        }
      }
    },
    "MessageContactName": {
      "Type": "String",
      "Description": {
        "en": "The name of the contact. The name must be unique in your resource directory. The name must be 2 to 12 characters long and can contain only letters."
      },
      "MinLength": 2,
      "MaxLength": 12,
      "Required": true
    },
    "EmailAddress": {
      "Type": "String",
      "Description": {
        "en": "The email address of the contact."
      },
      "Required": true
    },
    "PhoneNumber": {
      "Type": "String",
      "Description": {
        "en": "The mobile phone number of the contact."
      },
      "Default": null,
      "Required": false
    },
    "Title": {
      "Type": "String",
      "Description": {
        "en": "The job title of the contact. Valid values:\n* TechnicalDirector.\n* MaintenanceDirector.\n* CEO.\n* ProjectDirector.\n* Other."
      },
      "AllowedValues": [
        "TechnicalDirector",
        "MaintenanceDirector",
        "ProjectDirector",
        "CEO",
        "Other"
      ],
      "Required": true
    }
  },
  "Resources": {
    "ExtensionResource": {
      "Type": "ALIYUN::ResourceManager::MessageContact",
      "Properties": {
        "MessageTypes": {
          "Ref": "MessageTypes"
        },
        "MessageContactName": {
          "Ref": "MessageContactName"
        },
        "EmailAddress": {
          "Ref": "EmailAddress"
        },
        "PhoneNumber": {
          "Ref": "PhoneNumber"
        },
        "Title": {
          "Ref": "Title"
        }
      }
    }
  },
  "Outputs": {
    "Title": {
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "Title"
        ]
      },
      "Description": "The job title of the contact."
    },
    "MessageContactName": {
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "MessageContactName"
        ]
      },
      "Description": "The name of the contact."
    },
    "MessageContactId": {
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "MessageContactId"
        ]
      },
      "Description": "The ID of the message contact."
    },
    "MessageTypes": {
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "MessageTypes"
        ]
      },
      "Description": "The types of messages received by the contact."
    },
    "EmailAddress": {
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "EmailAddress"
        ]
      },
      "Description": "The email address of the contact."
    },
    "PhoneNumber": {
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "PhoneNumber"
        ]
      },
      "Description": "The mobile phone number of the contact."
    },
    "CreateTime": {
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "CreateTime"
        ]
      },
      "Description": "The creation time of the message contact."
    }
  }
}