aws-sdk-resourcegroups 1.26.0 → 1.27.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.
@@ -18,8 +18,14 @@ module Aws::ResourceGroups
18
18
  CreateGroupOutput = Shapes::StructureShape.new(name: 'CreateGroupOutput')
19
19
  DeleteGroupInput = Shapes::StructureShape.new(name: 'DeleteGroupInput')
20
20
  DeleteGroupOutput = Shapes::StructureShape.new(name: 'DeleteGroupOutput')
21
+ Description = Shapes::StringShape.new(name: 'Description')
22
+ ErrorCode = Shapes::StringShape.new(name: 'ErrorCode')
21
23
  ErrorMessage = Shapes::StringShape.new(name: 'ErrorMessage')
24
+ FailedResource = Shapes::StructureShape.new(name: 'FailedResource')
25
+ FailedResourceList = Shapes::ListShape.new(name: 'FailedResourceList')
22
26
  ForbiddenException = Shapes::StructureShape.new(name: 'ForbiddenException')
27
+ GetGroupConfigurationInput = Shapes::StructureShape.new(name: 'GetGroupConfigurationInput')
28
+ GetGroupConfigurationOutput = Shapes::StructureShape.new(name: 'GetGroupConfigurationOutput')
23
29
  GetGroupInput = Shapes::StructureShape.new(name: 'GetGroupInput')
24
30
  GetGroupOutput = Shapes::StructureShape.new(name: 'GetGroupOutput')
25
31
  GetGroupQueryInput = Shapes::StructureShape.new(name: 'GetGroupQueryInput')
@@ -28,7 +34,16 @@ module Aws::ResourceGroups
28
34
  GetTagsOutput = Shapes::StructureShape.new(name: 'GetTagsOutput')
29
35
  Group = Shapes::StructureShape.new(name: 'Group')
30
36
  GroupArn = Shapes::StringShape.new(name: 'GroupArn')
31
- GroupDescription = Shapes::StringShape.new(name: 'GroupDescription')
37
+ GroupConfiguration = Shapes::StructureShape.new(name: 'GroupConfiguration')
38
+ GroupConfigurationFailureReason = Shapes::StringShape.new(name: 'GroupConfigurationFailureReason')
39
+ GroupConfigurationItem = Shapes::StructureShape.new(name: 'GroupConfigurationItem')
40
+ GroupConfigurationList = Shapes::ListShape.new(name: 'GroupConfigurationList')
41
+ GroupConfigurationParameter = Shapes::StructureShape.new(name: 'GroupConfigurationParameter')
42
+ GroupConfigurationParameterName = Shapes::StringShape.new(name: 'GroupConfigurationParameterName')
43
+ GroupConfigurationParameterValue = Shapes::StringShape.new(name: 'GroupConfigurationParameterValue')
44
+ GroupConfigurationParameterValueList = Shapes::ListShape.new(name: 'GroupConfigurationParameterValueList')
45
+ GroupConfigurationStatus = Shapes::StringShape.new(name: 'GroupConfigurationStatus')
46
+ GroupConfigurationType = Shapes::StringShape.new(name: 'GroupConfigurationType')
32
47
  GroupFilter = Shapes::StructureShape.new(name: 'GroupFilter')
33
48
  GroupFilterList = Shapes::ListShape.new(name: 'GroupFilterList')
34
49
  GroupFilterName = Shapes::StringShape.new(name: 'GroupFilterName')
@@ -38,7 +53,11 @@ module Aws::ResourceGroups
38
53
  GroupIdentifierList = Shapes::ListShape.new(name: 'GroupIdentifierList')
39
54
  GroupList = Shapes::ListShape.new(name: 'GroupList')
40
55
  GroupName = Shapes::StringShape.new(name: 'GroupName')
56
+ GroupParameterList = Shapes::ListShape.new(name: 'GroupParameterList')
41
57
  GroupQuery = Shapes::StructureShape.new(name: 'GroupQuery')
58
+ GroupResourcesInput = Shapes::StructureShape.new(name: 'GroupResourcesInput')
59
+ GroupResourcesOutput = Shapes::StructureShape.new(name: 'GroupResourcesOutput')
60
+ GroupString = Shapes::StringShape.new(name: 'GroupString')
42
61
  InternalServerErrorException = Shapes::StructureShape.new(name: 'InternalServerErrorException')
43
62
  ListGroupResourcesInput = Shapes::StructureShape.new(name: 'ListGroupResourcesInput')
44
63
  ListGroupResourcesOutput = Shapes::StructureShape.new(name: 'ListGroupResourcesOutput')
@@ -55,6 +74,7 @@ module Aws::ResourceGroups
55
74
  QueryErrorMessage = Shapes::StringShape.new(name: 'QueryErrorMessage')
56
75
  QueryType = Shapes::StringShape.new(name: 'QueryType')
57
76
  ResourceArn = Shapes::StringShape.new(name: 'ResourceArn')
77
+ ResourceArnList = Shapes::ListShape.new(name: 'ResourceArnList')
58
78
  ResourceFilter = Shapes::StructureShape.new(name: 'ResourceFilter')
59
79
  ResourceFilterList = Shapes::ListShape.new(name: 'ResourceFilterList')
60
80
  ResourceFilterName = Shapes::StringShape.new(name: 'ResourceFilterName')
@@ -74,6 +94,8 @@ module Aws::ResourceGroups
74
94
  Tags = Shapes::MapShape.new(name: 'Tags')
75
95
  TooManyRequestsException = Shapes::StructureShape.new(name: 'TooManyRequestsException')
76
96
  UnauthorizedException = Shapes::StructureShape.new(name: 'UnauthorizedException')
97
+ UngroupResourcesInput = Shapes::StructureShape.new(name: 'UngroupResourcesInput')
98
+ UngroupResourcesOutput = Shapes::StructureShape.new(name: 'UngroupResourcesOutput')
77
99
  UntagInput = Shapes::StructureShape.new(name: 'UntagInput')
78
100
  UntagOutput = Shapes::StructureShape.new(name: 'UntagOutput')
79
101
  UpdateGroupInput = Shapes::StructureShape.new(name: 'UpdateGroupInput')
@@ -85,32 +107,50 @@ module Aws::ResourceGroups
85
107
  BadRequestException.struct_class = Types::BadRequestException
86
108
 
87
109
  CreateGroupInput.add_member(:name, Shapes::ShapeRef.new(shape: GroupName, required: true, location_name: "Name"))
88
- CreateGroupInput.add_member(:description, Shapes::ShapeRef.new(shape: GroupDescription, location_name: "Description"))
89
- CreateGroupInput.add_member(:resource_query, Shapes::ShapeRef.new(shape: ResourceQuery, required: true, location_name: "ResourceQuery"))
110
+ CreateGroupInput.add_member(:description, Shapes::ShapeRef.new(shape: Description, location_name: "Description"))
111
+ CreateGroupInput.add_member(:resource_query, Shapes::ShapeRef.new(shape: ResourceQuery, location_name: "ResourceQuery"))
90
112
  CreateGroupInput.add_member(:tags, Shapes::ShapeRef.new(shape: Tags, location_name: "Tags"))
113
+ CreateGroupInput.add_member(:configuration, Shapes::ShapeRef.new(shape: GroupConfigurationList, location_name: "Configuration"))
91
114
  CreateGroupInput.struct_class = Types::CreateGroupInput
92
115
 
93
116
  CreateGroupOutput.add_member(:group, Shapes::ShapeRef.new(shape: Group, location_name: "Group"))
94
117
  CreateGroupOutput.add_member(:resource_query, Shapes::ShapeRef.new(shape: ResourceQuery, location_name: "ResourceQuery"))
95
118
  CreateGroupOutput.add_member(:tags, Shapes::ShapeRef.new(shape: Tags, location_name: "Tags"))
119
+ CreateGroupOutput.add_member(:group_configuration, Shapes::ShapeRef.new(shape: GroupConfiguration, location_name: "GroupConfiguration"))
96
120
  CreateGroupOutput.struct_class = Types::CreateGroupOutput
97
121
 
98
- DeleteGroupInput.add_member(:group_name, Shapes::ShapeRef.new(shape: GroupName, required: true, location: "uri", location_name: "GroupName"))
122
+ DeleteGroupInput.add_member(:group_name, Shapes::ShapeRef.new(shape: GroupName, deprecated: true, location_name: "GroupName", metadata: {"deprecatedMessage"=>"This field is deprecated, use Group instead."}))
123
+ DeleteGroupInput.add_member(:group, Shapes::ShapeRef.new(shape: GroupString, location_name: "Group"))
99
124
  DeleteGroupInput.struct_class = Types::DeleteGroupInput
100
125
 
101
126
  DeleteGroupOutput.add_member(:group, Shapes::ShapeRef.new(shape: Group, location_name: "Group"))
102
127
  DeleteGroupOutput.struct_class = Types::DeleteGroupOutput
103
128
 
129
+ FailedResource.add_member(:resource_arn, Shapes::ShapeRef.new(shape: ResourceArn, location_name: "ResourceArn"))
130
+ FailedResource.add_member(:error_message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "ErrorMessage"))
131
+ FailedResource.add_member(:error_code, Shapes::ShapeRef.new(shape: ErrorCode, location_name: "ErrorCode"))
132
+ FailedResource.struct_class = Types::FailedResource
133
+
134
+ FailedResourceList.member = Shapes::ShapeRef.new(shape: FailedResource)
135
+
104
136
  ForbiddenException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message"))
105
137
  ForbiddenException.struct_class = Types::ForbiddenException
106
138
 
