La ressource ALIYUN::ROCKETMQ::Group crée un identifiant de groupe client (Group ID) pour la publication et l'abonnement aux messages.
Syntaxe
{
"Type": "ALIYUN::ROCKETMQ::Group",
"Properties": {
"InstanceId": String,
"GroupType": String,
"Remark": String,
"GroupId": String
}
}
Propriétés
| Propriété | Type | Obligatoire | Mise à jour autorisée | Description | Contraintes |
| InstanceId | String | Oui | Non | ID de l'instance à laquelle appartient le Group ID. | Aucune |
| GroupType | String | Non | Non | Protocole utilisé par le Group ID. | Valeurs valides :
|
| Remark | String | Non | Non | Notes | Aucune |
| GroupId | String | Oui | Non | Group ID du groupe de consommateurs à créer. | Doit commencer par GID_ ou GID-. Ne peut contenir que des lettres, des chiffres, des traits d'union (-) et des traits de soulignement (_). Longueur : 5 à 64 caractères. |
Valeurs de retour
Fn::GetAtt
GroupType : protocole du groupe.
InstanceId : ID de l'instance.
GroupId : ID du groupe.
Exemples
-
Format
YAMLROSTemplateFormatVersion: '2015-09-01' Resources: Group: Type: ALIYUN::ROCKETMQ::Group Properties: InstanceId: Ref: InstanceId GroupId: Ref: GroupId Parameters: InstanceId: Type: String Description: The ID of the instance. GroupId: MinLength: 7 Type: String Description: |- The group ID of the consumption cluster. When creating a group ID, pay attention to the following aspects: A group ID starts with"GID_" or "GID-", and contains letters, numbers, hyphens (-), and underscores (_). A group ID ranges from 7 to 64 bytes. Once a group ID is created, it cannot be edited anymore. MaxLength: 64 Outputs: GroupType: Description: Group Type Value: Fn::GetAtt: - Group - GroupType InstanceId: Description: Instance ID Value: Fn::GetAtt: - Group - InstanceId GroupId: Description: Group ID Value: Fn::GetAtt: - Group - GroupId -
Format
JSON{ "ROSTemplateFormatVersion": "2015-09-01", "Resources": { "Group": { "Type": "ALIYUN::ROCKETMQ::Group", "Properties": { "InstanceId": { "Ref": "InstanceId" }, "GroupId": { "Ref": "GroupId" } } } }, "Parameters": { "InstanceId": { "Type": "String", "Description": "The ID of the instance." }, "GroupId": { "MinLength": 7, "Type": "String", "Description": "The group ID of the consumption cluster. When creating a group ID, pay attention to the following aspects:\nA group ID starts with\"GID_\" or \"GID-\", and contains letters, numbers, hyphens (-), and underscores (_).\nA group ID ranges from 7 to 64 bytes.\nOnce a group ID is created, it cannot be edited anymore.", "MaxLength": 64 } }, "Outputs": { "GroupType": { "Description": "Group Type", "Value": { "Fn::GetAtt": [ "Group", "GroupType" ] } }, "InstanceId": { "Description": "Instance ID", "Value": { "Fn::GetAtt": [ "Group", "InstanceId" ] } }, "GroupId": { "Description": "Group ID", "Value": { "Fn::GetAtt": [ "Group", "GroupId" ] } } } }