aws-sdk-resourcegroups 1.4.0 → 1.5.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
  SHA1:
3
- metadata.gz: 3b00bb890148348145fa54584fdabd3939c3be51
4
- data.tar.gz: 774ea8255a7fc60ffffab2824033fd5d4ef98e39
3
+ metadata.gz: de194ba5b2fe72db5ddd7c9450e687459aa81098
4
+ data.tar.gz: 979098e54e2b8bdcf84d0311c7df9ed3dd718239
5
5
  SHA512:
6
- metadata.gz: 5156a7765e8b80e9a264e76a240eb7ac362b915d3cd2528b2cec0a7b16cf9d8f64d931eef152c5f0480a8e623fa0d835027ca25f6f4af9c05e46e29b59b5e6c7
7
- data.tar.gz: 846145582a997e4ef0f60dc71d9ea490dfd8d43a305145a8a5ec33666163da575d12d4625163ccfa61df0a1f8fa9adaa3fc2630d535f9c364a54a70b21cf7667
6
+ metadata.gz: fec553e3bcc25a53e171fbb03f90472de709b3be04d2f322aed3ffe4888c67cf4d566962c40d426618ef5fda3f210ee888c24bacd73b86331def55ac1711f11e
7
+ data.tar.gz: 07a798d0c4d0c37173eeee5860a2d46d8c3a2247eb7f88c605fde49b06c8b3907bff29db9ea5a1b0c2405722b2a0f13889612a56c7aab1d6831b05d5aa939aca
@@ -42,6 +42,6 @@ require_relative 'aws-sdk-resourcegroups/customizations'
42
42
  # @service
43
43
  module Aws::ResourceGroups
44
44
 
45
- GEM_VERSION = '1.4.0'
45
+ GEM_VERSION = '1.5.0'
46
46
 
47
47
  end
@@ -430,6 +430,16 @@ module Aws::ResourceGroups
430
430
 
431
431
  # Returns a list of existing resource groups in your account.
432
432
  #
433
+ # @option params [Array<Types::GroupFilter>] :filters
434
+ # Filters, formatted as GroupFilter objects, that you want to apply to a
435
+ # ListGroups operation.
436
+ #
437
+ # * `group-type` - Filter groups by resource type. Specify up to five
438
+ # group types in the format AWS::ServiceCode::ResourceType. For
439
+ # example, AWS::EC2::Instance, or AWS::S3::Bucket.
440
+ #
441
+ # ^
442
+ #
433
443
  # @option params [Integer] :max_results
434
444
  # The maximum number of resource group results that are returned by
435
445
  # ListGroups in paginated output. By default, this number is 50.
@@ -441,18 +451,28 @@ module Aws::ResourceGroups
441
451
  #
442
452
  # @return [Types::ListGroupsOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
443
453
  #
454
+ # * {Types::ListGroupsOutput#group_identifiers #group_identifiers} => Array&lt;Types::GroupIdentifier&gt;
444
455
  # * {Types::ListGroupsOutput#groups #groups} => Array&lt;Types::Group&gt;
445
456
  # * {Types::ListGroupsOutput#next_token #next_token} => String
446
457
  #
447
458
  # @example Request syntax with placeholder values
448
459
  #
449
460
  # resp = client.list_groups({
461
+ # filters: [
462
+ # {
463
+ # name: "resource-type", # required, accepts resource-type
464
+ # values: ["GroupFilterValue"], # required
465
+ # },
466
+ # ],
450
467
  # max_results: 1,
451
468
  # next_token: "NextToken",
452
469
  # })
453
470
  #
454
471
  # @example Response structure
455
472
  #
473
+ # resp.group_identifiers #=> Array
474
+ # resp.group_identifiers[0].group_name #=> String
475
+ # resp.group_identifiers[0].group_arn #=> String
456
476
  # resp.groups #=> Array
457
477
  # resp.groups[0].group_arn #=> String
458
478
  # resp.groups[0].name #=> String
@@ -683,7 +703,7 @@ module Aws::ResourceGroups
683
703
  params: params,
684
704
  config: config)
685
705
  context[:gem_name] = 'aws-sdk-resourcegroups'
686
- context[:gem_version] = '1.4.0'
706
+ context[:gem_version] = '1.5.0'
687
707
  Seahorse::Client::Request.new(handlers, context)
688
708
  end