107
- GetGroupInput.add_member(:group_name, Shapes::ShapeRef.new(shape: GroupName, required: true, location: "uri", location_name: "GroupName"))
139
+ GetGroupConfigurationInput.add_member(:group, Shapes::ShapeRef.new(shape: GroupString, location_name: "Group"))
140
+ GetGroupConfigurationInput.struct_class = Types::GetGroupConfigurationInput
141
+
142
+ GetGroupConfigurationOutput.add_member(:group_configuration, Shapes::ShapeRef.new(shape: GroupConfiguration, location_name: "GroupConfiguration"))
143
+ GetGroupConfigurationOutput.struct_class = Types::GetGroupConfigurationOutput
144
+
145
+ GetGroupInput.add_member(:group_name, Shapes::ShapeRef.new(shape: GroupName, deprecated: true, location_name: "GroupName", metadata: {"deprecatedMessage"=>"This field is deprecated, use Group instead."}))
146
+ GetGroupInput.add_member(:group, Shapes::ShapeRef.new(shape: GroupString, location_name: "Group"))
108
147
  GetGroupInput.struct_class = Types::GetGroupInput
109
148
 
110
149
  GetGroupOutput.add_member(:group, Shapes::ShapeRef.new(shape: Group, location_name: "Group"))
111
150
  GetGroupOutput.struct_class = Types::GetGroupOutput
112
151
 
113
- GetGroupQueryInput.add_member(:group_name, Shapes::ShapeRef.new(shape: GroupName, required: true, location: "uri", location_name: "GroupName"))
152
+ GetGroupQueryInput.add_member(:group_name, Shapes::ShapeRef.new(shape: GroupName, deprecated: true, location_name: "GroupName", metadata: {"deprecatedMessage"=>"This field is deprecated, use Group instead."}))
153
+ GetGroupQueryInput.add_member(:group, Shapes::ShapeRef.new(shape: GroupString, location_name: "Group"))
114
154
  GetGroupQueryInput.struct_class = Types::GetGroupQueryInput
115
155
 
116
156
  GetGroupQueryOutput.add_member(:group_query, Shapes::ShapeRef.new(shape: GroupQuery, location_name: "GroupQuery"))
@@ -125,9 +165,27 @@ module Aws::ResourceGroups
125
165
 
126
166
  Group.add_member(:group_arn, Shapes::ShapeRef.new(shape: GroupArn, required: true, location_name: "GroupArn"))
127
167
  Group.add_member(:name, Shapes::ShapeRef.new(shape: GroupName, required: true, location_name: "Name"))
128
- Group.add_member(:description, Shapes::ShapeRef.new(shape: GroupDescription, location_name: "Description"))
168
+ Group.add_member(:description, Shapes::ShapeRef.new(shape: Description, location_name: "Description"))
129
169
  Group.struct_class = Types::Group
130
170
 
171
+ GroupConfiguration.add_member(:configuration, Shapes::ShapeRef.new(shape: GroupConfigurationList, location_name: "Configuration"))
172
+ GroupConfiguration.add_member(:proposed_configuration, Shapes::ShapeRef.new(shape: GroupConfigurationList, location_name: "ProposedConfiguration"))
173
+ GroupConfiguration.add_member(:status, Shapes::ShapeRef.new(shape: GroupConfigurationStatus, location_name: "Status"))
174
+ GroupConfiguration.add_member(:failure_reason, Shapes::ShapeRef.new(shape: GroupConfigurationFailureReason, location_name: "FailureReason"))
175
+ GroupConfiguration.struct_class = Types::GroupConfiguration
176
+
177
+ GroupConfigurationItem.add_member(:type, Shapes::ShapeRef.new(shape: GroupConfigurationType, required: true, location_name: "Type"))
178
+ GroupConfigurationItem.add_member(:parameters, Shapes::ShapeRef.new(shape: GroupParameterList, location_name: "Parameters"))
179
+ GroupConfigurationItem.struct_class = Types::GroupConfigurationItem
180
+
181
+ GroupConfigurationList.member = Shapes::ShapeRef.new(shape: GroupConfigurationItem)
182
+
183
+ GroupConfigurationParameter.add_member(:name, Shapes::ShapeRef.new(shape: GroupConfigurationParameterName, required: true, location_name: "Name"))
184
+ GroupConfigurationParameter.add_member(:values, Shapes::ShapeRef.new(shape: GroupConfigurationParameterValueList, location_name: "Values"))
185
+ GroupConfigurationParameter.struct_class = Types::GroupConfigurationParameter
186
+
187
+ GroupConfigurationParameterValueList.member = Shapes::ShapeRef.new(shape: GroupConfigurationParameterValue)
188
+
131
189
  GroupFilter.add_member(:name, Shapes::ShapeRef.new(shape: GroupFilterName, required: true, location_name: "Name"))
132
190
  GroupFilter.add_member(:values, Shapes::ShapeRef.new(shape: GroupFilterValues, required: true, location_name: "Values"))
133
191
  GroupFilter.struct_class = Types::GroupFilter
@@ -144,17 +202,28 @@ module Aws::ResourceGroups
144
202
 
145
203
  GroupList.member = Shapes::ShapeRef.new(shape: Group)
146
204
 
205
+ GroupParameterList.member = Shapes::ShapeRef.new(shape: GroupConfigurationParameter)
206
+
147
207
  GroupQuery.add_member(:group_name, Shapes::ShapeRef.new(shape: GroupName, required: true, location_name: "GroupName"))
148
208
  GroupQuery.add_member(:resource_query, Shapes::ShapeRef.new(shape: ResourceQuery, required: true, location_name: "ResourceQuery"))
149
209
  GroupQuery.struct_class = Types::GroupQuery
150
210
 
211
+ GroupResourcesInput.add_member(:group, Shapes::ShapeRef.new(shape: GroupString, required: true, location_name: "Group"))
212
+ GroupResourcesInput.add_member(:resource_arns, Shapes::ShapeRef.new(shape: ResourceArnList, required: true, location_name: "ResourceArns"))
213
+ GroupResourcesInput.struct_class = Types::GroupResourcesInput
214
+
215
+ GroupResourcesOutput.add_member(:succeeded, Shapes::ShapeRef.new(shape: ResourceArnList, location_name: "Succeeded"))
216
+ GroupResourcesOutput.add_member(:failed, Shapes::ShapeRef.new(shape: FailedResourceList, location_name: "Failed"))
217
+ GroupResourcesOutput.struct_class = Types::GroupResourcesOutput
218
+
151
219
  InternalServerErrorException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message"))
152
220
  InternalServerErrorException.struct_class = Types::InternalServerErrorException
153
221
 
154
- ListGroupResourcesInput.add_member(:group_name, Shapes::ShapeRef.new(shape: GroupName, required: true, location: "uri", location_name: "GroupName"))
222
+ ListGroupResourcesInput.add_member(:group_name, Shapes::ShapeRef.new(shape: GroupName, deprecated: true, location_name: "GroupName", metadata: {"deprecatedMessage"=>"This field is deprecated, use Group instead."}))
223
+ ListGroupResourcesInput.add_member(:group, Shapes::ShapeRef.new(shape: GroupString, location_name: "Group"))
155
224
  ListGroupResourcesInput.add_member(:filters, Shapes::ShapeRef.new(shape: ResourceFilterList, location_name: "Filters"))
156
- ListGroupResourcesInput.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location: "querystring", location_name: "maxResults"))
157
- ListGroupResourcesInput.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location: "querystring", location_name: "nextToken"))
225
+ ListGroupResourcesInput.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location_name: "MaxResults"))
226
+ ListGroupResourcesInput.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
158
227
  ListGroupResourcesInput.struct_class = Types::ListGroupResourcesInput
159
228
 
160
229
  ListGroupResourcesOutput.add_member(:resource_identifiers, Shapes::ShapeRef.new(shape: ResourceIdentifierList, location_name: "ResourceIdentifiers"))
@@ -184,6 +253,8 @@ module Aws::ResourceGroups
184
253
 
185
254
  QueryErrorList.member = Shapes::ShapeRef.new(shape: QueryError)
186
255
 
256
+ ResourceArnList.member = Shapes::ShapeRef.new(shape: ResourceArn)
257
+
187
258
  ResourceFilter.add_member(:name, Shapes::ShapeRef.new(shape: ResourceFilterName, required: true, location_name: "Name"))
188
259
  ResourceFilter.add_member(:values, Shapes::ShapeRef.new(shape: ResourceFilterValues, required: true, location_name: "Values"))
189
260
  ResourceFilter.struct_class = Types::ResourceFilter
@@ -231,6 +302,14 @@ module Aws::ResourceGroups
231
302
  UnauthorizedException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message"))
232
303
  UnauthorizedException.struct_class = Types::UnauthorizedException
233
304
 
305
+ UngroupResourcesInput.add_member(:group, Shapes::ShapeRef.new(shape: GroupString, required: true, location_name: "Group"))
306
+ UngroupResourcesInput.add_member(:resource_arns, Shapes::ShapeRef.new(shape: ResourceArnList, required: true, location_name: "ResourceArns"))
307
+ UngroupResourcesInput.struct_class = Types::UngroupResourcesInput
308
+
309
+ UngroupResourcesOutput.add_member(:succeeded, Shapes::ShapeRef.new(shape: ResourceArnList, location_name: "Succeeded"))
310
+ UngroupResourcesOutput.add_member(:failed, Shapes::ShapeRef.new(shape: FailedResourceList, location_name: "Failed"))
311
+ UngroupResourcesOutput.struct_class = Types::UngroupResourcesOutput
312
+
234
313
  UntagInput.add_member(:arn, Shapes::ShapeRef.new(shape: GroupArn, required: true, location: "uri", location_name: "Arn"))
