aws-sdk-resourcegroups 1.1.0 → 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a1f1b52099b40e1271f9286dc864e53a45298df0
|
4
|
+
data.tar.gz: b78c7134ebc8a4e1f3ccd71c2074246dd86b1c41
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9954ddae3d861abc01ec6e5629b5700f3ff350f1092a3f6c0624e4fec0a0c2e48ca820972fe656aa72336c5be631c00c3949b8b8b9f3d30e61bbb0a79031ea24
|
7
|
+
data.tar.gz: a934ea6f6af9330d0fef4410bbf5962fd6b8e9f535c349306cd3e405e06feb4780914d344aa8fa675777edfa67849ef08335aacfb41ebe788e7b9e27b85f4cd3
|
@@ -162,7 +162,7 @@ module Aws::ResourceGroups
|
|
162
162
|
# @option params [required, String] :name
|
163
163
|
# The name of the group, which is the identifier of the group in other
|
164
164
|
# operations. A resource group name cannot be updated after it is
|
165
|
-
# created. A resource group name can have a maximum of
|
165
|
+
# created. A resource group name can have a maximum of 128 characters,
|
166
166
|
# including letters, numbers, hyphens, dots, and underscores. The name
|
167
167
|
# cannot start with `AWS` or `aws`; these are reserved. A resource group
|
168
168
|
# name must be unique within your account.
|
@@ -178,8 +178,8 @@ module Aws::ResourceGroups
|
|
178
178
|
#
|
179
179
|
# @option params [Hash<String,String>] :tags
|
180
180
|
# The tags to add to the group. A tag is a string-to-string map of
|
181
|
-
# key-value pairs. Tag keys can have a maximum character length of
|
182
|
-
# characters, and tag values can have a maximum length of
|
181
|
+
# key-value pairs. Tag keys can have a maximum character length of 128
|
182
|
+
# characters, and tag values can have a maximum length of 256
|
183
183
|
# characters.
|
184
184
|
#
|
185
185
|
# @return [Types::CreateGroupOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
@@ -353,6 +353,16 @@ module Aws::ResourceGroups
|
|
353
353
|
# @option params [required, String] :group_name
|
354
354
|
# The name of the resource group.
|
355
355
|
#
|
356
|
+
# @option params [Array<Types::ResourceFilter>] :filters
|
357
|
+
# Filters, formatted as ResourceFilter objects, that you want to apply
|
358
|
+
# to a ListGroupResources operation.
|
359
|
+
#
|
360
|
+
# * `resource-type` - Filter resources by their type. Specify up to five
|
361
|
+
# resource types in the format AWS::ServiceCode::ResourceType. For
|
362
|
+
# example, AWS::EC2::Instance, or AWS::S3::Bucket.
|
363
|
+
#
|
364
|
+
# ^
|
365
|
+
#
|
356
366
|
# @option params [Integer] :max_results
|
357
367
|
# The maximum number of group member ARNs that are returned in a single
|
358
368
|
# call by ListGroupResources, in paginated output. By default, this
|
@@ -372,6 +382,12 @@ module Aws::ResourceGroups
|
|
372
382
|
#
|
373
383
|
# resp = client.list_group_resources({
|
374
384
|
# group_name: "GroupName", # required
|
385
|
+
# filters: [
|
386
|
+
# {
|
387
|
+
# name: "resource-type", # required, accepts resource-type
|
388
|
+
# values: ["ResourceFilterValue"], # required
|
389
|
+
# },
|
390
|
+
# ],
|
375
391
|
# max_results: 1,
|
376
392
|
# next_token: "NextToken",
|
377
393
|
# })
|
@@ -491,7 +507,7 @@ module Aws::ResourceGroups
|
|
491
507
|
# @option params [required, Hash<String,String>] :tags
|
492
508
|
# The tags to add to the specified resource. A tag is a string-to-string
|
493
509
|
# map of key-value pairs. Tag keys can have a maximum character length
|
494
|
-
# of
|
510
|
+
# of 128 characters, and tag values can have a maximum length of 256
|
495
511
|
# characters.
|
496
512
|
#
|
497
513
|
# @return [Types::TagOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
@@ -647,7 +663,7 @@ module Aws::ResourceGroups
|
|
647
663
|
params: params,
|
648
664
|
config: config)
|
649
665
|
context[:gem_name] = 'aws-sdk-resourcegroups'
|
650
|
-
context[:gem_version] = '1.
|
666
|
+
context[:gem_version] = '1.2.0'
|
651
667
|
Seahorse::Client::Request.new(handlers, context)
|
652
668
|
end
|
653
669
|
|
@@ -42,6 +42,11 @@ module Aws::ResourceGroups
|
|
42
42
|
Query = Shapes::StringShape.new(name: 'Query')
|
43
43
|
QueryType = Shapes::StringShape.new(name: 'QueryType')
|
44
44
|
ResourceArn = Shapes::StringShape.new(name: 'ResourceArn')
|
45
|
+
ResourceFilter = Shapes::StructureShape.new(name: 'ResourceFilter')
|
46
|
+
ResourceFilterList = Shapes::ListShape.new(name: 'ResourceFilterList')
|
47
|
+
ResourceFilterName = Shapes::StringShape.new(name: 'ResourceFilterName')
|
48
|
+
ResourceFilterValue = Shapes::StringShape.new(name: 'ResourceFilterValue')
|
49
|
+
ResourceFilterValues = Shapes::ListShape.new(name: 'ResourceFilterValues')
|
45
50
|
ResourceIdentifier = Shapes::StructureShape.new(name: 'ResourceIdentifier')
|
46
51
|
ResourceIdentifierList = Shapes::ListShape.new(name: 'ResourceIdentifierList')
|
47
52
|
ResourceQuery = Shapes::StructureShape.new(name: 'ResourceQuery')
|
@@ -111,6 +116,7 @@ module Aws::ResourceGroups
|
|
111
116
|
GroupQuery.struct_class = Types::GroupQuery
|
112
117
|
|
113
118
|
ListGroupResourcesInput.add_member(:group_name, Shapes::ShapeRef.new(shape: GroupName, required: true, location: "uri", location_name: "GroupName"))
|
119
|
+
ListGroupResourcesInput.add_member(:filters, Shapes::ShapeRef.new(shape: ResourceFilterList, location_name: "Filters"))
|
114
120
|
ListGroupResourcesInput.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location: "querystring", location_name: "maxResults"))
|
115
121
|
ListGroupResourcesInput.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location: "querystring", location_name: "nextToken"))
|
116
122
|
ListGroupResourcesInput.struct_class = Types::ListGroupResourcesInput
|
@@ -127,6 +133,14 @@ module Aws::ResourceGroups
|
|
127
133
|
ListGroupsOutput.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
|
128
134
|
ListGroupsOutput.struct_class = Types::ListGroupsOutput
|
129
135
|
|
136
|
+
ResourceFilter.add_member(:name, Shapes::ShapeRef.new(shape: ResourceFilterName, required: true, location_name: "Name"))
|
137
|
+
ResourceFilter.add_member(:values, Shapes::ShapeRef.new(shape: ResourceFilterValues, required: true, location_name: "Values"))
|
138
|
+
ResourceFilter.struct_class = Types::ResourceFilter
|
139
|
+
|
140
|
+
ResourceFilterList.member = Shapes::ShapeRef.new(shape: ResourceFilter)
|
141
|
+
|
142
|
+
ResourceFilterValues.member = Shapes::ShapeRef.new(shape: ResourceFilterValue)
|
143
|
+
|
130
144
|
ResourceIdentifier.add_member(:resource_arn, Shapes::ShapeRef.new(shape: ResourceArn, location_name: "ResourceArn"))
|
131
145
|
ResourceIdentifier.add_member(:resource_type, Shapes::ShapeRef.new(shape: ResourceType, location_name: "ResourceType"))
|
132
146
|
ResourceIdentifier.struct_class = Types::ResourceIdentifier
|
@@ -266,8 +280,8 @@ module Aws::ResourceGroups
|
|
266
280
|
|
267
281
|
api.add_operation(:list_group_resources, Seahorse::Model::Operation.new.tap do |o|
|
268
282
|
o.name = "ListGroupResources"
|
269
|
-
o.http_method = "
|
270
|
-
o.http_request_uri = "/groups/{GroupName}/resource-identifiers"
|
283
|
+
o.http_method = "POST"
|
284
|
+
o.http_request_uri = "/groups/{GroupName}/resource-identifiers-list"
|
271
285
|
o.input = Shapes::ShapeRef.new(shape: ListGroupResourcesInput)
|
272
286
|
o.output = Shapes::ShapeRef.new(shape: ListGroupResourcesOutput)
|
273
287
|
o.errors << Shapes::ShapeRef.new(shape: UnauthorizedException)
|
@@ -287,8 +301,8 @@ module Aws::ResourceGroups
|
|
287
301
|
|
288
302
|
api.add_operation(:list_groups, Seahorse::Model::Operation.new.tap do |o|
|
289
303
|
o.name = "ListGroups"
|
290
|
-
o.http_method = "
|
291
|
-
o.http_request_uri = "/groups"
|
304
|
+
o.http_method = "POST"
|
305
|
+
o.http_request_uri = "/groups-list"
|
292
306
|
o.input = Shapes::ShapeRef.new(shape: ListGroupsInput)
|
293
307
|
o.output = Shapes::ShapeRef.new(shape: ListGroupsOutput)
|
294
308
|
o.errors << Shapes::ShapeRef.new(shape: BadRequestException)
|
@@ -26,7 +26,7 @@ module Aws::ResourceGroups
|
|
26
26
|
# @!attribute [rw] name
|
27
27
|
# The name of the group, which is the identifier of the group in other
|
28
28
|
# operations. A resource group name cannot be updated after it is
|
29
|
-
# created. A resource group name can have a maximum of
|
29
|
+
# created. A resource group name can have a maximum of 128 characters,
|
30
30
|
# including letters, numbers, hyphens, dots, and underscores. The name
|
31
31
|
# cannot start with `AWS` or `aws`; these are reserved. A resource
|
32
32
|
# group name must be unique within your account.
|
@@ -45,8 +45,8 @@ module Aws::ResourceGroups
|
|
45
45
|
#
|
46
46
|
# @!attribute [rw] tags
|
47
47
|
# The tags to add to the group. A tag is a string-to-string map of
|
48
|
-
# key-value pairs. Tag keys can have a maximum character length of
|
49
|
-
# characters, and tag values can have a maximum length of
|
48
|
+
# key-value pairs. Tag keys can have a maximum character length of 128
|
49
|
+
# characters, and tag values can have a maximum length of 256
|
50
50
|
# characters.
|
51
51
|
# @return [Hash<String,String>]
|
52
52
|
#
|
@@ -252,6 +252,12 @@ module Aws::ResourceGroups
|
|
252
252
|
#
|
253
253
|
# {
|
254
254
|
# group_name: "GroupName", # required
|
255
|
+
# filters: [
|
256
|
+
# {
|
257
|
+
# name: "resource-type", # required, accepts resource-type
|
258
|
+
# values: ["ResourceFilterValue"], # required
|
259
|
+
# },
|
260
|
+
# ],
|
255
261
|
# max_results: 1,
|
256
262
|
# next_token: "NextToken",
|
257
263
|
# }
|
@@ -260,6 +266,17 @@ module Aws::ResourceGroups
|
|
260
266
|
# The name of the resource group.
|
261
267
|
# @return [String]
|
262
268
|
#
|
269
|
+
# @!attribute [rw] filters
|
270
|
+
# Filters, formatted as ResourceFilter objects, that you want to apply
|
271
|
+
# to a ListGroupResources operation.
|
272
|
+
#
|
273
|
+
# * `resource-type` - Filter resources by their type. Specify up to
|
274
|
+
# five resource types in the format AWS::ServiceCode::ResourceType.
|
275
|
+
# For example, AWS::EC2::Instance, or AWS::S3::Bucket.
|
276
|
+
#
|
277
|
+
# ^
|
278
|
+
# @return [Array<Types::ResourceFilter>]
|
279
|
+
#
|
263
280
|
# @!attribute [rw] max_results
|
264
281
|
# The maximum number of group member ARNs that are returned in a
|
265
282
|
# single call by ListGroupResources, in paginated output. By default,
|
@@ -277,6 +294,7 @@ module Aws::ResourceGroups
|
|
277
294
|
#
|
278
295
|
class ListGroupResourcesInput < Struct.new(
|
279
296
|
:group_name,
|
297
|
+
:filters,
|
280
298
|
:max_results,
|
281
299
|
:next_token)
|
282
300
|
include Aws::Structure
|
@@ -344,6 +362,34 @@ module Aws::ResourceGroups
|
|
344
362
|
include Aws::Structure
|
345
363
|
end
|
346
364
|
|
365
|
+
# A filter name and value pair that is used to obtain more specific
|
366
|
+
# results from a list of resources.
|
367
|
+
#
|
368
|
+
# @note When making an API call, you may pass ResourceFilter
|
369
|
+
# data as a hash:
|
370
|
+
#
|
371
|
+
# {
|
372
|
+
# name: "resource-type", # required, accepts resource-type
|
373
|
+
# values: ["ResourceFilterValue"], # required
|
374
|
+
# }
|
375
|
+
#
|
376
|
+
# @!attribute [rw] name
|
377
|
+
# The name of the filter. Filter names are case-sensitive.
|
378
|
+
# @return [String]
|
379
|
+
#
|
380
|
+
# @!attribute [rw] values
|
381
|
+
# One or more filter values. Allowed filter values vary by resource
|
382
|
+
# filter name, and are case-sensitive.
|
383
|
+
# @return [Array<String>]
|
384
|
+
#
|
385
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/resource-groups-2017-11-27/ResourceFilter AWS API Documentation
|
386
|
+
#
|
387
|
+
class ResourceFilter < Struct.new(
|
388
|
+
:name,
|
389
|
+
:values)
|
390
|
+
include Aws::Structure
|
391
|
+
end
|
392
|
+
|
347
393
|
# The ARN of a resource, and its resource type.
|
348
394
|
#
|
349
395
|
# @!attribute [rw] resource_arn
|
@@ -472,8 +518,8 @@ module Aws::ResourceGroups
|
|
472
518
|
# @!attribute [rw] tags
|
473
519
|
# The tags to add to the specified resource. A tag is a
|
474
520
|
# string-to-string map of key-value pairs. Tag keys can have a maximum
|
475
|
-
# character length of
|
476
|
-
# maximum length of
|
521
|
+
# character length of 128 characters, and tag values can have a
|
522
|
+
# maximum length of 256 characters.
|
477
523
|
# @return [Hash<String,String>]
|
478
524
|
#
|
479
525
|
# @see http://docs.aws.amazon.com/goto/WebAPI/resource-groups-2017-11-27/TagInput AWS API Documentation
|
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.
|
4
|
+
version: 1.2.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: 2018-
|
11
|
+
date: 2018-08-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|