aws-sdk-resourcegroups 1.27.0 → 1.32.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: d11deac8aab073e36e5c1f6ed18e872b6e532cddbede52d9a6eea6e6e39d24f1
4
- data.tar.gz: c846995796d93f43edf31e8a61b0b152f6a6fa2b44fb785b576151586fa7fb02
3
+ metadata.gz: 1239f7df53b817e01f77429858ed5a052223981e1617c5cca3ec167fe1cf2fcd
4
+ data.tar.gz: b5833910391071de5543e37ece23b98867fba65ee94c38a72e397197c83a6710
5
5
  SHA512:
6
- metadata.gz: 57b6f38164521ee6695549f76e12e8880ec4dedf4c8fc4564f8cd4ff291cca6b9129858a527dc8ab2432508c971ba209ac665b8cc6f8ace3c4e57ea4716f80ab
7
- data.tar.gz: bf6d5bc545861c81229f61123123bc7b74f242c72d4ada99248c02153e5a26963283ac5e924818a6d3523cdb56ec0e6eeb4fc40c90eda783015f16ecf7d784cd
6
+ metadata.gz: 15a7a5c824d3eba44fd22fdf20d325c53da53c7cc39f59eb35165b946ff2a836c517b5701be3ce4dade4806031cac38a370bc9c66be02938f783994062c408a0
7
+ data.tar.gz: b71ff290e4e9d03314db050557b8b85a331e5bda6e31042b9d01b68e0de7c539e31c0f757582c1eda862dc2cb55a84f7b3aa712f91c12273554c5234985c3474
@@ -7,6 +7,7 @@
7
7
  #
8
8
  # WARNING ABOUT GENERATED CODE
9
9
 
10
+
10
11
  require 'aws-sdk-core'
11
12
  require 'aws-sigv4'
12
13
 
@@ -44,9 +45,9 @@ require_relative 'aws-sdk-resourcegroups/customizations'
44
45
  #
45
46
  # See {Errors} for more information.
46
47
  #
47
- # @service
48
+ # @!group service
48
49
  module Aws::ResourceGroups
49
50
 
50
- GEM_VERSION = '1.27.0'
51
+ GEM_VERSION = '1.32.0'
51
52
 
52
53
  end
@@ -85,13 +85,28 @@ module Aws::ResourceGroups
85
85
  # * `Aws::Credentials` - Used for configuring static, non-refreshing
86
86
  # credentials.
87
87
  #
88
+ # * `Aws::SharedCredentials` - Used for loading static credentials from a
89
+ # shared file, such as `~/.aws/config`.
90
+ #
91
+ # * `Aws::AssumeRoleCredentials` - Used when you need to assume a role.
92
+ #
93
+ # * `Aws::AssumeRoleWebIdentityCredentials` - Used when you need to
94
+ # assume a role after providing credentials via the web.
95
+ #
96
+ # * `Aws::SSOCredentials` - Used for loading credentials from AWS SSO using an
97
+ # access token generated from `aws login`.
98
+ #
99
+ # * `Aws::ProcessCredentials` - Used for loading credentials from a
100
+ # process that outputs to stdout.
101
+ #
88
102
  # * `Aws::InstanceProfileCredentials` - Used for loading credentials
89
103
  # from an EC2 IMDS on an EC2 instance.
90
104
  #
91
- # * `Aws::SharedCredentials` - Used for loading credentials from a
92
- # shared file, such as `~/.aws/config`.
105
+ # * `Aws::ECSCredentials` - Used for loading credentials from
106
+ # instances running in ECS.
93
107
  #
94
- # * `Aws::AssumeRoleCredentials` - Used when you need to assume a role.
108
+ # * `Aws::CognitoIdentityCredentials` - Used for loading credentials
109
+ # from the Cognito Identity service.
95
110
  #
96
111
  # When `:credentials` are not configured directly, the following
97
112
  # locations will be searched for credentials:
@@ -101,10 +116,10 @@ module Aws::ResourceGroups
101
116
  # * ENV['AWS_ACCESS_KEY_ID'], ENV['AWS_SECRET_ACCESS_KEY']
102
117
  # * `~/.aws/credentials`
103
118
  # * `~/.aws/config`
104
- # * EC2 IMDS instance profile - When used by default, the timeouts are
105
- # very aggressive. Construct and pass an instance of
106
- # `Aws::InstanceProfileCredentails` to enable retries and extended
107
- # timeouts.
119
+ # * EC2/ECS IMDS instance profile - When used by default, the timeouts
120
+ # are very aggressive. Construct and pass an instance of
121
+ # `Aws::InstanceProfileCredentails` or `Aws::ECSCredentials` to
122
+ # enable retries and extended timeouts.
108
123
  #
109
124
  # @option options [required, String] :region
110
125
  # The AWS region to connect to. The configured `:region` is
@@ -642,8 +657,8 @@ module Aws::ResourceGroups
642
657
  req.send_request(options)
643
658
  end
644
659
 
645
- # Returns a list of ARNs of resources that are members of a specified
646
- # resource group.
660
+ # Returns a list of ARNs of the resources that are members of a
661
+ # specified resource group.
647
662
  #
648
663
  # @option params [String] :group_name
649
664
  # Don't use this parameter. Use `Group` instead.
@@ -821,7 +836,7 @@ module Aws::ResourceGroups
821
836
  req.send_request(options)
822
837
  end
823
838
 