235
314
  UntagInput.add_member(:keys, Shapes::ShapeRef.new(shape: TagKeyList, required: true, location_name: "Keys"))
236
315
  UntagInput.struct_class = Types::UntagInput
@@ -239,14 +318,16 @@ module Aws::ResourceGroups
239
318
  UntagOutput.add_member(:keys, Shapes::ShapeRef.new(shape: TagKeyList, location_name: "Keys"))
240
319
  UntagOutput.struct_class = Types::UntagOutput
241
320
 
242
- UpdateGroupInput.add_member(:group_name, Shapes::ShapeRef.new(shape: GroupName, required: true, location: "uri", location_name: "GroupName"))
243
- UpdateGroupInput.add_member(:description, Shapes::ShapeRef.new(shape: GroupDescription, location_name: "Description"))
321
+ UpdateGroupInput.add_member(:group_name, Shapes::ShapeRef.new(shape: GroupName, deprecated: true, location_name: "GroupName", metadata: {"deprecatedMessage"=>"This field is deprecated, use Group instead."}))
322
+ UpdateGroupInput.add_member(:group, Shapes::ShapeRef.new(shape: GroupString, location_name: "Group"))
323
+ UpdateGroupInput.add_member(:description, Shapes::ShapeRef.new(shape: Description, location_name: "Description"))
244
324
  UpdateGroupInput.struct_class = Types::UpdateGroupInput
245
325
 
246
326
  UpdateGroupOutput.add_member(:group, Shapes::ShapeRef.new(shape: Group, location_name: "Group"))
247
327
  UpdateGroupOutput.struct_class = Types::UpdateGroupOutput
248
328
 
249
- UpdateGroupQueryInput.add_member(:group_name, Shapes::ShapeRef.new(shape: GroupName, required: true, location: "uri", location_name: "GroupName"))
329
+ UpdateGroupQueryInput.add_member(:group_name, Shapes::ShapeRef.new(shape: GroupName, deprecated: true, location_name: "GroupName", metadata: {"deprecatedMessage"=>"This field is deprecated, use Group instead."}))
330
+ UpdateGroupQueryInput.add_member(:group, Shapes::ShapeRef.new(shape: GroupString, location_name: "Group"))
250
331
  UpdateGroupQueryInput.add_member(:resource_query, Shapes::ShapeRef.new(shape: ResourceQuery, required: true, location_name: "ResourceQuery"))
251
332
  UpdateGroupQueryInput.struct_class = Types::UpdateGroupQueryInput
252
333
 
@@ -286,8 +367,8 @@ module Aws::ResourceGroups
286
367
 
287
368
  api.add_operation(:delete_group, Seahorse::Model::Operation.new.tap do |o|
288
369
  o.name = "DeleteGroup"
289
- o.http_method = "DELETE"
290
- o.http_request_uri = "/groups/{GroupName}"
370
+ o.http_method = "POST"
371
+ o.http_request_uri = "/delete-group"
291
372
  o.input = Shapes::ShapeRef.new(shape: DeleteGroupInput)
292
373
  o.output = Shapes::ShapeRef.new(shape: DeleteGroupOutput)
293
374
  o.errors << Shapes::ShapeRef.new(shape: BadRequestException)
@@ -300,8 +381,8 @@ module Aws::ResourceGroups
300
381
 
301
382
  api.add_operation(:get_group, Seahorse::Model::Operation.new.tap do |o|
302
383
  o.name = "GetGroup"
303
- o.http_method = "GET"
304
- o.http_request_uri = "/groups/{GroupName}"
384
+ o.http_method = "POST"
385
+ o.http_request_uri = "/get-group"
305
386
  o.input = Shapes::ShapeRef.new(shape: GetGroupInput)
306
387
  o.output = Shapes::ShapeRef.new(shape: GetGroupOutput)
307
388
  o.errors << Shapes::ShapeRef.new(shape: BadRequestException)
@@ -312,10 +393,24 @@ module Aws::ResourceGroups
312
393
  o.errors << Shapes::ShapeRef.new(shape: InternalServerErrorException)
313
394
  end)
314
395
 
396
+ api.add_operation(:get_group_configuration, Seahorse::Model::Operation.new.tap do |o|
397
+ o.name = "GetGroupConfiguration"
398
+ o.http_method = "POST"
399
+ o.http_request_uri = "/get-group-configuration"
400
+ o.input = Shapes::ShapeRef.new(shape: GetGroupConfigurationInput)
401
+ o.output = Shapes::ShapeRef.new(shape: GetGroupConfigurationOutput)
402
+ o.errors << Shapes::ShapeRef.new(shape: BadRequestException)
403
+ o.errors << Shapes::ShapeRef.new(shape: ForbiddenException)
404
+ o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
405
+ o.errors << Shapes::ShapeRef.new(shape: MethodNotAllowedException)
406
+ o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
407
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerErrorException)
408
+ end)
409
+
315
410
  api.add_operation(:get_group_query, Seahorse::Model::Operation.new.tap do |o|
316
411
  o.name = "GetGroupQuery"
317
- o.http_method = "GET"
318
- o.http_request_uri = "/groups/{GroupName}/query"
412
+ o.http_method = "POST"
413
+ o.http_request_uri = "/get-group-query"
319
414
  o.input = Shapes::ShapeRef.new(shape: GetGroupQueryInput)
320
415
  o.output = Shapes::ShapeRef.new(shape: GetGroupQueryOutput)
321
416
  o.errors << Shapes::ShapeRef.new(shape: BadRequestException)
@@ -340,10 +435,24 @@ module Aws::ResourceGroups
340
435
  o.errors << Shapes::ShapeRef.new(shape: InternalServerErrorException)
341
436
  end)
342
437
 
438
+ api.add_operation(:group_resources, Seahorse::Model::Operation.new.tap do |o|
439
+ o.name = "GroupResources"
440
+ o.http_method = "POST"
441
+ o.http_request_uri = "/group-resources"
442
+ o.input = Shapes::ShapeRef.new(shape: GroupResourcesInput)
443
+ o.output = Shapes::ShapeRef.new(shape: GroupResourcesOutput)
444
+ o.errors << Shapes::ShapeRef.new(shape: BadRequestException)
445
+ o.errors << Shapes::ShapeRef.new(shape: ForbiddenException)
446
+ o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
447
+ o.errors << Shapes::ShapeRef.new(shape: MethodNotAllowedException)
448
+ o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
449
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerErrorException)
450
+ end)
451
+
343
452
  api.add_operation(:list_group_resources, Seahorse::Model::Operation.new.tap do |o|
344
453
  o.name = "ListGroupResources"
345
454
  o.http_method = "POST"
346
- o.http_request_uri = "/groups/{GroupName}/resource-identifiers-list"
455
+ o.http_request_uri = "/list-group-resources"
347
456
  o.input = Shapes::ShapeRef.new(shape: ListGroupResourcesInput)
348
457
  o.output = Shapes::ShapeRef.new(shape: ListGroupResourcesOutput)
349
458
  o.errors << Shapes::ShapeRef.new(shape: UnauthorizedException)
@@ -414,6 +523,20 @@ module Aws::ResourceGroups
414
523
  o.errors << Shapes::ShapeRef.new(shape: InternalServerErrorException)
415
524
  end)
416
525
 
