You are viewing documentation for version 3 of the AWS SDK for Ruby. Version 2 documentation can be found here.

Class: Aws::ResourceGroups::Types::ResourceQuery

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-resourcegroups/lib/aws-sdk-resourcegroups/types.rb

Overview

Note:

When making an API call, you may pass ResourceQuery data as a hash:

{
  type: "TAG_FILTERS_1_0", # required, accepts TAG_FILTERS_1_0
  query: "Query", # required
}

The query that is used to define a resource group or a search for resources.

Instance Attribute Summary collapse

Instance Attribute Details

#queryString

The query that defines a group or a search.

Returns:

  • (String)


395
396
397
398
399
# File 'gems/aws-sdk-resourcegroups/lib/aws-sdk-resourcegroups/types.rb', line 395

class ResourceQuery < Struct.new(
  :type,
  :query)
  include Aws::Structure
end

#typeString

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.

Returns:

  • (String)


395
396
397
398
399
# File 'gems/aws-sdk-resourcegroups/lib/aws-sdk-resourcegroups/types.rb', line 395

class ResourceQuery < Struct.new(
  :type,
  :query)
  include Aws::Structure
end