DATASOURCE::ROCKETMQ::Instances is used to query Message Queue for Apache RocketMQ instances.

Properties

None.

Return values

Fn::GetAtt

  • Instances: details of the instances.
  • InstanceIds: the IDs of the instances.
PropertyTypeDescriptionConstraint
InstanceIdsListThe IDs of the instances. None.
InstancesListDetails of the instances. None.
StatusNumberThe state of the instance. Valid values:
  • 0: A Platinum Edition instance is being deployed.
  • 5: A Standard Edition or Platinum Edition instance is running.
  • 7: A Platinum Edition instance is being upgraded and is running.
TagsMapThe tags that are added to the instance. Sample value:
[
            {
              "Key": "CartService",
              "Value": "ServiceA"
            }
          ]
InstanceIdstringThe ID of the instance. None.
InstanceTypeNumberThe edition of the instance. Valid values:
  • 1: Standard Edition
  • 2: Platinum Edition
For more information about the instance editions and differences between the editions, see Instance editions.
IndependentNamingbooleanIndicates whether a separate namespace is configured for the instance. Valid values:
  • true: A separate namespace is configured for the instance. The name of each resource must be unique in the instance. The names of resources in different instances can be the same.
  • false: No separate namespace is configured for the instance. The name of each resource must be globally unique among all instances.
InstanceNamestringThe name of the instance. The name must be 3 to 64 characters in length, and can contain letters, digits, hyphens (-), and underscores (_).
CreateTimestringThe time when the instance was created. 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.
ReleaseTimestringThe time when the Platinum Edition instance expires. None.

Examples

  • YAML format

    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
  • JSON format

    {
      "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"
            ]
          }
        }
      }
    }