526
+ api.add_operation(:ungroup_resources, Seahorse::Model::Operation.new.tap do |o|
527
+ o.name = "UngroupResources"
528
+ o.http_method = "POST"
529
+ o.http_request_uri = "/ungroup-resources"
530
+ o.input = Shapes::ShapeRef.new(shape: UngroupResourcesInput)
531
+ o.output = Shapes::ShapeRef.new(shape: UngroupResourcesOutput)
532
+ o.errors << Shapes::ShapeRef.new(shape: BadRequestException)
533
+ o.errors << Shapes::ShapeRef.new(shape: ForbiddenException)
534
+ o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
535
+ o.errors << Shapes::ShapeRef.new(shape: MethodNotAllowedException)
536
+ o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
537
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerErrorException)
538
+ end)
539
+
417
540
  api.add_operation(:untag, Seahorse::Model::Operation.new.tap do |o|
418
541
  o.name = "Untag"
419
542
  o.http_method = "PATCH"
@@ -430,8 +553,8 @@ module Aws::ResourceGroups
430
553
 
431
554
  api.add_operation(:update_group, Seahorse::Model::Operation.new.tap do |o|
432
555
  o.name = "UpdateGroup"
433
- o.http_method = "PUT"
434
- o.http_request_uri = "/groups/{GroupName}"
556
+ o.http_method = "POST"
557
+ o.http_request_uri = "/update-group"
435
558
  o.input = Shapes::ShapeRef.new(shape: UpdateGroupInput)
436
559
  o.output = Shapes::ShapeRef.new(shape: UpdateGroupOutput)
437
560
  o.errors << Shapes::ShapeRef.new(shape: BadRequestException)
@@ -444,8 +567,8 @@ module Aws::ResourceGroups
444
567
 
445
568
  api.add_operation(:update_group_query, Seahorse::Model::Operation.new.tap do |o|
446
569
  o.name = "UpdateGroupQuery"
447
- o.http_method = "PUT"
448
- o.http_request_uri = "/groups/{GroupName}/query"
570
+ o.http_method = "POST"
571
+ o.http_request_uri = "/update-group-query"
449
572
  o.input = Shapes::ShapeRef.new(shape: UpdateGroupQueryInput)
450
573
  o.output = Shapes::ShapeRef.new(shape: UpdateGroupQueryOutput)
451
574
  o.errors << Shapes::ShapeRef.new(shape: BadRequestException)
@@ -10,8 +10,8 @@
10
10
  module Aws::ResourceGroups
11
11
  module Types
12
12
 
13
- # The request does not comply with validation rules that are defined for
14
- # the request parameters.
13
+ # The request includes one or more parameters that violate validation
14
+ # rules.
15
15
  #
16
16
  # @!attribute [rw] message
17
17
  # @return [String]
@@ -29,56 +29,81 @@ module Aws::ResourceGroups
29
29
  #
30
30
  # {
31
31
  # name: "GroupName", # required
32
- # description: "GroupDescription",
33
- # resource_query: { # required
32
+ # description: "Description",
33
+ # resource_query: {
34
34
  # type: "TAG_FILTERS_1_0", # required, accepts TAG_FILTERS_1_0, CLOUDFORMATION_STACK_1_0
35
35
  # query: "Query", # required
36
36
  # },
37
37
  # tags: {
38
38
  # "TagKey" => "TagValue",
39
39
  # },
40
+ # configuration: [
41
+ # {
42
+ # type: "GroupConfigurationType", # required
43
+ # parameters: [
44
+ # {
45
+ # name: "GroupConfigurationParameterName", # required
46
+ # values: ["GroupConfigurationParameterValue"],
47
+ # },
48
+ # ],
49
+ # },
50
+ # ],
40
51
  # }
41
52
  #
42
53
  # @!attribute [rw] name
43
54
  # The name of the group, which is the identifier of the group in other
44
- # operations. A resource group name cannot be updated after it is
45
- # created. A resource group name can have a maximum of 128 characters,
46
- # including letters, numbers, hyphens, dots, and underscores. The name
47
- # cannot start with `AWS` or `aws`; these are reserved. A resource
48
- # group name must be unique within your account.
55
+ # operations. You can't change the name of a resource group after you
56
+ # create it. A resource group name can consist of letters, numbers,
57
+ # hyphens, periods, and underscores. The name cannot start with `AWS`
58
+ # or `aws`; these are reserved. A resource group name must be unique
59
+ # within each AWS Region in your AWS account.
49
60
  # @return [String]
50
61
  #
51
62
  # @!attribute [rw] description
52
- # The description of the resource group. Descriptions can have a
53
- # maximum of 511 characters, including letters, numbers, hyphens,
54
- # underscores, punctuation, and spaces.
63
+ # The description of the resource group. Descriptions can consist of
64
+ # letters, numbers, hyphens, underscores, periods, and spaces.
55
65
  # @return [String]
56
66
  #
57
67
  # @!attribute [rw] resource_query
58
68
  # The resource query that determines which AWS resources are members
59
69
  # of this group.
70
+ #
71
+ # <note markdown="1"> You can specify either a `ResourceQuery` or a `Configuration`, but
72
+ # not both.
73
+ #
74
+ # </note>
60
75
  # @return [Types::ResourceQuery]
61
76
  #
62
77
  # @!attribute [rw] tags
63
- # The tags to add to the group. A tag is a string-to-string map of
64
- # key-value pairs. Tag keys can have a maximum character length of 128
65
- # characters, and tag values can have a maximum length of 256
66
- # characters.
78
+ # The tags to add to the group. A tag is key-value pair string.
67
79
  # @return [Hash<String,String>]
68
80
  #
81
+ # @!attribute [rw] configuration
82
+ # A configuration associates the resource group with an AWS service
83
+ # and specifies how the service can interact with the resources in the
84
+ # group. A configuration is an array of GroupConfigurationItem
85
+ # elements.
86
+ #
87
+ # <note markdown="1"> You can specify either a `Configuration` or a `ResourceQuery` in a
88
+ # group, but not both.
89
+ #
90
+ # </note>
91
+ # @return [Array<Types::GroupConfigurationItem>]
92
+ #
69
93
  # @see http://docs.aws.amazon.com/goto/WebAPI/resource-groups-2017-11-27/CreateGroupInput AWS API Documentation
70
94
  #
71
95
  class CreateGroupInput < Struct.new(
72
96
  :name,
73
97
  :description,
74
98
  :resource_query,
75
- :tags)
99
+ :tags,
100
+ :configuration)
76
101
  SENSITIVE = []
77
102
  include Aws::Structure
78
103
  end
79
104
 
80
105
  # @!attribute [rw] group
81
- # A full description of the resource group after it is created.
106
+ # The description of the resource group.
82
107
  # @return [Types::Group]
83
108
  #
84
109
  # @!attribute [rw] resource_query
@@ -89,12 +114,29 @@ module Aws::ResourceGroups
89
114
  # The tags associated with the group.
90
115
  # @return [Hash<String,String>]
91
116
  #
117
+ # @!attribute [rw] group_configuration
118
+ # The service configuration associated with the resource group. AWS
119
+ # Resource Groups supports adding service configurations for the
120
+ # following resource group types:
121
+ #
122
+ # * `AWS::EC2::CapacityReservationPool` - Amazon EC2 capacity
123
+ # reservation pools. For more information, see [Working with
124
+ # capacity reservation groups][1] in the *EC2 Users Guide*.
125
+ #
126
+ # ^
127
+ #
128
+ #
129
+ #
130
+ # [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/capacity-reservations-using.html#create-cr-group
131
+ # @return [Types::GroupConfiguration]
132
+ #
92
133
  # @see http://docs.aws.amazon.com/goto/WebAPI/resource-groups-2017-11-27/CreateGroupOutput AWS API Documentation
93
134
  #
94
135
  class CreateGroupOutput < Struct.new(
95
136
  :group,
96
137
  :resource_query,
97
- :tags)
138
+ :tags,
139
+ :group_configuration)
98
140
  SENSITIVE = []
99
141
  include Aws::Structure
100
142
  end
@@ -103,17 +145,23 @@ module Aws::ResourceGroups
103
145
  # data as a hash:
104
146
  #
105
147
  # {
106
- # group_name: "GroupName", # required
148
+ # group_name: "GroupName",
149
+ # group: "GroupString",
107
150
  # }
108
151
  #
109
152
  # @!attribute [rw] group_name
110
- # The name of the resource group to delete.
153
+ # Don't use this parameter. Use `Group` instead.
154
+ # @return [String]
155
+ #
156
+ # @!attribute [rw] group
157
+ # The name or the ARN of the resource group to delete.
111
158
  # @return [String]
112
159
  #
113
160
  # @see http://docs.aws.amazon.com/goto/WebAPI/resource-groups-2017-11-27/DeleteGroupInput AWS API Documentation
114
161
  #
115
162
  class DeleteGroupInput < Struct.new(
116
- :group_name)
163
+ :group_name,
164
+ :group)
117
165
  SENSITIVE = []
118
166
  include Aws::Structure
119
167
  end
@@ -130,7 +178,31 @@ module Aws::ResourceGroups
130
178
  include Aws::Structure
131
179
  end
132
180
 
133
- # The caller is not authorized to make the request.
181
+ # A resource that failed to be added to or removed from a group.
182
+ #
183
+ # @!attribute [rw] resource_arn
184
+ # The ARN of the resource that failed to be added or removed.
185
+ # @return [String]
186
+ #
187
+ # @!attribute [rw] error_message
188
+ # The error message text associated with the failure.
189
+ # @return [String]
190
+ #
191
+ # @!attribute [rw] error_code
192
+ # The error code associated with the failure.
193
+ # @return [String]
194
+ #
195
+ # @see http://docs.aws.amazon.com/goto/WebAPI/resource-groups-2017-11-27/FailedResource AWS API Documentation
196
+ #
197
+ class FailedResource < Struct.new(
198
+ :resource_arn,
199
+ :error_message,
200
+ :error_code)
201
+ SENSITIVE = []
202
+ include Aws::Structure
203
+ end
204
+
205
+ # The caller isn't authorized to make the request. Check permissions.
134
206
  #
135
207
  # @!attribute [rw] message
136
208
  # @return [String]
@@ -143,21 +215,58 @@ module Aws::ResourceGroups
143
215
  include Aws::Structure
144
216
  end
145
217
 
218
+ # @note When making an API call, you may pass GetGroupConfigurationInput
219
+ # data as a hash:
220
+ #
221
+ # {
222
+ # group: "GroupString",
223
+ # }
224
+ #
225
+ # @!attribute [rw] group
226
+ # The name or the ARN of the resource group.
227
+ # @return [String]
228
+ #
229
+ # @see http://docs.aws.amazon.com/goto/WebAPI/resource-groups-2017-11-27/GetGroupConfigurationInput AWS API Documentation
230
+ #
231
+ class GetGroupConfigurationInput < Struct.new(
232
+ :group)
233
+ SENSITIVE = []
234
+ include Aws::Structure
235
+ end
236
+
237
+ # @!attribute [rw] group_configuration
238
+ # The configuration associated with the specified group.
239
+ # @return [Types::GroupConfiguration]
240
+ #
241
+ # @see http://docs.aws.amazon.com/goto/WebAPI/resource-groups-2017-11-27/GetGroupConfigurationOutput AWS API Documentation
242
+ #
243
+ class GetGroupConfigurationOutput < Struct.new(
244
+ :group_configuration)
245
+ SENSITIVE = []
246
+ include Aws::Structure
247
+ end
248
+
146
249
  # @note When making an API call, you may pass GetGroupInput
147
250
  # data as a hash:
148
251
  #
149
252
  # {
150
- # group_name: "GroupName", # required
253
+ # group_name: "GroupName",
254
+ # group: "GroupString",
151
255
  # }
