O recurso ALIYUN::ROCKETMQ::Instance cria uma instância da Standard Edition.
Sintaxe
{
"Type": "ALIYUN::ROCKETMQ::Instance",
"Properties": {
"Remark": String,
"InstanceName": String,
"Tags": List,
"DeletionForce": Boolean
}
}
Propriedades
|
Propriedade |
Tipo |
Obrigatória |
Editável |
Descrição |
Restrição |
|
Remark |
String |
Não |
Sim |
Descrição da instância. |
Máximo de 128 caracteres. |
|
InstanceName |
String |
Sim |
Sim |
Nome da instância. |
Deve ter entre 3 e 64 caracteres. Pode conter letras, dígitos, hifens (-) e sublinhados (_). |
|
Tags |
List |
Não |
Sim |
Tags da instância. |
Adicione até 20 tags. Para mais informações, consulte Propriedades de Tags. |
|
DeletionForce |
Boolean |
Não |
Sim |
Define se a exclusão da instância será forçada. |
Nenhuma. |
Sintaxe de Tags
"Tags": [
{
"Key": String,
"Value": String
}
]
Propriedades de Tags
|
Propriedade |
Tipo |
Obrigatória |
Editável |
Descrição |
Restrição |
|
Key |
String |
Sim |
Não |
Chave da tag. |
Deve ter entre 1 e 128 caracteres. Não pode conter |
|
Value |
String |
Não |
Não |
Valor da tag. |
Máximo de 128 caracteres. Não pode conter |
Valores de retorno
Fn::GetAtt
InstanceId: ID da instância.
InstanceType: edição da instância. O valor 1 indica a Standard Edition.
HttpInternetEndpoint: endpoint HTTP público.
HttpInternetSecureEndpoint: endpoint HTTPS público.
TcpEndpoint: endpoint TCP.
HttpInternalEndpoint: endpoint HTTP privado.
InstanceName: nome da instância.
Arn: Alibaba Cloud Resource Name (ARN).
Exemplos
Formato YAML
ROSTemplateFormatVersion: '2015-09-01'
Parameters: {}
Resources:
Instance:
Type: ALIYUN::ROCKETMQ::Instance
Properties:
InstanceName: TestRocketMQ
Outputs:
InstanceName:
Description: Instance name
Value:
Fn::GetAtt:
- Instance
- InstanceName
HttpInternalEndpoint:
Description: The internal HTTP endpoint for the Message Queue for Apache RocketMQ instance.
Value:
Fn::GetAtt:
- Instance
- HttpInternalEndpoint
InstanceId:
Description: Instance ID created
Value:
Fn::GetAtt:
- Instance
- InstanceId
TcpEndpoint:
Description: The TCP endpoint for the Message Queue for Apache RocketMQ instance.
Value:
Fn::GetAtt:
- Instance
- TcpEndpoint
HttpInternetEndpoint:
Description: The Internet HTTP endpoint for the Message Queue for Apache RocketMQ instance.
Value:
Fn::GetAtt:
- Instance
- HttpInternetEndpoint
InstanceType:
Description: Instance Type
Value:
Fn::GetAtt:
- Instance
- InstanceType
HttpInternetSecureEndpoint:
Description: The Internet HTTPS endpoint for the Message Queue for Apache RocketMQ instance.
Value:
Fn::GetAtt:
- Instance
- HttpInternetSecureEndpoint
Formato JSON
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
},
"Resources": {
"Instance": {
"Type": "ALIYUN::ROCKETMQ::Instance",
"Properties": {
"InstanceName": "TestRocketMQ"
}
}
},
"Outputs": {
"InstanceName": {
"Description": "Instance name",
"Value": {
"Fn::GetAtt": [
"Instance",
"InstanceName"
]
}
},
"HttpInternalEndpoint": {
"Description": "The internal HTTP endpoint for the Message Queue for Apache RocketMQ instance.",
"Value": {
"Fn::GetAtt": [
"Instance",
"HttpInternalEndpoint"
]
}
},
"InstanceId": {
"Description": "Instance ID created",
"Value": {
"Fn::GetAtt": [
"Instance",
"InstanceId"
]
}
},
"TcpEndpoint": {
"Description": "The TCP endpoint for the Message Queue for Apache RocketMQ instance.",
"Value": {
"Fn::GetAtt": [
"Instance",
"TcpEndpoint"
]
}
},
"HttpInternetEndpoint": {
"Description": "The Internet HTTP endpoint for the Message Queue for Apache RocketMQ instance.",
"Value": {
"Fn::GetAtt": [
"Instance",
"HttpInternetEndpoint"
]
}
},
"InstanceType": {
"Description": "Instance Type",
"Value": {
"Fn::GetAtt": [
"Instance",
"InstanceType"
]
}
},
"HttpInternetSecureEndpoint": {
"Description": "The Internet HTTPS endpoint for the Message Queue for Apache RocketMQ instance.",
"Value": {
"Fn::GetAtt": [
"Instance",
"HttpInternetSecureEndpoint"
]
}
}
}
}