689
709
 
@@ -27,6 +27,13 @@ module Aws::ResourceGroups
27
27
  Group = Shapes::StructureShape.new(name: 'Group')
28
28
  GroupArn = Shapes::StringShape.new(name: 'GroupArn')
29
29
  GroupDescription = Shapes::StringShape.new(name: 'GroupDescription')
30
+ GroupFilter = Shapes::StructureShape.new(name: 'GroupFilter')
31
+ GroupFilterList = Shapes::ListShape.new(name: 'GroupFilterList')
32
+ GroupFilterName = Shapes::StringShape.new(name: 'GroupFilterName')
33
+ GroupFilterValue = Shapes::StringShape.new(name: 'GroupFilterValue')
34
+ GroupFilterValues = Shapes::ListShape.new(name: 'GroupFilterValues')
35
+ GroupIdentifier = Shapes::StructureShape.new(name: 'GroupIdentifier')
36
+ GroupIdentifierList = Shapes::ListShape.new(name: 'GroupIdentifierList')
30
37
  GroupList = Shapes::ListShape.new(name: 'GroupList')
31
38
  GroupName = Shapes::StringShape.new(name: 'GroupName')
32
39
  GroupQuery = Shapes::StructureShape.new(name: 'GroupQuery')
@@ -109,6 +116,20 @@ module Aws::ResourceGroups
109
116
  Group.add_member(:description, Shapes::ShapeRef.new(shape: GroupDescription, location_name: "Description"))
110
117
  Group.struct_class = Types::Group
111
118
 
119
+ GroupFilter.add_member(:name, Shapes::ShapeRef.new(shape: GroupFilterName, required: true, location_name: "Name"))
120
+ GroupFilter.add_member(:values, Shapes::ShapeRef.new(shape: GroupFilterValues, required: true, location_name: "Values"))
121
+ GroupFilter.struct_class = Types::GroupFilter
122
+
123
+ GroupFilterList.member = Shapes::ShapeRef.new(shape: GroupFilter)
124
+
125
+ GroupFilterValues.member = Shapes::ShapeRef.new(shape: GroupFilterValue)
126
+
127
+ GroupIdentifier.add_member(:group_name, Shapes::ShapeRef.new(shape: GroupName, location_name: "GroupName"))
128
+ GroupIdentifier.add_member(:group_arn, Shapes::ShapeRef.new(shape: GroupArn, location_name: "GroupArn"))
129
+ GroupIdentifier.struct_class = Types::GroupIdentifier
130
+
131
+ GroupIdentifierList.member = Shapes::ShapeRef.new(shape: GroupIdentifier)
132
+
112
133
  GroupList.member = Shapes::ShapeRef.new(shape: Group)
113
134
 
114
135
  GroupQuery.add_member(:group_name, Shapes::ShapeRef.new(shape: GroupName, required: true, location_name: "GroupName"))
@@ -125,11 +146,13 @@ module Aws::ResourceGroups
125
146
  ListGroupResourcesOutput.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
126
147
  ListGroupResourcesOutput.struct_class = Types::ListGroupResourcesOutput
127
148
 
149
+ ListGroupsInput.add_member(:filters, Shapes::ShapeRef.new(shape: GroupFilterList, location_name: "Filters"))
128
150
  ListGroupsInput.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location: "querystring", location_name: "maxResults"))
129
151
  ListGroupsInput.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location: "querystring", location_name: "nextToken"))
130
152
  ListGroupsInput.struct_class = Types::ListGroupsInput
131
153
 
132
- ListGroupsOutput.add_member(:groups, Shapes::ShapeRef.new(shape: GroupList, location_name: "Groups"))
154
+ ListGroupsOutput.add_member(:group_identifiers, Shapes::ShapeRef.new(shape: GroupIdentifierList, location_name: "GroupIdentifiers"))
155
+ ListGroupsOutput.add_member(:groups, Shapes::ShapeRef.new(shape: GroupList, deprecated: true, location_name: "Groups", metadata: {"deprecatedMessage"=>"This field is deprecated, use GroupIdentifiers instead."}))
133
156
  ListGroupsOutput.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
134
157
  ListGroupsOutput.struct_class = Types::ListGroupsOutput
135
158
 
@@ -226,6 +226,52 @@ module Aws::ResourceGroups
226
226
  include Aws::Structure
227
227
  end
