aws-sdk-resourcegroups 1.30.0 → 1.31.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 06bd34fe09571c02bdd7dc72cc1a6781e32a8f45d0ec6dd68beb97a827bdbc16
4
- data.tar.gz: 9ca2226dc1fc13dfb274cf0f743b1b2d8d6d9a045933a3b1d59f4671921dd9c9
3
+ metadata.gz: 3b6e28ce269da1a2204f43b306a04a1226552656d71bf08717fe6572ed7004ea
4
+ data.tar.gz: 952325578f4c31a9175d30270f6ad9607e587e92c0e3915bbcc500e79a6ec4b1
5
5
  SHA512:
6
- metadata.gz: f199a00eb06f2c1ba2c58e4a4bbf4aedb82e372e50b63d5f65fe80226c087bdbf01850d49d6e6bd383ee42edf841d07ae926d2d851ec0ef3c743f5973931d2bd
7
- data.tar.gz: 92b63537b737db78b7d6f58bcdea389f6d4079616a0f38da95413f12141671e6c557bbaaee36ce497d21baf5e6a924efcfffa0af70e44c7ec203fe00216c7c10
6
+ metadata.gz: da4aaddc000e9ca8402922276c22b83b206971d5a423732d6fb07024e4098655a293b05dd9db7cd58339f4bf85bb3863d536a498cb010bd57c0b60fb0c365679
7
+ data.tar.gz: 4b9bb0534939d0d1fc3f3045cbb7972c0422eacbde03c5a42734c70218fe33f36fdd84fb506cc128e22a7a5fe2eddfc78bb7e938d39148e96ae4a60ce223ca07
@@ -48,6 +48,6 @@ require_relative 'aws-sdk-resourcegroups/customizations'
48
48
  # @!group service
49
49
  module Aws::ResourceGroups
50
50
 
51
- GEM_VERSION = '1.30.0'
51
+ GEM_VERSION = '1.31.0'
52
52
 
53
53
  end
@@ -836,7 +836,7 @@ module Aws::ResourceGroups
836
836
  req.send_request(options)
837
837
  end
838
838
 
839
- # Returns a list of AWS resource identifiers that matches tne specified
839
+ # Returns a list of AWS resource identifiers that matches the specified
840
840
  # query. The query uses the same format as a resource query in a
841
841
  # CreateGroup or UpdateGroupQuery operation.
842
842
  #
@@ -1118,7 +1118,7 @@ module Aws::ResourceGroups
1118
1118
  params: params,
1119
1119
  config: config)
1120
1120
  context[:gem_name] = 'aws-sdk-resourcegroups'
1121
- context[:gem_version] = '1.30.0'
1121
+ context[:gem_version] = '1.31.0'
1122
1122
  Seahorse::Client::Request.new(handlers, context)
1123
1123
  end
1124
1124
 
@@ -976,7 +976,72 @@ module Aws::ResourceGroups
976
976
  end
977
977
 
978
978
  # The query that is used to define a resource group or a search for
979
- # resources.
979
+ # resources. A query specifies both a query type and a query string as a
980
+ # JSON object. See the examples section for example JSON strings.
981
+ #
982
+ # The examples that follow are shown as standard JSON strings. If you
983
+ # include such a string as a parameter to the AWS CLI or an SDK API, you
984
+ # might need to 'escape' the string into a single line. For example,
985
+ # see the [Quoting strings][1] in the *AWS CLI User Guide*.
986
+ #
987
+ # **Example 1**
988
+ #
989
+ # The following generic example shows a resource query JSON string that
990
+ # includes only resources that meet the following criteria:
991
+ #
992
+ # * The resource type must be either `resource_type1` or
993
+ # `resource_type2`.
994
+ #
995
+ # * The resource must have a tag `Key1` with a value of either `ValueA`
996
+ # or `ValueB`.
997
+ #
998
+ # * The resource must have a tag `Key2` with a value of either `ValueC`
999
+ # or `ValueD`.
1000
+ #
1001
+ # `\{ "Type": "TAG_FILTERS_1_0", "Query": \{ "ResourceTypeFilters": [
1002
+ # "resource_type1", "resource_type2"], "TagFilters": [ \{ "Key": "Key1",
1003
+ # "Values": ["ValueA","ValueB"] \}, \{ "Key":"Key2",
1004
+ # "Values":["ValueC","ValueD"] \} ] \} \}`
1005
+ #
1006
+ # This has the equivalent "shortcut" syntax of the following:
1007
+ #
1008
+ # `\{ "Type": "TAG_FILTERS_1_0", "Query": \{ "ResourceTypeFilters": [
1009
+ # "resource_type1", "resource_type2"], "TagFilters": [ \{ "Key1":
1010
+ # ["ValueA","ValueB"] \}, \{ "Key2": ["ValueC","ValueD"] \} ] \} \}`
1011
+ #
1012
+ # **Example 2**
1013
+ #
1014
+ # The following example shows a resource query JSON string that includes
1015
+ # only Amazon EC2 instances that are tagged `Stage` with a value of
1016
+ # `Test`.
1017
+ #
1018
+ # `\{ "Type": "TAG_FILTERS_1_0", "Query": "\{ "ResourceTypeFilters":
1019
+ # "AWS::EC2::Instance", "TagFilters": \{ "Stage": "Test" \} \} \}`
1020
+ #
1021
+ # **Example 3**
1022
+ #
1023
+ # The following example shows a resource query JSON string that includes
1024
+ # resource of any supported type as long as it is tagged `Stage` with a
1025
+ # value of `Prod`.
1026
+ #
1027
+ # `\{ "Type": "TAG_FILTERS_1_0", "Query": \{ "ResourceTypeFilters":
1028
+ # "AWS::AllSupported", "TagFilters": \{ "Stage": "Prod" \} \} \}`
1029
+ #
1030
+ # **Example 4**
1031
+ #
1032
+ # The following example shows a resource query JSON string that includes
1033
+ # only Amazon EC2 instances and Amazon S3 buckets that are part of the
1034
+ # specified AWS CloudFormation stack.
1035
+ #
1036
+ # `\{ "Type": "CLOUDFORMATION_STACK_1_0", "Query": \{
1037
+ # "ResourceTypeFilters": [ "AWS::EC2::Instance", "AWS::S3::Bucket" ],
1038
+ # "StackIdentifier":
1039
+ # "arn:aws:cloudformation:us-west-2:123456789012:stack/AWStestuseraccount/fb0d5000-aba8-00e8-aa9e-50d5cEXAMPLE"
1040
+ # \} \}`
1041
+ #
1042
+ #
1043
+ #
1044
+ # [1]: https://docs.aws.amazon.com/cli/latest/userguide/cli-usage-parameters-quoting-strings.html
980
1045
  #