824
- # Returns a list of AWS resource identifiers that matches a specified
839
+ # Returns a list of AWS resource identifiers that matches the specified
825
840
  # query. The query uses the same format as a resource query in a
826
841
  # CreateGroup or UpdateGroupQuery operation.
827
842
  #
@@ -1103,7 +1118,7 @@ module Aws::ResourceGroups
1103
1118
  params: params,
1104
1119
  config: config)
1105
1120
  context[:gem_name] = 'aws-sdk-resourcegroups'
1106
- context[:gem_version] = '1.27.0'
1121
+ context[:gem_version] = '1.32.0'
1107
1122
  Seahorse::Client::Request.new(handlers, context)
1108
1123
  end
1109
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:
@@ -987,50 +1052,50 @@ module Aws::ResourceGroups
987
1052
  # }
988
1053
  #
989
1054
  # @!attribute [rw] type
990
- # The type of the query. The valid values in this release are the
991
- # following:
992
- #
993
- # * <i> <code>TAG_FILTERS_1_0:</code> </i> A JSON syntax that lets you
994
- # specify a collection of simple tag filters for resource types and
995
- # tags, as supported by the AWS Tagging API [GetResources][1]
996
- # operation. If you specify more than one tag key, only resources
997
- # that match all tag keys, and at least one value of each specified
998
- # tag key, are returned in your query. If you specify more than one
999
- # value for a tag key, a resource matches the filter if it has a tag
1000
- # key value that matches *any* of the specified values.
1055
+ # The type of the query. You can use the following values:
1056
+ #
1057
+ # * <i> <code>CLOUDFORMATION_STACK_1_0:</code> </i>Specifies that the
1058
+ # `Query` contains an ARN for a CloudFormation stack.
1059
+ #
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
1067
+ # returned in your query. If you specify more than one value for a
1068
+ # tag key, a resource matches the filter if it has a tag key value
1069
+ # that matches *any* of the specified values.
1001
1070
  #
1002
1071
  # For example, consider the following sample query for resources
1003
- # that have two tags, `Stage` and `Version`, with two values each.
1004
- # (`[\{"Key":"Stage","Values":["Test","Deploy"]\},\{"Key":"Version","Values":["1","2"]\}]`)
1005
- # The results of this query might include the following.
1072
+ # that have two tags, `Stage` and `Version`, with two values each:
1073
+ #
1074
+ # `[\{"Stage":["Test","Deploy"]\},\{"Version":["1","2"]\}]`
1075
+ #
1076
+ # The results of this query could include the following.
1006
1077
  #
1007
1078
  # * An EC2 instance that has the following two tags:
1008
- # `\{"Key":"Stage","Value":"Deploy"\}`, and
1009
- # `\{"Key":"Version","Value":"2"\}`
1079
+ # `\{"Stage":"Deploy"\}`, and `\{"Version":"2"\}`
1010
1080
  #
1011
1081
  # * An S3 bucket that has the following two tags:
1012
- # `\{"Key":"Stage","Value":"Test"\}`, and
1013
- # `\{"Key":"Version","Value":"1"\}`
1082
+ # `\{"Stage":"Test"\}`, and `\{"Version":"1"\}`
1014
1083
  #
1015
- # The query would not return the following results, however. The
1016
- # following EC2 instance does not have all tag keys specified in the
1017
- # filter, so it is rejected. The RDS database has all of the tag
1018
- # keys, but no values that match at least one of the specified tag
1019
- # key values in the filter.
1084
+ # The query would not include the following items in the results,
1085
+ # however.
1020
1086
  #
1021
1087
  # * An EC2 instance that has only the following tag:
1022
- # `\{"Key":"Stage","Value":"Deploy"\}`.
1023
- #
1024
- # * An RDS database that has the following two tags:
1025
- # `\{"Key":"Stage","Value":"Archived"\}`, and
1026
- # `\{"Key":"Version","Value":"4"\}`
1027
- #
1028
- # * <i> <code>CLOUDFORMATION_STACK_1_0:</code> </i> A JSON syntax that
1029
- # lets you specify a CloudFormation stack ARN.
1088
+ # `\{"Stage":"Deploy"\}`.
1030
1089
  #
1090
+ # The instance does not have **all** of the tag keys specified in
1091
+ # the filter, so it is excluded from the results.
1031
1092
  #
1093
+ # * An RDS database that has the following two tags:
1094
+ # `\{"Stage":"Archived"\}` and `\{"Version":"4"\}`
1032
1095
  #
1033
- # [1]: https://docs.aws.amazon.com/resourcegroupstagging/latest/APIReference/API_GetResources.html
1096
+ # The database has all of the tag keys, but none of those keys has
1097
+ # an associated value that matches at least one of the specified
1098
+ # values in the filter.
1034
1099
  # @return [String]
1035
1100
  #
1036
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.27.0
4
+ version: 1.32.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-07-29 00:00:00.000000000 Z
11
+ date: 2020-09-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core
@@ -19,7 +19,7 @@ dependencies:
19
19
  version: '3'
20
20
  - - ">="
21
21
  - !ruby/object:Gem::Version
22
- version: 3.99.0
22
+ version: 3.109.0
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -29,7 +29,7 @@ dependencies:
29
29
  version: '3'
30
30
  - - ">="
31
31
  - !ruby/object:Gem::Version
32
- version: 3.99.0
32
+ version: 3.109.0
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: aws-sigv4
35
35
  requirement: !ruby/object:Gem::Requirement