152
256
  #
153
257
  # @!attribute [rw] group_name
154
- # The name of the resource group.
258
+ # Don't use this parameter. Use `Group` instead.
259
+ # @return [String]
260
+ #
261
+ # @!attribute [rw] group
262
+ # The name or the ARN of the resource group to retrieve.
155
263
  # @return [String]
156
264
  #
157
265
  # @see http://docs.aws.amazon.com/goto/WebAPI/resource-groups-2017-11-27/GetGroupInput AWS API Documentation
158
266
  #
159
267
  class GetGroupInput < Struct.new(
160
- :group_name)
268
+ :group_name,
269
+ :group)
161
270
  SENSITIVE = []
162
271
  include Aws::Structure
163
272
  end
@@ -178,17 +287,23 @@ module Aws::ResourceGroups
178
287
  # data as a hash:
179
288
  #
180
289
  # {
181
- # group_name: "GroupName", # required
290
+ # group_name: "GroupName",
291
+ # group: "GroupString",
182
292
  # }
183
293
  #
184
294
  # @!attribute [rw] group_name
185
- # The name of the resource group.
295
+ # Don't use this parameter. Use `Group` instead.
296
+ # @return [String]
297
+ #
298
+ # @!attribute [rw] group
299
+ # The name or the ARN of the resource group to query.
186
300
  # @return [String]
187
301
  #
188
302
  # @see http://docs.aws.amazon.com/goto/WebAPI/resource-groups-2017-11-27/GetGroupQueryInput AWS API Documentation
189
303
  #
190
304
  class GetGroupQueryInput < Struct.new(
191
- :group_name)
305
+ :group_name,
306
+ :group)
192
307
  SENSITIVE = []
193
308
  include Aws::Structure
194
309
  end
@@ -213,8 +328,7 @@ module Aws::ResourceGroups
213
328
  # }
214
329
  #
215
330
  # @!attribute [rw] arn
216
- # The ARN of the resource group for which you want a list of tags. The
217
- # resource must exist within the account you are using.
331
+ # The ARN of the resource group whose tags you want to retrieve.
218
332
  # @return [String]
219
333
  #
220
334
  # @see http://docs.aws.amazon.com/goto/WebAPI/resource-groups-2017-11-27/GetTagsInput AWS API Documentation
@@ -242,14 +356,25 @@ module Aws::ResourceGroups
242
356
  include Aws::Structure
243
357
  end
244
358
 
245
- # A resource group.
359
+ # A resource group that contains AWS resources. You can assign resources
360
+ # to the group by associating either of the following elements with the
361
+ # group:
362
+ #
363
+ # * ResourceQuery - Use a resource query to specify a set of tag keys
364
+ # and values. All resources in the same AWS Region and AWS account
365
+ # that have those keys with the same values are included in the group.
366
+ # You can add a resource query when you create the group.
367
+ #
368
+ # * GroupConfiguration - Use a service configuration to associate the
369
+ # group with an AWS service. The configuration specifies which
370
+ # resource types can be included in the group.
246
371
  #
247
372
  # @!attribute [rw] group_arn
248
- # The ARN of a resource group.
373
+ # The ARN of the resource group.
249
374
  # @return [String]
250
375
  #
251
376
  # @!attribute [rw] name
252
- # The name of a resource group.
377
+ # The name of the resource group.
253
378
  # @return [String]
254
379
  #
255
380
  # @!attribute [rw] description
@@ -266,14 +391,155 @@ module Aws::ResourceGroups
266
391
  include Aws::Structure
267
392
  end
268
393
 
269
- # A filter name and value pair that is used to obtain more specific
270
- # results from a list of groups.
394
+ # A service configuration associated with a resource group. The
395
+ # configuration options are determined by the AWS service that defines
396
+ # the `Type`, and specifies which resources can be included in the
397
+ # group. You can add a service configuration when you create the group.
398
+ #
399
+ # @!attribute [rw] configuration
400
+ # The configuration currently associated with the group and in effect.
401
+ # @return [Array<Types::GroupConfigurationItem>]
402
+ #
403
+ # @!attribute [rw] proposed_configuration
404
+ # If present, the new configuration that is in the process of being
405
+ # applied to the group.
406
+ # @return [Array<Types::GroupConfigurationItem>]
407
+ #
408
+ # @!attribute [rw] status
409
+ # The current status of an attempt to update the group configuration.
410
+ # @return [String]
411
+ #
412
+ # @!attribute [rw] failure_reason
413
+ # If present, the reason why a request to update the group
414
+ # configuration failed.
415
+ # @return [String]
416
+ #
417
+ # @see http://docs.aws.amazon.com/goto/WebAPI/resource-groups-2017-11-27/GroupConfiguration AWS API Documentation
418
+ #
419
+ class GroupConfiguration < Struct.new(
420
+ :configuration,
421
+ :proposed_configuration,
422
+ :status,
423
+ :failure_reason)
424
+ SENSITIVE = []
425
+ include Aws::Structure
426
+ end
427
+
428
+ # An item in a group configuration. A group configuration can have one
429
+ # or more items.
430
+ #
431
+ # @note When making an API call, you may pass GroupConfigurationItem
432
+ # data as a hash:
433
+ #
434
+ # {
435
+ # type: "GroupConfigurationType", # required
436
+ # parameters: [
437
+ # {
438
+ # name: "GroupConfigurationParameterName", # required
439
+ # values: ["GroupConfigurationParameterValue"],
440
+ # },
441
+ # ],
442
+ # }
443
+ #
444
+ # @!attribute [rw] type
445
+ # Specifies the type of group configuration item. Each item must have
446
+ # a unique value for `type`.
447
+ #
448
+ # You can specify the following string values:
449
+ #
450
+ # * `AWS::EC2::CapacityReservationPool`
451
+ #
452
+ # For more information about EC2 capacity reservation groups, see
453
+ # [Working with capacity reservation groups][1] in the *EC2 Users
454
+ # Guide*.
455
+ #
456
+ # * `AWS::ResourceGroups::Generic` - Supports parameters that
457
+ # configure the behavior of resource groups of any type.
458
+ #
459
+ #
460
+ #
461
+ # [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/capacity-reservations-using.html#create-cr-group
462
+ # @return [String]
463
+ #
464
+ # @!attribute [rw] parameters
465
+ # A collection of parameters for this group configuration item.
466
+ # @return [Array<Types::GroupConfigurationParameter>]
467
+ #
468
+ # @see http://docs.aws.amazon.com/goto/WebAPI/resource-groups-2017-11-27/GroupConfigurationItem AWS API Documentation
469
+ #
470
+ class GroupConfigurationItem < Struct.new(
471
+ :type,
472
+ :parameters)
473
+ SENSITIVE = []
474
+ include Aws::Structure
475
+ end
476
+
477
+ # A parameter for a group configuration item.
478
+ #
479
+ # @note When making an API call, you may pass GroupConfigurationParameter
480
+ # data as a hash:
481
+ #
482
+ # {
483
+ # name: "GroupConfigurationParameterName", # required
484
+ # values: ["GroupConfigurationParameterValue"],
485
+ # }
486
+ #
487
+ # @!attribute [rw] name
488
+ # The name of the group configuration parameter.
489
+ #
490
+ # You can specify the following string values:
491
+ #
492
+ # * For configuration item type `AWS::ResourceGroups::Generic`\:
493
+ #
494
+ # * `allowed-resource-types`
495
+ #
496
+ # Specifies the types of resources that you can add to this group
497
+ # by using the GroupResources operation.
498
+ #
499
+ # * For configuration item type `AWS::EC2::CapacityReservationPool`\:
500
+ #
501
+ # * None - This configuration item type doesn't support any
502
+ # parameters.
503
+ #
504
+ # ^
505
+ #
506
+ # For more information about EC2 capacity reservation groups, see
507
+ # [Working with capacity reservation groups][1] in the *EC2 Users
508
+ # Guide*.
509
+ #
510
+ #
511
+ #
512
+ # [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/capacity-reservations-using.html#create-cr-group
513
+ # @return [String]
514
+ #
515
+ # @!attribute [rw] values
516
+ # The values of for this parameter.
517
+ #
518
+ # You can specify the following string value:
519
+ #
520
+ # * For item type `allowed-resource-types`\: the only supported
521
+ # parameter value is `AWS::EC2::CapacityReservation`.
522
+ #
523
+ # ^
524
+ # @return [Array<String>]
525
+ #
526
+ # @see http://docs.aws.amazon.com/goto/WebAPI/resource-groups-2017-11-27/GroupConfigurationParameter AWS API Documentation
527
+ #
528
+ class GroupConfigurationParameter < Struct.new(
529
+ :name,
530
+ :values)
531
+ SENSITIVE = []
532
+ include Aws::Structure
533
+ end
534
+
535
+ # A filter collection that you can use to restrict the results from a
536
+ # `List` operation to only those you want to include.
271
537
  #
272
538
  # @note When making an API call, you may pass GroupFilter
273
539
  # data as a hash:
274
540
  #
275
541
  # {
276
- # name: "resource-type", # required, accepts resource-type
542
+ # name: "resource-type", # required, accepts resource-type, configuration-type
277
543
  # values: ["GroupFilterValue"], # required
278
544
  # }
279
545
  #
@@ -295,14 +561,14 @@ module Aws::ResourceGroups
295
561
  include Aws::Structure
296
562
  end
297
563
 
298
- # The ARN and group name of a group.
564
+ # The unique identifiers for a resource group.
299
565
  #
300
566
  # @!attribute [rw] group_name