981
1046
  # @note When making an API call, you may pass ResourceQuery
982
1047
  # data as a hash:
@@ -989,15 +1054,16 @@ module Aws::ResourceGroups
989
1054
  # @!attribute [rw] type
990
1055
  # The type of the query. You can use the following values:
991
1056
  #
992
- # * <i> <code>CLOUDFORMATION_STACK_1_0:</code> </i> A JSON syntax that
993
- # lets you specify a CloudFormation stack ARN.
1057
+ # * <i> <code>CLOUDFORMATION_STACK_1_0:</code> </i>Specifies that the
1058
+ # `Query` contains an ARN for a CloudFormation stack.
994
1059
  #
995
- # * <i> <code>TAG_FILTERS_1_0:</code> </i> A JSON syntax that lets you
996
- # specify a collection of simple tag filters for resource types and
997
- # tags, as supported by the AWS Tagging API [ `ResourceTypeFilters`
998
- # parameter of the `tagging:GetResources` ][1] operation. If you
999
- # specify more than one tag key, only resources that match all tag
1000
- # keys, and at least one value of each specified tag key, are
1060
+ # * <i> <code>TAG_FILTERS_1_0:</code> </i>Specifies that the `Query`
1061
+ # parameter contains a JSON string that represents a collection of
1062
+ # simple tag filters for resource types and tags. The JSON string
1063
+ # uses a syntax similar to the ` GetResources ` operation, but uses
1064
+ # only the ` ResourceTypeFilters ` and ` TagFilters ` fields. If
1065
+ # you specify more than one tag key, only resources that match all
1066
+ # tag keys, and at least one value of each specified tag key, are
1001
1067
  # returned in your query. If you specify more than one value for a
1002
1068
  # tag key, a resource matches the filter if it has a tag key value
1003
1069
  # that matches *any* of the specified values.
@@ -1005,38 +1071,31 @@ module Aws::ResourceGroups
1005
1071
  # For example, consider the following sample query for resources
1006
1072
  # that have two tags, `Stage` and `Version`, with two values each:
1007
1073
  #
1008
- # `[\{"Key":"Stage","Values":["Test","Deploy"]\},\{"Key":"Version","Values":["1","2"]\}]`
1074
+ # `[\{"Stage":["Test","Deploy"]\},\{"Version":["1","2"]\}]`
1009
1075
  #
1010
1076
  # The results of this query could include the following.
1011
1077
  #
1012
1078
  # * An EC2 instance that has the following two tags:
1013
- # `\{"Key":"Stage","Value":"Deploy"\}`, and
1014
- # `\{"Key":"Version","Value":"2"\}`
1079
+ # `\{"Stage":"Deploy"\}`, and `\{"Version":"2"\}`
1015
1080
  #
1016
1081
  # * An S3 bucket that has the following two tags:
1017
- # `\{"Key":"Stage","Value":"Test"\}`, and
1018
- # `\{"Key":"Version","Value":"1"\}`
1082
+ # `\{"Stage":"Test"\}`, and `\{"Version":"1"\}`
1019
1083
  #
1020
1084
  # The query would not include the following items in the results,
1021
1085
  # however.
1022
1086
  #
1023
1087
  # * An EC2 instance that has only the following tag:
1024
- # `\{"Key":"Stage","Value":"Deploy"\}`.
1088
+ # `\{"Stage":"Deploy"\}`.
1025
1089
  #
1026
1090
  # The instance does not have **all** of the tag keys specified in
1027
1091
  # the filter, so it is excluded from the results.
1028
1092
  #
1029
1093
  # * An RDS database that has the following two tags:
1030
- # `\{"Key":"Stage","Value":"Archived"\}`, and
1031
- # `\{"Key":"Version","Value":"4"\}`
1094
+ # `\{"Stage":"Archived"\}` and `\{"Version":"4"\}`
1032
1095
  #
1033
1096
  # The database has all of the tag keys, but none of those keys has
1034
1097
  # an associated value that matches at least one of the specified
1035
1098
  # values in the filter.
1036
- #
1037
- #
1038
- #
1039
- # [1]: https://docs.aws.amazon.com/resourcegroupstagging/latest/APIReference/API_GetResources.html#resourcegrouptagging-GetResources-request-ResourceTypeFilters
1040
1099
  # @return [String]
1041
1100
  #
1042
1101
  # @!attribute [rw] query
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-resourcegroups
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.30.0
4
+ version: 1.31.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-09-15 00:00:00.000000000 Z
11
+ date: 2020-09-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core