Queries information about all ApsaraMQ for RocketMQ instances.
Syntax
{
"Type": "DATASOURCE::ROCKETMQ::Instances",
"Properties": {
"RefreshOptions": String
}
}
Properties
|
Property |
Type |
Required |
Editable |
Description |
Constraint |
|
RefreshOptions |
String |
No |
Yes |
The refresh policy for data source resources when the stack is updated. |
Valid values:
|
Return values
Fn::GetAtt
-
Instances: Details of the instances.
-
InstanceIds: The IDs of the instances.
|
Property |
Type |
Description |
Constraint |
|
InstanceIds |
List |
The IDs of the instances. |
None. |
|
Instances |
List |
Details of the instances. |
None. |
|
Status |
Number |
The instance status. |
Valid values:
|
|
Tags |
Map |
The tags added to the instance. |
Example:
|
|
InstanceId |
string |
The instance ID. |
None. |
|
InstanceType |
Number |
The edition of the instance. |
Valid values:
For more information about instance editions and the differences between the editions, see Instance editions. |
|
IndependentNaming |
boolean |
Indicates whether the instance uses a separate namespace. |
Valid values:
|
|
InstanceName |
string |
The instance name. |
The name must be 3 to 64 characters in length and can contain letters, digits, hyphens (-), and underscores (_). |
|
CreateTime |
string |
The time when the instance was created. |
A UNIX timestamp in milliseconds since January 1, 1970, 00:00:00 UTC. |
|
ReleaseTime |
string |
The expiration time of the Platinum Edition instance. |
None. |
Examples
ROSTemplateFormatVersion: '2015-09-01'
Resources:
ExtensionDataSource:
Properties: {}
Type: DATASOURCE::ROCKETMQ::Instances
Outputs:
InstanceIds:
Description: The list of instance IDs.
Value:
Fn::GetAtt:
- ExtensionDataSource
- InstanceIds
Instances:
Description: The list of instances.
Value:
Fn::GetAtt:
- ExtensionDataSource
- Instances{
"ROSTemplateFormatVersion": "2015-09-01",
"Resources": {
"ExtensionDataSource": {
"Type": "DATASOURCE::ROCKETMQ::Instances",
"Properties": {}
}
},
"Outputs": {
"Instances": {
"Description": "The list of instances.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"Instances"
]
}
},
"InstanceIds": {
"Description": "The list of instance IDs.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"InstanceIds"
]
}
}
}
}