PNG  IHDR;IDATxܻn0K )(pA 7LeG{ §㻢|ذaÆ 6lذaÆ 6lذaÆ 6lom$^yذag5bÆ 6lذaÆ 6lذa{ 6lذaÆ `}HFkm,mӪôô! x|'ܢ˟;E:9&ᶒ}{v]n&6 h_tڠ͵-ҫZ;Z$.Pkž)!o>}leQfJTu іچ\X=8Rن4`Vwl>nG^is"ms$ui?wbs[m6K4O.4%/bC%t Mז -lG6mrz2s%9s@-k9=)kB5\+͂Zsٲ Rn~GRC wIcIn7jJhۛNCS|j08yiHKֶۛkɈ+;SzL/F*\Ԕ#"5m2[S=gnaPeғL lذaÆ 6l^ḵaÆ 6lذaÆ 6lذa; _ذaÆ 6lذaÆ 6lذaÆ RIENDB` # Generated by default/object.tt package Paws::ResourceGroups::ResourceQuery; use Moose; has Query => (is => 'ro', isa => 'Str', required => 1); has Type => (is => 'ro', isa => 'Str', required => 1); 1; ### main pod documentation begin ### =head1 NAME Paws::ResourceGroups::ResourceQuery =head1 USAGE This class represents one of two things: =head3 Arguments in a call to a service Use the attributes of this class as arguments to methods. You shouldn't make instances of this class. Each attribute should be used as a named argument in the calls that expect this type of object. As an example, if Att1 is expected to be a Paws::ResourceGroups::ResourceQuery object: $service_obj->Method(Att1 => { Query => $value, ..., Type => $value }); =head3 Results returned from an API call Use accessors for each attribute. If Att1 is expected to be an Paws::ResourceGroups::ResourceQuery object: $result = $service_obj->Method(...); $result->Att1->Query =head1 DESCRIPTION The query that is used to define a resource group or a search for resources. A query specifies both a query type and a query string as a JSON object. See the examples section for example JSON strings. The examples that follow are shown as standard JSON strings. If you include such a string as a parameter to the AWS CLI or an SDK API, you might need to 'escape' the string into a single line. For example, see the Quoting strings (https://docs.aws.amazon.com/cli/latest/userguide/cli-usage-parameters-quoting-strings.html) in the I. B The following generic example shows a resource query JSON string that includes only resources that meet the following criteria: =over =item * The resource type must be either C or C. =item * The resource must have a tag C with a value of either C or C. =item * The resource must have a tag C with a value of either C or C. =back C<{ "Type": "TAG_FILTERS_1_0", "Query": { "ResourceTypeFilters": [ "resource_type1", "resource_type2"], "TagFilters": [ { "Key": "Key1", "Values": ["ValueA","ValueB"] }, { "Key":"Key2", "Values":["ValueC","ValueD"] } ] } }> This has the equivalent "shortcut" syntax of the following: C<{ "Type": "TAG_FILTERS_1_0", "Query": { "ResourceTypeFilters": [ "resource_type1", "resource_type2"], "TagFilters": [ { "Key1": ["ValueA","ValueB"] }, { "Key2": ["ValueC","ValueD"] } ] } }> B The following example shows a resource query JSON string that includes only Amazon EC2 instances that are tagged C with a value of C. C<{ "Type": "TAG_FILTERS_1_0", "Query": "{ "ResourceTypeFilters": "AWS::EC2::Instance", "TagFilters": { "Stage": "Test" } } }> B The following example shows a resource query JSON string that includes resource of any supported type as long as it is tagged C with a value of C. C<{ "Type": "TAG_FILTERS_1_0", "Query": { "ResourceTypeFilters": "AWS::AllSupported", "TagFilters": { "Stage": "Prod" } } }> B The following example shows a resource query JSON string that includes only Amazon EC2 instances and Amazon S3 buckets that are part of the specified AWS CloudFormation stack. C<{ "Type": "CLOUDFORMATION_STACK_1_0", "Query": { "ResourceTypeFilters": [ "AWS::EC2::Instance", "AWS::S3::Bucket" ], "StackIdentifier": "arn:aws:cloudformation:us-west-2:123456789012:stack/AWStestuseraccount/fb0d5000-aba8-00e8-aa9e-50d5cEXAMPLE" } }> =head1 ATTRIBUTES =head2 B Query => Str The query that defines a group or a search. =head2 B Type => Str The type of the query. You can use the following values: =over =item * I >Specifies that the C contains an ARN for a CloudFormation stack. =item * I >Specifies that the C parameter contains a JSON string that represents a collection of simple tag filters for resource types and tags. The JSON string uses a syntax similar to the C< GetResources (https://docs.aws.amazon.com/resourcegroupstagging/latest/APIReference/API_GetResources.html) > operation, but uses only the C< ResourceTypeFilters (https://docs.aws.amazon.com/resourcegroupstagging/latest/APIReference/API_GetResources.html#resourcegrouptagging-GetResources-request-ResourceTypeFilters) > and C< TagFilters (https://docs.aws.amazon.com/resourcegroupstagging/latest/APIReference/API_GetResources.html#resourcegrouptagging-GetResources-request-TagFiltersTagFilters) > fields. If you specify more than one tag key, only resources that match all tag keys, and at least one value of each specified tag key, are returned in your query. If you specify more than one value for a tag key, a resource matches the filter if it has a tag key value that matches I of the specified values. For example, consider the following sample query for resources that have two tags, C and C, with two values each: C<[{"Stage":["Test","Deploy"]},{"Version":["1","2"]}]> The results of this query could include the following. =over =item * An EC2 instance that has the following two tags: C<{"Stage":"Deploy"}>, and C<{"Version":"2"}> =item * An S3 bucket that has the following two tags: C<{"Stage":"Test"}>, and C<{"Version":"1"}> =back The query would not include the following items in the results, however. =over =item * An EC2 instance that has only the following tag: C<{"Stage":"Deploy"}>. The instance does not have B of the tag keys specified in the filter, so it is excluded from the results. =item * An RDS database that has the following two tags: C<{"Stage":"Archived"}> and C<{"Version":"4"}> The database has all of the tag keys, but none of those keys has an associated value that matches at least one of the specified values in the filter. =back =back =head1 SEE ALSO This class forms part of L, describing an object used in L =head1 BUGS and CONTRIBUTIONS The source code is located here: L Please report bugs to: L =cut