Select your cookie preferences

We use essential cookies and similar tools that are necessary to provide our site and services. We use performance cookies to collect anonymous statistics, so we can understand how customers use our site and make improvements. Essential cookies cannot be deactivated, but you can choose “Customize” or “Decline” to decline performance cookies.

If you agree, AWS and approved third parties will also use cookies to provide useful site features, remember your preferences, and display relevant content, including relevant advertising. To accept or decline all non-essential cookies, choose “Accept” or “Decline.” To make more detailed choices, choose “Customize.”

AWS::ResourceGroups::Group Query

Focus mode
AWS::ResourceGroups::Group Query - AWS CloudFormation
Filter View

Specifies details within a ResourceQuery structure that determines the membership of the resource group. The contents required in the Query structure are determined by the Type property of the containing ResourceQuery structure.

Syntax

To declare this entity in your AWS CloudFormation template, use the following syntax:

JSON

{ "ResourceTypeFilters" : [ String, ... ], "StackIdentifier" : String, "TagFilters" : [ TagFilter, ... ] }

Properties

ResourceTypeFilters

Specifies limits to the types of resources that can be included in the resource group. For example, if ResourceTypeFilters is ["AWS::EC2::Instance", "AWS::DynamoDB::Table"], only EC2 instances or DynamoDB tables can be members of this resource group. The default value is ["AWS::AllSupported"].

Required: No

Type: Array of String

Update requires: No interruption

StackIdentifier

Specifies the ARN of a CloudFormation stack. All supported resources of the CloudFormation stack are members of the resource group. If you don't specify an ARN, this parameter defaults to the current stack that you are defining, which means that all the resources of the current stack are grouped.

You can specify a value for StackIdentifier only when the ResourceQuery.Type property is CLOUDFORMATION_STACK_1_0.

Required: No

Type: String

Update requires: No interruption

TagFilters

A list of key-value pair objects that limit which resources can be members of the resource group. This property is required when the ResourceQuery.Type property is TAG_FILTERS_1_0.

A resource must have a tag that matches every filter that is provided in the TagFilters list.

Required: Conditional

Type: Array of TagFilter

Update requires: No interruption

On this page

PrivacySite termsCookie preferences
© 2025, Amazon Web Services, Inc. or its affiliates. All rights reserved.