Table Of Contents

Feedback

User Guide

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

[ aws . resource-groups ]

get-group-query

Description

Returns the resource query associated with the specified resource group.

See also: AWS API Documentation

See 'aws help' for descriptions of global parameters.

Synopsis

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

Options

--group-name (string)

The name of the resource group.

--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.

Output

GroupQuery -> (structure)

The resource query associated with the specified group.

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.