301
- # The name of a resource group.
567
+ # The name of the resource group.
302
568
  # @return [String]
303
569
  #
304
570
  # @!attribute [rw] group_arn
305
- # The ARN of a resource group.
571
+ # The ARN of the resource group.
306
572
  # @return [String]
307
573
  #
308
574
  # @see http://docs.aws.amazon.com/goto/WebAPI/resource-groups-2017-11-27/GroupIdentifier AWS API Documentation
@@ -314,16 +580,16 @@ module Aws::ResourceGroups
314
580
  include Aws::Structure
315
581
  end
316
582
 
317
- # The underlying resource query of a resource group. Resources that
318
- # match query results are part of the group.
583
+ # A mapping of a query attached to a resource group that determines the
584
+ # AWS resources that are members of the group.
319
585
  #
320
586
  # @!attribute [rw] group_name
321
- # The name of a resource group that is associated with a specific
587
+ # The name of the resource group that is associated with the specified
322
588
  # resource query.
323
589
  # @return [String]
324
590
  #
325
591
  # @!attribute [rw] resource_query
326
- # The resource query which determines which AWS resources are members
592
+ # The resource query that determines which AWS resources are members
327
593
  # of the associated resource group.
328
594
  # @return [Types::ResourceQuery]
329
595
  #
@@ -336,7 +602,52 @@ module Aws::ResourceGroups
336
602
  include Aws::Structure
337
603
  end
338
604
 
339
- # An internal error occurred while processing the request.
605
+ # @note When making an API call, you may pass GroupResourcesInput
606
+ # data as a hash:
607
+ #
608
+ # {
609
+ # group: "GroupString", # required
610
+ # resource_arns: ["ResourceArn"], # required
611
+ # }
612
+ #
613
+ # @!attribute [rw] group
614
+ # The name or the ARN of the resource group to add resources to.
615
+ # @return [String]
616
+ #
617
+ # @!attribute [rw] resource_arns
618
+ # The list of ARNs for resources to be added to the group.
619
+ # @return [Array<String>]
620
+ #
621
+ # @see http://docs.aws.amazon.com/goto/WebAPI/resource-groups-2017-11-27/GroupResourcesInput AWS API Documentation
622
+ #
623
+ class GroupResourcesInput < Struct.new(
624
+ :group,
625
+ :resource_arns)
626
+ SENSITIVE = []
627
+ include Aws::Structure
628
+ end
629
+
630
+ # @!attribute [rw] succeeded
631
+ # The ARNs of the resources that were successfully added to the group
632
+ # by this operation.
633
+ # @return [Array<String>]
634
+ #
635
+ # @!attribute [rw] failed
636
+ # The ARNs of the resources that failed to be added to the group by
637
+ # this operation.
638
+ # @return [Array<Types::FailedResource>]
639
+ #
640
+ # @see http://docs.aws.amazon.com/goto/WebAPI/resource-groups-2017-11-27/GroupResourcesOutput AWS API Documentation
641
+ #
642
+ class GroupResourcesOutput < Struct.new(
643
+ :succeeded,
644
+ :failed)
645
+ SENSITIVE = []
646
+ include Aws::Structure
647
+ end
648
+
649
+ # An internal error occurred while processing the request. Try again
650
+ # later.
340
651
  #
341
652
  # @!attribute [rw] message
342
653
  # @return [String]
@@ -353,7 +664,8 @@ module Aws::ResourceGroups
353
664
  # data as a hash:
354
665
  #
355
666
  # {
356
- # group_name: "GroupName", # required
667
+ # group_name: "GroupName",
668
+ # group: "GroupString",
357
669
  # filters: [
358
670
  # {
359
671
  # name: "resource-type", # required, accepts resource-type
@@ -365,37 +677,71 @@ module Aws::ResourceGroups
365
677
  # }
366
678
  #
367
679
  # @!attribute [rw] group_name
368
- # The name of the resource group.
680
+ # Don't use this parameter. Use `Group` instead.
681
+ # @return [String]
682
+ #
683
+ # @!attribute [rw] group
684
+ # The name or the ARN of the resource group
369
685
  # @return [String]
370
686
  #
371
687
  # @!attribute [rw] filters
372
688
  # Filters, formatted as ResourceFilter objects, that you want to apply
373
- # to a ListGroupResources operation.
689
+ # to a `ListGroupResources` operation. Filters the results to include
690
+ # only those of the specified resource types.
374
691
  #
375
692
  # * `resource-type` - Filter resources by their type. Specify up to
376
- # five resource types in the format AWS::ServiceCode::ResourceType.
377
- # For example, AWS::EC2::Instance, or AWS::S3::Bucket.
693
+ # five resource types in the format
694
+ # `AWS::ServiceCode::ResourceType`. For example,
695
+ # `AWS::EC2::Instance`, or `AWS::S3::Bucket`.
378
696
  #
379
697
  # ^
698
+ #
699
+ # When you specify a `resource-type` filter for `ListGroupResources`,
700
+ # AWS Resource Groups validates your filter resource types against the
701
+ # types that are defined in the query associated with the group. For
702
+ # example, if a group contains only S3 buckets because its query
703
+ # specifies only that resource type, but your `resource-type` filter
704
+ # includes EC2 instances, AWS Resource Groups does not filter for EC2
705
+ # instances. In this case, a `ListGroupResources` request returns a
706
+ # `BadRequestException` error with a message similar to the following:
707
+ #
708
+ # `The resource types specified as filters in the request are not
709
+ # valid.`
710
+ #
711
+ # The error includes a list of resource types that failed the
712
+ # validation because they are not part of the query associated with
713
+ # the group. This validation doesn't occur when the group query
714
+ # specifies `AWS::AllSupported`, because a group based on such a query
715
+ # can contain any of the allowed resource types for the query type
716
+ # (tag-based or AWS CloudFormation stack-based queries).
380
717
  # @return [Array<Types::ResourceFilter>]
381
718
  #
382
719
  # @!attribute [rw] max_results
383
- # The maximum number of group member ARNs that are returned in a
384
- # single call by ListGroupResources, in paginated output. By default,
385
- # this number is 50.
720
+ # The total number of results that you want included on each page of
721
+ # the response. If you do not include this parameter, it defaults to a
722
+ # value that is specific to the operation. If additional items exist
723
+ # beyond the maximum you specify, the `NextToken` response element is
724
+ # present and has a value (is not null). Include that value as the
725
+ # `NextToken` request parameter in the next call to the operation to
726
+ # get the next part of the results. Note that the service might return
727
+ # fewer results than the maximum even when there are more results
728
+ # available. You should check `NextToken` after every operation to
729
+ # ensure that you receive all of the results.
386
730
  # @return [Integer]
387
731
  #
388
732
  # @!attribute [rw] next_token
389
- # The NextToken value that is returned in a paginated
390
- # ListGroupResources request. To get the next page of results, run the
391
- # call again, add the NextToken parameter, and specify the NextToken
392
- # value.
733
+ # The parameter for receiving additional results if you receive a
734
+ # `NextToken` response in a previous request. A `NextToken` response
735
+ # indicates that more output is available. Set this parameter to the
736
+ # value provided by a previous call's `NextToken` response to
737
+ # indicate where the output should continue from.
393
738
  # @return [String]
394
739
  #
395
740
  # @see http://docs.aws.amazon.com/goto/WebAPI/resource-groups-2017-11-27/ListGroupResourcesInput AWS API Documentation
396
741
  #
397
742
  class ListGroupResourcesInput < Struct.new(
398
743
  :group_name,
744
+ :group,
399
745
  :filters,
400
746
  :max_results,
401
747
  :next_token)
@@ -409,8 +755,11 @@ module Aws::ResourceGroups
409
755
  # @return [Array<Types::ResourceIdentifier>]
410
756
  #
411
757
  # @!attribute [rw] next_token
412
- # The NextToken value to include in a subsequent `ListGroupResources`
413
- # request, to get more results.
758
+ # If present, indicates that more output is available than is included
759
+ # in the current response. Use this value in the `NextToken` request
760
+ # parameter in a subsequent call to the operation to get the next part
761
+ # of the output. You should repeat this until the `NextToken` response
762
+ # element comes back as `null`.
414
763
  # @return [String]
415
764
  #
416
765
  # @!attribute [rw] query_errors
@@ -436,7 +785,7 @@ module Aws::ResourceGroups
436
785
  # {
437
786
  # filters: [
438
787
  # {
439
- # name: "resource-type", # required, accepts resource-type
788
+ # name: "resource-type", # required, accepts resource-type, configuration-type
440
789
  # values: ["GroupFilterValue"], # required
441
790
  # },
442
791
  # ],
@@ -446,24 +795,41 @@ module Aws::ResourceGroups
446
795
  #
447
796
  # @!attribute [rw] filters
448
797
  # Filters, formatted as GroupFilter objects, that you want to apply to
449
- # a ListGroups operation.
798
+ # a `ListGroups` operation.
450
799
  #
451
- # * `resource-type` - Filter groups by resource type. Specify up to
452
- # five resource types in the format AWS::ServiceCode::ResourceType.
453
- # For example, AWS::EC2::Instance, or AWS::S3::Bucket.
800
+ # * `resource-type` - Filter the results to include only those of the
801
+ # specified resource types. Specify up to five resource types in the
802
+ # format `AWS::ServiceCode::ResourceType `. For example,
803
+ # `AWS::EC2::Instance`, or `AWS::S3::Bucket`.
454
804
  #
