DATASOURCE::ROS::StackGroups is used to query the details of stack groups.

Syntax

{
  "Type": "DATASOURCE::ROS::StackGroups",
  "Properties": {
    "ResourceGroupId": String
  }
}

Properties

PropertyTypeRequiredEditableDescriptionConstraint
ResourceGroupIdStringNoYesThe ID of the resource group. None.

Return values

Fn::GetAtt

  • StackGroups: details of the stack groups.
  • StackGroupNames: the names of the stack groups.
PropertyTypeDescriptionConstraint
StackGroupNamesListThe names of the stack groups. None.
StackGroupsListDetails of stack groups. None.
StatusStringThe state of the stack group. Valid values:
  • ACTIVE
  • DELETED
PermissionModelStringThe permission model of the stack group. Valid values:
  • SELF_MANAGED
  • SERVICE_MANAGED
DescriptionStringThe description of the stack group. None.
TagsListThe tags that are added to the stack group. Example:
[
        {
          "Key": "usage1",
          "Value": "test1"
        }
      ]
StackGroupIdStringThe ID of the stack group. None.
ResourceGroupIdStringThe ID of the resource group. None.
AutoDeploymentMapThe information about automatic deployment settings. Example:
{
        "Enabled": true,
        "RetainStacksOnAccountRemoval": true
      }
StackGroupNameStringThe name of the stack group. None.

Examples

  • YAML format

    ROSTemplateFormatVersion: '2015-09-01'
    Parameters:
      ResourceGroupId:
        Description: The ID of the resource group.
        Type: String
    Resources:
      ExtensionDataSource:
        Properties:
          ResourceGroupId:
            Ref: ResourceGroupId
        Type: DATASOURCE::ROS::StackGroups
    Outputs:
      StackGroupNames:
        Description: The list of stack group names.
        Value:
          Fn::GetAtt:
          - ExtensionDataSource
          - StackGroupNames
      StackGroups:
        Description: The list of stack groups.
        Value:
          Fn::GetAtt:
          - ExtensionDataSource
          - StackGroups
  • JSON format

    {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Parameters": {
        "ResourceGroupId": {
          "Type": "String",
          "Description": "The ID of the resource group."
        }
      },
      "Resources": {
        "ExtensionDataSource": {
          "Type": "DATASOURCE::ROS::StackGroups",
          "Properties": {
            "ResourceGroupId": {
              "Ref": "ResourceGroupId"
            }
          }
        }
      },
      "Outputs": {
        "StackGroups": {
          "Description": "The list of stack groups.",
          "Value": {
            "Fn::GetAtt": [
              "ExtensionDataSource",
              "StackGroups"
            ]
          }
        },
        "StackGroupNames": {
          "Description": "The list of stack group names.",
          "Value": {
            "Fn::GetAtt": [
              "ExtensionDataSource",
              "StackGroupNames"
            ]
          }
        }
      }
    }