228
228
 
229
+ # A filter name and value pair that is used to obtain more specific
230
+ # results from a list of groups.
231
+ #
232
+ # @note When making an API call, you may pass GroupFilter
233
+ # data as a hash:
234
+ #
235
+ # {
236
+ # name: "resource-type", # required, accepts resource-type
237
+ # values: ["GroupFilterValue"], # required
238
+ # }
239
+ #
240
+ # @!attribute [rw] name
241
+ # The name of the filter. Filter names are case-sensitive.
242
+ # @return [String]
243
+ #
244
+ # @!attribute [rw] values
245
+ # One or more filter values. Allowed filter values vary by group
246
+ # filter name, and are case-sensitive.
247
+ # @return [Array<String>]
248
+ #
249
+ # @see http://docs.aws.amazon.com/goto/WebAPI/resource-groups-2017-11-27/GroupFilter AWS API Documentation
250
+ #
251
+ class GroupFilter < Struct.new(
252
+ :name,
253
+ :values)
254
+ include Aws::Structure
255
+ end
256
+
257
+ # The ARN and group name of a group.
258
+ #
259
+ # @!attribute [rw] group_name
260
+ # The name of a resource group.
261
+ # @return [String]
262
+ #
263
+ # @!attribute [rw] group_arn
264
+ # The ARN of a resource group.
265
+ # @return [String]
266
+ #
267
+ # @see http://docs.aws.amazon.com/goto/WebAPI/resource-groups-2017-11-27/GroupIdentifier AWS API Documentation
268
+ #
269
+ class GroupIdentifier < Struct.new(
270
+ :group_name,
271
+ :group_arn)
272
+ include Aws::Structure
273
+ end
274
+
229
275
  # The underlying resource query of a resource group. Resources that
230
276
  # match query results are part of the group.
231
277
  #
@@ -322,10 +368,27 @@ module Aws::ResourceGroups
322
368
  # data as a hash:
323
369
  #
324
370
  # {
371
+ # filters: [
372
+ # {
373
+ # name: "resource-type", # required, accepts resource-type
374
+ # values: ["GroupFilterValue"], # required
375
+ # },
376
+ # ],
325
377
  # max_results: 1,
326
378
  # next_token: "NextToken",
327
379
  # }
328
380
  #
381
+ # @!attribute [rw] filters
382
+ # Filters, formatted as GroupFilter objects, that you want to apply to
383
+ # a ListGroups operation.
384
+ #
385
+ # * `group-type` - Filter groups by resource type. Specify up to five
386
+ # group types in the format AWS::ServiceCode::ResourceType. For
387
+ # example, AWS::EC2::Instance, or AWS::S3::Bucket.
388
+ #
389
+ # ^
390
+ # @return [Array<Types::GroupFilter>]
391
+ #
329
392
  # @!attribute [rw] max_results
330
393
  # The maximum number of resource group results that are returned by
331
394
  # ListGroups in paginated output. By default, this number is 50.
@@ -340,11 +403,17 @@ module Aws::ResourceGroups
340
403
  # @see http://docs.aws.amazon.com/goto/WebAPI/resource-groups-2017-11-27/ListGroupsInput AWS API Documentation
341
404
  #
342
405
  class ListGroupsInput < Struct.new(
406
+ :filters,
343
407
  :max_results,
344
408
  :next_token)
345
409
  include Aws::Structure
346
410
  end
347
411
 
412
+ # @!attribute [rw] group_identifiers
413
+ # A list of GroupIdentifier objects. Each identifier is an object that
414
+ # contains both the GroupName and the GroupArn.
415
+ # @return [Array<Types::GroupIdentifier>]
416
+ #
348
417
  # @!attribute [rw] groups
349
418
  # A list of resource groups.
350
419
  # @return [Array<Types::Group>]
@@ -357,6 +426,7 @@ module Aws::ResourceGroups
357
426
  # @see http://docs.aws.amazon.com/goto/WebAPI/resource-groups-2017-11-27/ListGroupsOutput AWS API Documentation
358
427
  #
359
428
  class ListGroupsOutput < Struct.new(
429
+ :group_identifiers,
360
430
  :groups,
361
431
  :next_token)
362
432
  include Aws::Structure
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.0
4
+ version: 1.5.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-09-06 00:00:00.000000000 Z
11
+ date: 2018-10-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core