Table Of Contents


User Guide

First time using the AWS CLI? See the User Guide for help getting started.

[ aws . resource-groups ]



Updates the resource query of a group.

See also: AWS API Documentation

See 'aws help' for descriptions of global parameters.


--group-name <value>
--resource-query <value>
[--cli-input-json <value>]
[--generate-cli-skeleton <value>]


--group-name (string)

The name of the resource group for which you want to edit the query.

--resource-query (structure)

The resource query that determines which AWS resources are members of the resource group.

Shorthand Syntax:


JSON Syntax:

  "Type": "TAG_FILTERS_1_0",
  "Query": "string"

--cli-input-json (string) Performs service operation based on the JSON string provided. The JSON string follows the format provided by --generate-cli-skeleton. If other arguments are provided on the command line, the CLI values will override the JSON-provided values.

--generate-cli-skeleton (string) Prints a JSON skeleton to standard output without sending an API request. If provided with no value or the value input, prints a sample input JSON that can be used as an argument for --cli-input-json. If provided with the value output, it validates the command inputs and returns a sample output JSON for that command.

See 'aws help' for descriptions of global parameters.


GroupQuery -> (structure)

The resource query associated with the resource group after the update.

GroupName -> (string)

The name of a resource group that is associated with a specific resource query.

ResourceQuery -> (structure)

The resource query which determines which AWS resources are members of the associated resource group.

Type -> (string)

The type of the query. The valid value in this release is TAG_FILTERS_1_0 .

  • TAG_FILTERS_1_0: * A JSON syntax that lets you specify a collection of simple tag filters for resource types and tags, as supported by the AWS Tagging API GetResources operation. When more than one element is present, only resources that match all filters are part of the result. If a filter specifies more than one value for a key, a resource matches the filter if its tag value matches any of the specified values.

Query -> (string)

The query that defines a group or a search.