455
- # ^
805
+ # * `configuration-type` - Filter the results to include only those
806
+ # groups that have the specified configuration types attached. The
807
+ # current supported values are:
808
+ #
809
+ # * AWS:EC2::CapacityReservationPool
810
+ #
811
+ # ^
456
812
  # @return [Array<Types::GroupFilter>]
457
813
  #
458
814
  # @!attribute [rw] max_results
459
- # The maximum number of resource group results that are returned by
460
- # ListGroups in paginated output. By default, this number is 50.
815
+ # The total number of results that you want included on each page of
816
+ # the response. If you do not include this parameter, it defaults to a
817
+ # value that is specific to the operation. If additional items exist
818
+ # beyond the maximum you specify, the `NextToken` response element is
819
+ # present and has a value (is not null). Include that value as the
820
+ # `NextToken` request parameter in the next call to the operation to
821
+ # get the next part of the results. Note that the service might return
822
+ # fewer results than the maximum even when there are more results
823
+ # available. You should check `NextToken` after every operation to
824
+ # ensure that you receive all of the results.
461
825
  # @return [Integer]
462
826
  #
463
827
  # @!attribute [rw] next_token
464
- # The NextToken value that is returned in a paginated `ListGroups`
465
- # request. To get the next page of results, run the call again, add
466
- # the NextToken parameter, and specify the NextToken value.
828
+ # The parameter for receiving additional results if you receive a
829
+ # `NextToken` response in a previous request. A `NextToken` response
830
+ # indicates that more output is available. Set this parameter to the
831
+ # value provided by a previous call's `NextToken` response to
832
+ # indicate where the output should continue from.
467
833
  # @return [String]
468
834
  #
469
835
  # @see http://docs.aws.amazon.com/goto/WebAPI/resource-groups-2017-11-27/ListGroupsInput AWS API Documentation
@@ -478,16 +844,20 @@ module Aws::ResourceGroups
478
844
 
479
845
  # @!attribute [rw] group_identifiers
480
846
  # A list of GroupIdentifier objects. Each identifier is an object that
481
- # contains both the GroupName and the GroupArn.
847
+ # contains both the `Name` and the `GroupArn`.
482
848
  # @return [Array<Types::GroupIdentifier>]
483
849
  #
484
850
  # @!attribute [rw] groups
485
- # A list of resource groups.
851
+ # This output element is deprecated and shouldn't be used. Refer to
852
+ # `GroupIdentifiers` instead.
486
853
  # @return [Array<Types::Group>]
487
854
  #
488
855
  # @!attribute [rw] next_token
489
- # The NextToken value to include in a subsequent `ListGroups` request,
490
- # to get more results.
856
+ # If present, indicates that more output is available than is included
857
+ # in the current response. Use this value in the `NextToken` request
858
+ # parameter in a subsequent call to the operation to get the next part
859
+ # of the output. You should repeat this until the `NextToken` response
860
+ # element comes back as `null`.
491
861
  # @return [String]
492
862
  #
493
863
  # @see http://docs.aws.amazon.com/goto/WebAPI/resource-groups-2017-11-27/ListGroupsOutput AWS API Documentation
@@ -500,7 +870,7 @@ module Aws::ResourceGroups
500
870
  include Aws::Structure
501
871
  end
502
872
 
503
- # The request uses an HTTP method which is not allowed for the specified
873
+ # The request uses an HTTP method that isn't allowed for the specified
504
874
  # resource.
505
875
  #
506
876
  # @!attribute [rw] message
@@ -514,7 +884,7 @@ module Aws::ResourceGroups
514
884
  include Aws::Structure
515
885
  end
516
886
 
517
- # One or more resources specified in the request do not exist.
887
+ # One or more of the specified resources don't exist.
518
888
  #
519
889
  # @!attribute [rw] message
520
890
  # @return [String]
@@ -617,46 +987,46 @@ module Aws::ResourceGroups
617
987
  # }
618
988
  #
619
989
  # @!attribute [rw] type
620
- # The type of the query. The valid values in this release are
621
- # `TAG_FILTERS_1_0` and `CLOUDFORMATION_STACK_1_0`.
990
+ # The type of the query. The valid values in this release are the
991
+ # following:
622
992
  #
623
- # <i> <code>TAG_FILTERS_1_0:</code> </i> A JSON syntax that lets you
624
- # specify a collection of simple tag filters for resource types and
625
- # tags, as supported by the AWS Tagging API [GetResources][1]
626
- # operation. If you specify more than one tag key, only resources that
627
- # match all tag keys, and at least one value of each specified tag
628
- # key, are returned in your query. If you specify more than one value
629
- # for a tag key, a resource matches the filter if it has a tag key
630
- # value that matches *any* of the specified values.
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.
631
1001
  #
632
- # For example, consider the following sample query for resources that
633
- # have two tags, `Stage` and `Version`, with two values each.
634
- # (`[\{"Key":"Stage","Values":["Test","Deploy"]\},\{"Key":"Version","Values":["1","2"]\}]`)
635
- # The results of this query might include the following.
1002
+ # 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.
636
1006
  #
637
- # * An EC2 instance that has the following two tags:
638
- # `\{"Key":"Stage","Value":"Deploy"\}`, and
639
- # `\{"Key":"Version","Value":"2"\}`
1007
+ # * An EC2 instance that has the following two tags:
1008
+ # `\{"Key":"Stage","Value":"Deploy"\}`, and
1009
+ # `\{"Key":"Version","Value":"2"\}`
640
1010
  #
641
- # * An S3 bucket that has the following two tags:
642
- # \\\{"Key":"Stage","Value":"Test"\\}, and
643
- # \\\{"Key":"Version","Value":"1"\\}
1011
+ # * An S3 bucket that has the following two tags:
1012
+ # `\{"Key":"Stage","Value":"Test"\}`, and
1013
+ # `\{"Key":"Version","Value":"1"\}`
644
1014
  #
645
- # The query would not return the following results, however. The
646
- # following EC2 instance does not have all tag keys specified in the
647
- # filter, so it is rejected. The RDS database has all of the tag keys,
648
- # but no values that match at least one of the specified tag key
649
- # values in the filter.
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.
650
1020
  #
651
- # * An EC2 instance that has only the following tag:
652
- # `\{"Key":"Stage","Value":"Deploy"\}`.
1021
+ # * An EC2 instance that has only the following tag:
1022
+ # `\{"Key":"Stage","Value":"Deploy"\}`.
653
1023
  #
654
- # * An RDS database that has the following two tags:
655
- # `\{"Key":"Stage","Value":"Archived"\}`, and
656
- # `\{"Key":"Version","Value":"4"\}`
1024
+ # * An RDS database that has the following two tags:
1025
+ # `\{"Key":"Stage","Value":"Archived"\}`, and
1026
+ # `\{"Key":"Version","Value":"4"\}`
657
1027
  #
658
- # <i> <code>CLOUDFORMATION_STACK_1_0:</code> </i> A JSON syntax that
659
- # lets you specify a CloudFormation stack ARN.
1028
+ # * <i> <code>CLOUDFORMATION_STACK_1_0:</code> </i> A JSON syntax that
1029
+ # lets you specify a CloudFormation stack ARN.
660
1030
  #
661
1031
  #
662
1032
  #
@@ -690,20 +1060,28 @@ module Aws::ResourceGroups
690
1060
  #
691
1061
  # @!attribute [rw] resource_query
692
1062
  # The search query, using the same formats that are supported for
693
- # resource group definition.
1063
+ # resource group definition. For more information, see CreateGroup.
694
1064
  # @return [Types::ResourceQuery]
695
1065
  #
696
1066
  # @!attribute [rw] max_results
697
- # The maximum number of group member ARNs returned by
698
- # `SearchResources` in paginated output. By default, this number is
699
- # 50.
1067
+ # The total number of results that you want included on each page of
1068
+ # the response. If you do not include this parameter, it defaults to a
1069
+ # value that is specific to the operation. If additional items exist
1070
+ # beyond the maximum you specify, the `NextToken` response element is
1071
+ # present and has a value (is not null). Include that value as the
1072
+ # `NextToken` request parameter in the next call to the operation to
1073
+ # get the next part of the results. Note that the service might return
1074
+ # fewer results than the maximum even when there are more results
1075
+ # available. You should check `NextToken` after every operation to
1076
+ # ensure that you receive all of the results.
700
1077
  # @return [Integer]
701
1078
  #
702
1079
  # @!attribute [rw] next_token
703
- # The NextToken value that is returned in a paginated
704
- # `SearchResources` request. To get the next page of results, run the
705
- # call again, add the NextToken parameter, and specify the NextToken
706
- # value.
1080
+ # The parameter for receiving additional results if you receive a
1081
+ # `NextToken` response in a previous request. A `NextToken` response
1082
+ # indicates that more output is available. Set this parameter to the
1083
+ # value provided by a previous call's `NextToken` response to
1084
+ # indicate where the output should continue from.
707
1085
  # @return [String]
708
1086
  #
709
1087
  # @see http://docs.aws.amazon.com/goto/WebAPI/resource-groups-2017-11-27/SearchResourcesInput AWS API Documentation
@@ -722,8 +1100,11 @@ module Aws::ResourceGroups
722
1100
  # @return [Array<Types::ResourceIdentifier>]
723
1101
  #
724
1102
  # @!attribute [rw] next_token
725
- # The NextToken value to include in a subsequent `SearchResources`
726
- # request, to get more results.
1103
+ # If present, indicates that more output is available than is included
1104
+ # in the current response. Use this value in the `NextToken` request
1105
+ # parameter in a subsequent call to the operation to get the next part
1106
+ # of the output. You should repeat this until the `NextToken` response
1107
+ # element comes back as `null`.
727
1108
  # @return [String]
