DATASOURCE::ROCKETMQ::Instances is used to query the 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 that are 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 has 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 creation time of the instance. | This value is a UNIX timestamp representing the number of milliseconds that have elapsed since the epoch time 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"
]
}
}
}
}