728
1109
  #
729
1110
  # @!attribute [rw] query_errors
@@ -754,14 +1135,12 @@ module Aws::ResourceGroups
754
1135
  # }
755
1136
  #
756
1137
  # @!attribute [rw] arn
757
- # The ARN of the resource to which to add tags.
1138
+ # The ARN of the resource group to which to add tags.
758
1139
  # @return [String]
759
1140
  #
760
1141
  # @!attribute [rw] tags
761
- # The tags to add to the specified resource. A tag is a
762
- # string-to-string map of key-value pairs. Tag keys can have a maximum
763
- # character length of 128 characters, and tag values can have a
764
- # maximum length of 256 characters.
1142
+ # The tags to add to the specified resource group. A tag is a
1143
+ # string-to-string map of key-value pairs.
765
1144
  # @return [Hash<String,String>]
766
1145
  #
767
1146
  # @see http://docs.aws.amazon.com/goto/WebAPI/resource-groups-2017-11-27/TagInput AWS API Documentation
@@ -778,7 +1157,7 @@ module Aws::ResourceGroups
778
1157
  # @return [String]
779
1158
  #
780
1159
  # @!attribute [rw] tags
781
- # The tags that have been added to the specified resource.
1160
+ # The tags that have been added to the specified resource group.
782
1161
  # @return [Hash<String,String>]
783
1162
  #
784
1163
  # @see http://docs.aws.amazon.com/goto/WebAPI/resource-groups-2017-11-27/TagOutput AWS API Documentation
@@ -790,7 +1169,8 @@ module Aws::ResourceGroups
790
1169
  include Aws::Structure
791
1170
  end
792
1171
 
793
- # The caller has exceeded throttling limits.
1172
+ # You've exceeded throttling limits by making too many requests in a
1173
+ # period of time.
794
1174
  #
795
1175
  # @!attribute [rw] message
796
1176
  # @return [String]
@@ -803,8 +1183,8 @@ module Aws::ResourceGroups
803
1183
  include Aws::Structure
804
1184
  end
805
1185
 
806
- # The request has not been applied because it lacks valid authentication
807
- # credentials for the target resource.
1186
+ # The request was rejected because it doesn't have valid credentials
1187
+ # for the target resource.
808
1188
  #
809
1189
  # @!attribute [rw] message
810
1190
  # @return [String]
@@ -817,6 +1197,50 @@ module Aws::ResourceGroups
817
1197
  include Aws::Structure
818
1198
  end
819
1199
 
1200
+ # @note When making an API call, you may pass UngroupResourcesInput
1201
+ # data as a hash:
1202
+ #
1203
+ # {
1204
+ # group: "GroupString", # required
1205
+ # resource_arns: ["ResourceArn"], # required
1206
+ # }
1207
+ #
1208
+ # @!attribute [rw] group
1209
+ # The name or the ARN of the resource group from which to remove the
1210
+ # resources.
1211
+ # @return [String]
1212
+ #
1213
+ # @!attribute [rw] resource_arns
1214
+ # The ARNs of the resources to be removed from the group.
1215
+ # @return [Array<String>]
1216
+ #
1217
+ # @see http://docs.aws.amazon.com/goto/WebAPI/resource-groups-2017-11-27/UngroupResourcesInput AWS API Documentation
1218
+ #
1219
+ class UngroupResourcesInput < Struct.new(
1220
+ :group,
1221
+ :resource_arns)
1222
+ SENSITIVE = []
1223
+ include Aws::Structure
1224
+ end
1225
+
1226
+ # @!attribute [rw] succeeded
1227
+ # The ARNs of the resources that were successfully removed from the
1228
+ # group.
1229
+ # @return [Array<String>]
1230
+ #
1231
+ # @!attribute [rw] failed
1232
+ # The resources that failed to be removed from the group.
1233
+ # @return [Array<Types::FailedResource>]
1234
+ #
1235
+ # @see http://docs.aws.amazon.com/goto/WebAPI/resource-groups-2017-11-27/UngroupResourcesOutput AWS API Documentation
1236
+ #
1237
+ class UngroupResourcesOutput < Struct.new(
1238
+ :succeeded,
1239
+ :failed)
1240
+ SENSITIVE = []
1241
+ include Aws::Structure
1242
+ end
1243
+
820
1244
  # @note When making an API call, you may pass UntagInput
821
1245
  # data as a hash:
822
1246
  #
@@ -826,7 +1250,9 @@ module Aws::ResourceGroups
826
1250
  # }
827
1251
  #
828
1252
  # @!attribute [rw] arn
829
- # The ARN of the resource from which to remove tags.
1253
+ # The ARN of the resource group from which to remove tags. The command
1254
+ # removed both the specified keys and any values associated with those
1255
+ # keys.
830
1256
  # @return [String]
831
1257
  #
832
1258
  # @!attribute [rw] keys
@@ -843,11 +1269,11 @@ module Aws::ResourceGroups
843
1269
  end
844
1270
 
845
1271
  # @!attribute [rw] arn
846
- # The ARN of the resource from which tags have been removed.
1272
+ # The ARN of the resource group from which tags have been removed.
847
1273
  # @return [String]
848
1274
  #
849
1275
  # @!attribute [rw] keys
850
- # The keys of tags that have been removed.
1276
+ # The keys of the tags that were removed.
851
1277
  # @return [Array<String>]
852
1278
  #
853
1279
  # @see http://docs.aws.amazon.com/goto/WebAPI/resource-groups-2017-11-27/UntagOutput AWS API Documentation
@@ -863,33 +1289,37 @@ module Aws::ResourceGroups
863
1289
  # data as a hash:
864
1290
  #
865
1291
  # {
866
- # group_name: "GroupName", # required
867
- # description: "GroupDescription",
1292
+ # group_name: "GroupName",
1293
+ # group: "GroupString",
1294
+ # description: "Description",
868
1295
  # }
869
1296
  #
870
1297
  # @!attribute [rw] group_name
871
- # The name of the resource group for which you want to update its
872
- # description.
1298
+ # Don't use this parameter. Use `Group` instead.
1299
+ # @return [String]
1300
+ #
1301
+ # @!attribute [rw] group
1302
+ # The name or the ARN of the resource group to modify.
873
1303
  # @return [String]
874
1304
  #
875
1305
  # @!attribute [rw] description
876
- # The description of the resource group. Descriptions can have a
877
- # maximum of 511 characters, including letters, numbers, hyphens,
878
- # underscores, punctuation, and spaces.
1306
+ # The new description that you want to update the resource group with.
1307
+ # Descriptions can contain letters, numbers, hyphens, underscores,
1308
+ # periods, and spaces.
879
1309
  # @return [String]
880
1310
  #
881
1311
  # @see http://docs.aws.amazon.com/goto/WebAPI/resource-groups-2017-11-27/UpdateGroupInput AWS API Documentation
882
1312
  #
883
1313
  class UpdateGroupInput < Struct.new(
884
1314
  :group_name,
1315
+ :group,
885
1316
  :description)
886
1317
  SENSITIVE = []
887
1318
  include Aws::Structure
888
1319
  end
889
1320
 
890
1321
  # @!attribute [rw] group
891
- # The full description of the resource group after it has been
892
- # updated.
1322
+ # The update description of the resource group.
893
1323
  # @return [Types::Group]
894
1324
  #
895
1325
  # @see http://docs.aws.amazon.com/goto/WebAPI/resource-groups-2017-11-27/UpdateGroupOutput AWS API Documentation
@@ -904,7 +1334,8 @@ module Aws::ResourceGroups
904
1334
  # data as a hash:
905
1335
  #
906
1336
  # {
907
- # group_name: "GroupName", # required
1337
+ # group_name: "GroupName",
1338
+ # group: "GroupString",
908
1339
  # resource_query: { # required
909
1340
  # type: "TAG_FILTERS_1_0", # required, accepts TAG_FILTERS_1_0, CLOUDFORMATION_STACK_1_0
910
1341
  # query: "Query", # required
@@ -912,26 +1343,31 @@ module Aws::ResourceGroups
912
1343
  # }
913
1344
  #
914
1345
  # @!attribute [rw] group_name
915
- # The name of the resource group for which you want to edit the query.
1346
+ # Don't use this parameter. Use `Group` instead.
1347
+ # @return [String]
1348
+ #
1349
+ # @!attribute [rw] group
1350
+ # The name or the ARN of the resource group to query.
916
1351
  # @return [String]
917
1352
  #
918
1353
  # @!attribute [rw] resource_query
919
- # The resource query that determines which AWS resources are members
920
- # of the resource group.
1354
+ # The resource query to determine which AWS resources are members of
1355
+ # this resource group.
921
1356
  # @return [Types::ResourceQuery]
922
1357
  #
923
1358
  # @see http://docs.aws.amazon.com/goto/WebAPI/resource-groups-2017-11-27/UpdateGroupQueryInput AWS API Documentation
924
1359
  #
925
1360
  class UpdateGroupQueryInput < Struct.new(
926
1361
  :group_name,
1362
+ :group,
927
1363
  :resource_query)
928
1364
  SENSITIVE = []
929
1365
  include Aws::Structure
930
1366
  end
931
1367
 
932
1368
  # @!attribute [rw] group_query
933
- # The resource query associated with the resource group after the
934
- # update.
1369
+ # The updated resource query associated with the resource group after
1370
+ # the update.
935
1371
  # @return [Types::GroupQuery]
936
1372
  #
937
1373
  # @see http://docs.aws.amazon.com/goto/WebAPI/resource-groups-2017-11-27/UpdateGroupQueryOutput AWS API Documentation