aws-sdk-resourcegroups 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,385 @@
1
+ # WARNING ABOUT GENERATED CODE
2
+ #
3
+ # This file is generated. See the contributing guide for more information:
4
+ # https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
5
+ #
6
+ # WARNING ABOUT GENERATED CODE
7
+
8
+ module Aws::ResourceGroups
9
+ # @api private
10
+ module ClientApi
11
+
12
+ include Seahorse::Model
13
+
14
+ BadRequestException = Shapes::StructureShape.new(name: 'BadRequestException')
15
+ CreateGroupInput = Shapes::StructureShape.new(name: 'CreateGroupInput')
16
+ CreateGroupOutput = Shapes::StructureShape.new(name: 'CreateGroupOutput')
17
+ DeleteGroupInput = Shapes::StructureShape.new(name: 'DeleteGroupInput')
18
+ DeleteGroupOutput = Shapes::StructureShape.new(name: 'DeleteGroupOutput')
19
+ ErrorMessage = Shapes::StringShape.new(name: 'ErrorMessage')
20
+ ForbiddenException = Shapes::StructureShape.new(name: 'ForbiddenException')
21
+ GetGroupInput = Shapes::StructureShape.new(name: 'GetGroupInput')
22
+ GetGroupOutput = Shapes::StructureShape.new(name: 'GetGroupOutput')
23
+ GetGroupQueryInput = Shapes::StructureShape.new(name: 'GetGroupQueryInput')
24
+ GetGroupQueryOutput = Shapes::StructureShape.new(name: 'GetGroupQueryOutput')
25
+ GetTagsInput = Shapes::StructureShape.new(name: 'GetTagsInput')
26
+ GetTagsOutput = Shapes::StructureShape.new(name: 'GetTagsOutput')
27
+ Group = Shapes::StructureShape.new(name: 'Group')
28
+ GroupArn = Shapes::StringShape.new(name: 'GroupArn')
29
+ GroupDescription = Shapes::StringShape.new(name: 'GroupDescription')
30
+ GroupList = Shapes::ListShape.new(name: 'GroupList')
31
+ GroupName = Shapes::StringShape.new(name: 'GroupName')
32
+ GroupQuery = Shapes::StructureShape.new(name: 'GroupQuery')
33
+ InternalServerErrorException = Shapes::StructureShape.new(name: 'InternalServerErrorException')
34
+ ListGroupResourcesInput = Shapes::StructureShape.new(name: 'ListGroupResourcesInput')
35
+ ListGroupResourcesOutput = Shapes::StructureShape.new(name: 'ListGroupResourcesOutput')
36
+ ListGroupsInput = Shapes::StructureShape.new(name: 'ListGroupsInput')
37
+ ListGroupsOutput = Shapes::StructureShape.new(name: 'ListGroupsOutput')
38
+ MaxResults = Shapes::IntegerShape.new(name: 'MaxResults')
39
+ MethodNotAllowedException = Shapes::StructureShape.new(name: 'MethodNotAllowedException')
40
+ NextToken = Shapes::StringShape.new(name: 'NextToken')
41
+ NotFoundException = Shapes::StructureShape.new(name: 'NotFoundException')
42
+ Query = Shapes::StringShape.new(name: 'Query')
43
+ QueryType = Shapes::StringShape.new(name: 'QueryType')
44
+ ResourceArn = Shapes::StringShape.new(name: 'ResourceArn')
45
+ ResourceIdentifier = Shapes::StructureShape.new(name: 'ResourceIdentifier')
46
+ ResourceIdentifierList = Shapes::ListShape.new(name: 'ResourceIdentifierList')
47
+ ResourceQuery = Shapes::StructureShape.new(name: 'ResourceQuery')
48
+ ResourceType = Shapes::StringShape.new(name: 'ResourceType')
49
+ SearchResourcesInput = Shapes::StructureShape.new(name: 'SearchResourcesInput')
50
+ SearchResourcesOutput = Shapes::StructureShape.new(name: 'SearchResourcesOutput')
51
+ TagInput = Shapes::StructureShape.new(name: 'TagInput')
52
+ TagKey = Shapes::StringShape.new(name: 'TagKey')
53
+ TagKeyList = Shapes::ListShape.new(name: 'TagKeyList')
54
+ TagOutput = Shapes::StructureShape.new(name: 'TagOutput')
55
+ TagValue = Shapes::StringShape.new(name: 'TagValue')
56
+ Tags = Shapes::MapShape.new(name: 'Tags')
57
+ TooManyRequestsException = Shapes::StructureShape.new(name: 'TooManyRequestsException')
58
+ UnauthorizedException = Shapes::StructureShape.new(name: 'UnauthorizedException')
59
+ UntagInput = Shapes::StructureShape.new(name: 'UntagInput')
60
+ UntagOutput = Shapes::StructureShape.new(name: 'UntagOutput')
61
+ UpdateGroupInput = Shapes::StructureShape.new(name: 'UpdateGroupInput')
62
+ UpdateGroupOutput = Shapes::StructureShape.new(name: 'UpdateGroupOutput')
63
+ UpdateGroupQueryInput = Shapes::StructureShape.new(name: 'UpdateGroupQueryInput')
64
+ UpdateGroupQueryOutput = Shapes::StructureShape.new(name: 'UpdateGroupQueryOutput')
65
+
66
+ CreateGroupInput.add_member(:name, Shapes::ShapeRef.new(shape: GroupName, required: true, location_name: "Name"))
67
+ CreateGroupInput.add_member(:description, Shapes::ShapeRef.new(shape: GroupDescription, location_name: "Description"))
68
+ CreateGroupInput.add_member(:resource_query, Shapes::ShapeRef.new(shape: ResourceQuery, required: true, location_name: "ResourceQuery"))
69
+ CreateGroupInput.add_member(:tags, Shapes::ShapeRef.new(shape: Tags, location_name: "Tags"))
70
+ CreateGroupInput.struct_class = Types::CreateGroupInput
71
+
72
+ CreateGroupOutput.add_member(:group, Shapes::ShapeRef.new(shape: Group, location_name: "Group"))
73
+ CreateGroupOutput.add_member(:resource_query, Shapes::ShapeRef.new(shape: ResourceQuery, location_name: "ResourceQuery"))
74
+ CreateGroupOutput.add_member(:tags, Shapes::ShapeRef.new(shape: Tags, location_name: "Tags"))
75
+ CreateGroupOutput.struct_class = Types::CreateGroupOutput
76
+
77
+ DeleteGroupInput.add_member(:group_name, Shapes::ShapeRef.new(shape: GroupName, required: true, location: "uri", location_name: "GroupName"))
78
+ DeleteGroupInput.struct_class = Types::DeleteGroupInput
79
+
80
+ DeleteGroupOutput.add_member(:group, Shapes::ShapeRef.new(shape: Group, location_name: "Group"))
81
+ DeleteGroupOutput.struct_class = Types::DeleteGroupOutput
82
+
83
+ GetGroupInput.add_member(:group_name, Shapes::ShapeRef.new(shape: GroupName, required: true, location: "uri", location_name: "GroupName"))
84
+ GetGroupInput.struct_class = Types::GetGroupInput
85
+
86
+ GetGroupOutput.add_member(:group, Shapes::ShapeRef.new(shape: Group, location_name: "Group"))
87
+ GetGroupOutput.struct_class = Types::GetGroupOutput
88
+
89
+ GetGroupQueryInput.add_member(:group_name, Shapes::ShapeRef.new(shape: GroupName, required: true, location: "uri", location_name: "GroupName"))
90
+ GetGroupQueryInput.struct_class = Types::GetGroupQueryInput
91
+
92
+ GetGroupQueryOutput.add_member(:group_query, Shapes::ShapeRef.new(shape: GroupQuery, location_name: "GroupQuery"))
93
+ GetGroupQueryOutput.struct_class = Types::GetGroupQueryOutput
94
+
95
+ GetTagsInput.add_member(:arn, Shapes::ShapeRef.new(shape: GroupArn, required: true, location: "uri", location_name: "Arn"))
96
+ GetTagsInput.struct_class = Types::GetTagsInput
97
+
98
+ GetTagsOutput.add_member(:arn, Shapes::ShapeRef.new(shape: GroupArn, location_name: "Arn"))
99
+ GetTagsOutput.add_member(:tags, Shapes::ShapeRef.new(shape: Tags, location_name: "Tags"))
100
+ GetTagsOutput.struct_class = Types::GetTagsOutput
101
+
102
+ Group.add_member(:group_arn, Shapes::ShapeRef.new(shape: GroupArn, required: true, location_name: "GroupArn"))
103
+ Group.add_member(:name, Shapes::ShapeRef.new(shape: GroupName, required: true, location_name: "Name"))
104
+ Group.add_member(:description, Shapes::ShapeRef.new(shape: GroupDescription, location_name: "Description"))
105
+ Group.struct_class = Types::Group
106
+
107
+ GroupList.member = Shapes::ShapeRef.new(shape: Group)
108
+
109
+ GroupQuery.add_member(:group_name, Shapes::ShapeRef.new(shape: GroupName, required: true, location_name: "GroupName"))
110
+ GroupQuery.add_member(:resource_query, Shapes::ShapeRef.new(shape: ResourceQuery, required: true, location_name: "ResourceQuery"))
111
+ GroupQuery.struct_class = Types::GroupQuery
112
+
113
+ ListGroupResourcesInput.add_member(:group_name, Shapes::ShapeRef.new(shape: GroupName, required: true, location: "uri", location_name: "GroupName"))
114
+ ListGroupResourcesInput.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location: "querystring", location_name: "maxResults"))
115
+ ListGroupResourcesInput.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location: "querystring", location_name: "nextToken"))
116
+ ListGroupResourcesInput.struct_class = Types::ListGroupResourcesInput
117
+
118
+ ListGroupResourcesOutput.add_member(:resource_identifiers, Shapes::ShapeRef.new(shape: ResourceIdentifierList, location_name: "ResourceIdentifiers"))
119
+ ListGroupResourcesOutput.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
120
+ ListGroupResourcesOutput.struct_class = Types::ListGroupResourcesOutput
121
+
122
+ ListGroupsInput.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location: "querystring", location_name: "maxResults"))
123
+ ListGroupsInput.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location: "querystring", location_name: "nextToken"))
124
+ ListGroupsInput.struct_class = Types::ListGroupsInput
125
+
126
+ ListGroupsOutput.add_member(:groups, Shapes::ShapeRef.new(shape: GroupList, location_name: "Groups"))
127
+ ListGroupsOutput.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
128
+ ListGroupsOutput.struct_class = Types::ListGroupsOutput
129
+
130
+ ResourceIdentifier.add_member(:resource_arn, Shapes::ShapeRef.new(shape: ResourceArn, location_name: "ResourceArn"))
131
+ ResourceIdentifier.add_member(:resource_type, Shapes::ShapeRef.new(shape: ResourceType, location_name: "ResourceType"))
132
+ ResourceIdentifier.struct_class = Types::ResourceIdentifier
133
+
134
+ ResourceIdentifierList.member = Shapes::ShapeRef.new(shape: ResourceIdentifier)
135
+
136
+ ResourceQuery.add_member(:type, Shapes::ShapeRef.new(shape: QueryType, required: true, location_name: "Type"))
137
+ ResourceQuery.add_member(:query, Shapes::ShapeRef.new(shape: Query, required: true, location_name: "Query"))
138
+ ResourceQuery.struct_class = Types::ResourceQuery
139
+
140
+ SearchResourcesInput.add_member(:resource_query, Shapes::ShapeRef.new(shape: ResourceQuery, required: true, location_name: "ResourceQuery"))
141
+ SearchResourcesInput.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location_name: "MaxResults"))
142
+ SearchResourcesInput.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
143
+ SearchResourcesInput.struct_class = Types::SearchResourcesInput
144
+
145
+ SearchResourcesOutput.add_member(:resource_identifiers, Shapes::ShapeRef.new(shape: ResourceIdentifierList, location_name: "ResourceIdentifiers"))
146
+ SearchResourcesOutput.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
147
+ SearchResourcesOutput.struct_class = Types::SearchResourcesOutput
148
+
149
+ TagInput.add_member(:arn, Shapes::ShapeRef.new(shape: GroupArn, required: true, location: "uri", location_name: "Arn"))
150
+ TagInput.add_member(:tags, Shapes::ShapeRef.new(shape: Tags, required: true, location_name: "Tags"))
151
+ TagInput.struct_class = Types::TagInput
152
+
153
+ TagKeyList.member = Shapes::ShapeRef.new(shape: TagKey)
154
+
155
+ TagOutput.add_member(:arn, Shapes::ShapeRef.new(shape: GroupArn, location_name: "Arn"))
156
+ TagOutput.add_member(:tags, Shapes::ShapeRef.new(shape: Tags, location_name: "Tags"))
157
+ TagOutput.struct_class = Types::TagOutput
158
+
159
+ Tags.key = Shapes::ShapeRef.new(shape: TagKey)
160
+ Tags.value = Shapes::ShapeRef.new(shape: TagValue)
161
+
162
+ UntagInput.add_member(:arn, Shapes::ShapeRef.new(shape: GroupArn, required: true, location: "uri", location_name: "Arn"))
163
+ UntagInput.add_member(:keys, Shapes::ShapeRef.new(shape: TagKeyList, required: true, location_name: "Keys"))
164
+ UntagInput.struct_class = Types::UntagInput
165
+
166
+ UntagOutput.add_member(:arn, Shapes::ShapeRef.new(shape: GroupArn, location_name: "Arn"))
167
+ UntagOutput.add_member(:keys, Shapes::ShapeRef.new(shape: TagKeyList, location_name: "Keys"))
168
+ UntagOutput.struct_class = Types::UntagOutput
169
+
170
+ UpdateGroupInput.add_member(:group_name, Shapes::ShapeRef.new(shape: GroupName, required: true, location: "uri", location_name: "GroupName"))
171
+ UpdateGroupInput.add_member(:description, Shapes::ShapeRef.new(shape: GroupDescription, location_name: "Description"))
172
+ UpdateGroupInput.struct_class = Types::UpdateGroupInput
173
+
174
+ UpdateGroupOutput.add_member(:group, Shapes::ShapeRef.new(shape: Group, location_name: "Group"))
175
+ UpdateGroupOutput.struct_class = Types::UpdateGroupOutput
176
+
177
+ UpdateGroupQueryInput.add_member(:group_name, Shapes::ShapeRef.new(shape: GroupName, required: true, location: "uri", location_name: "GroupName"))
178
+ UpdateGroupQueryInput.add_member(:resource_query, Shapes::ShapeRef.new(shape: ResourceQuery, required: true, location_name: "ResourceQuery"))
179
+ UpdateGroupQueryInput.struct_class = Types::UpdateGroupQueryInput
180
+
181
+ UpdateGroupQueryOutput.add_member(:group_query, Shapes::ShapeRef.new(shape: GroupQuery, location_name: "GroupQuery"))
182
+ UpdateGroupQueryOutput.struct_class = Types::UpdateGroupQueryOutput
183
+
184
+
185
+ # @api private
186
+ API = Seahorse::Model::Api.new.tap do |api|
187
+
188
+ api.version = "2017-11-27"
189
+
190
+ api.metadata = {
191
+ "endpointPrefix" => "resource-groups",
192
+ "protocol" => "rest-json",
193
+ "serviceFullName" => "AWS Resource Groups",
194
+ "signatureVersion" => "v4",
195
+ "signingName" => "resource-groups",
196
+ }
197
+
198
+ api.add_operation(:create_group, Seahorse::Model::Operation.new.tap do |o|
199
+ o.name = "CreateGroup"
200
+ o.http_method = "POST"
201
+ o.http_request_uri = "/groups"
202
+ o.input = Shapes::ShapeRef.new(shape: CreateGroupInput)
203
+ o.output = Shapes::ShapeRef.new(shape: CreateGroupOutput)
204
+ o.errors << Shapes::ShapeRef.new(shape: BadRequestException)
205
+ o.errors << Shapes::ShapeRef.new(shape: ForbiddenException)
206
+ o.errors << Shapes::ShapeRef.new(shape: MethodNotAllowedException)
207
+ o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
208
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerErrorException)
209
+ end)
210
+
211
+ api.add_operation(:delete_group, Seahorse::Model::Operation.new.tap do |o|
212
+ o.name = "DeleteGroup"
213
+ o.http_method = "DELETE"
214
+ o.http_request_uri = "/groups/{GroupName}"
215
+ o.input = Shapes::ShapeRef.new(shape: DeleteGroupInput)
216
+ o.output = Shapes::ShapeRef.new(shape: DeleteGroupOutput)
217
+ o.errors << Shapes::ShapeRef.new(shape: BadRequestException)
218
+ o.errors << Shapes::ShapeRef.new(shape: ForbiddenException)
219
+ o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
220
+ o.errors << Shapes::ShapeRef.new(shape: MethodNotAllowedException)
221
+ o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
222
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerErrorException)
223
+ end)
224
+
225
+ api.add_operation(:get_group, Seahorse::Model::Operation.new.tap do |o|
226
+ o.name = "GetGroup"
227
+ o.http_method = "GET"
228
+ o.http_request_uri = "/groups/{GroupName}"
229
+ o.input = Shapes::ShapeRef.new(shape: GetGroupInput)
230
+ o.output = Shapes::ShapeRef.new(shape: GetGroupOutput)
231
+ o.errors << Shapes::ShapeRef.new(shape: BadRequestException)
232
+ o.errors << Shapes::ShapeRef.new(shape: ForbiddenException)
233
+ o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
234
+ o.errors << Shapes::ShapeRef.new(shape: MethodNotAllowedException)
235
+ o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
236
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerErrorException)
237
+ end)
238
+
239
+ api.add_operation(:get_group_query, Seahorse::Model::Operation.new.tap do |o|
240
+ o.name = "GetGroupQuery"
241
+ o.http_method = "GET"
242
+ o.http_request_uri = "/groups/{GroupName}/query"
243
+ o.input = Shapes::ShapeRef.new(shape: GetGroupQueryInput)
244
+ o.output = Shapes::ShapeRef.new(shape: GetGroupQueryOutput)
245
+ o.errors << Shapes::ShapeRef.new(shape: BadRequestException)
246
+ o.errors << Shapes::ShapeRef.new(shape: ForbiddenException)
247
+ o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
248
+ o.errors << Shapes::ShapeRef.new(shape: MethodNotAllowedException)
249
+ o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
250
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerErrorException)
251
+ end)
252
+
253
+ api.add_operation(:get_tags, Seahorse::Model::Operation.new.tap do |o|
254
+ o.name = "GetTags"
255
+ o.http_method = "GET"
256
+ o.http_request_uri = "/resources/{Arn}/tags"
257
+ o.input = Shapes::ShapeRef.new(shape: GetTagsInput)
258
+ o.output = Shapes::ShapeRef.new(shape: GetTagsOutput)
259
+ o.errors << Shapes::ShapeRef.new(shape: BadRequestException)
260
+ o.errors << Shapes::ShapeRef.new(shape: ForbiddenException)
261
+ o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
262
+ o.errors << Shapes::ShapeRef.new(shape: MethodNotAllowedException)
263
+ o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
264
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerErrorException)
265
+ end)
266
+
267
+ api.add_operation(:list_group_resources, Seahorse::Model::Operation.new.tap do |o|
268
+ o.name = "ListGroupResources"
269
+ o.http_method = "GET"
270
+ o.http_request_uri = "/groups/{GroupName}/resource-identifiers"
271
+ o.input = Shapes::ShapeRef.new(shape: ListGroupResourcesInput)
272
+ o.output = Shapes::ShapeRef.new(shape: ListGroupResourcesOutput)
273
+ o.errors << Shapes::ShapeRef.new(shape: UnauthorizedException)
274
+ o.errors << Shapes::ShapeRef.new(shape: BadRequestException)
275
+ o.errors << Shapes::ShapeRef.new(shape: ForbiddenException)
276
+ o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
277
+ o.errors << Shapes::ShapeRef.new(shape: MethodNotAllowedException)
278
+ o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
279
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerErrorException)
280
+ o[:pager] = Aws::Pager.new(
281
+ limit_key: "max_results",
282
+ tokens: {
283
+ "next_token" => "next_token"
284
+ }
285
+ )
286
+ end)
287
+
288
+ api.add_operation(:list_groups, Seahorse::Model::Operation.new.tap do |o|
289
+ o.name = "ListGroups"
290
+ o.http_method = "GET"
291
+ o.http_request_uri = "/groups"
292
+ o.input = Shapes::ShapeRef.new(shape: ListGroupsInput)
293
+ o.output = Shapes::ShapeRef.new(shape: ListGroupsOutput)
294
+ o.errors << Shapes::ShapeRef.new(shape: BadRequestException)
295
+ o.errors << Shapes::ShapeRef.new(shape: ForbiddenException)
296
+ o.errors << Shapes::ShapeRef.new(shape: MethodNotAllowedException)
297
+ o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
298
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerErrorException)
299
+ o[:pager] = Aws::Pager.new(
300
+ limit_key: "max_results",
301
+ tokens: {
302
+ "next_token" => "next_token"
303
+ }
304
+ )
305
+ end)
306
+
307
+ api.add_operation(:search_resources, Seahorse::Model::Operation.new.tap do |o|
308
+ o.name = "SearchResources"
309
+ o.http_method = "POST"
310
+ o.http_request_uri = "/resources/search"
311
+ o.input = Shapes::ShapeRef.new(shape: SearchResourcesInput)
312
+ o.output = Shapes::ShapeRef.new(shape: SearchResourcesOutput)
313
+ o.errors << Shapes::ShapeRef.new(shape: UnauthorizedException)
314
+ o.errors << Shapes::ShapeRef.new(shape: BadRequestException)
315
+ o.errors << Shapes::ShapeRef.new(shape: ForbiddenException)
316
+ o.errors << Shapes::ShapeRef.new(shape: MethodNotAllowedException)
317
+ o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
318
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerErrorException)
319
+ o[:pager] = Aws::Pager.new(
320
+ limit_key: "max_results",
321
+ tokens: {
322
+ "next_token" => "next_token"
323
+ }
324
+ )
325
+ end)
326
+
327
+ api.add_operation(:tag, Seahorse::Model::Operation.new.tap do |o|
328
+ o.name = "Tag"
329
+ o.http_method = "PUT"
330
+ o.http_request_uri = "/resources/{Arn}/tags"
331
+ o.input = Shapes::ShapeRef.new(shape: TagInput)
332
+ o.output = Shapes::ShapeRef.new(shape: TagOutput)
333
+ o.errors << Shapes::ShapeRef.new(shape: BadRequestException)
334
+ o.errors << Shapes::ShapeRef.new(shape: ForbiddenException)
335
+ o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
336
+ o.errors << Shapes::ShapeRef.new(shape: MethodNotAllowedException)
337
+ o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
338
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerErrorException)
339
+ end)
340
+
341
+ api.add_operation(:untag, Seahorse::Model::Operation.new.tap do |o|
342
+ o.name = "Untag"
343
+ o.http_method = "PATCH"
344
+ o.http_request_uri = "/resources/{Arn}/tags"
345
+ o.input = Shapes::ShapeRef.new(shape: UntagInput)
346
+ o.output = Shapes::ShapeRef.new(shape: UntagOutput)
347
+ o.errors << Shapes::ShapeRef.new(shape: BadRequestException)
348
+ o.errors << Shapes::ShapeRef.new(shape: ForbiddenException)
349
+ o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
350
+ o.errors << Shapes::ShapeRef.new(shape: MethodNotAllowedException)
351
+ o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
352
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerErrorException)
353
+ end)
354
+
355
+ api.add_operation(:update_group, Seahorse::Model::Operation.new.tap do |o|
356
+ o.name = "UpdateGroup"
357
+ o.http_method = "PUT"
358
+ o.http_request_uri = "/groups/{GroupName}"
359
+ o.input = Shapes::ShapeRef.new(shape: UpdateGroupInput)
360
+ o.output = Shapes::ShapeRef.new(shape: UpdateGroupOutput)
361
+ o.errors << Shapes::ShapeRef.new(shape: BadRequestException)
362
+ o.errors << Shapes::ShapeRef.new(shape: ForbiddenException)
363
+ o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
364
+ o.errors << Shapes::ShapeRef.new(shape: MethodNotAllowedException)
365
+ o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
366
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerErrorException)
367
+ end)
368
+
369
+ api.add_operation(:update_group_query, Seahorse::Model::Operation.new.tap do |o|
370
+ o.name = "UpdateGroupQuery"
371
+ o.http_method = "PUT"
372
+ o.http_request_uri = "/groups/{GroupName}/query"
373
+ o.input = Shapes::ShapeRef.new(shape: UpdateGroupQueryInput)
374
+ o.output = Shapes::ShapeRef.new(shape: UpdateGroupQueryOutput)
375
+ o.errors << Shapes::ShapeRef.new(shape: BadRequestException)
376
+ o.errors << Shapes::ShapeRef.new(shape: ForbiddenException)
377
+ o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
378
+ o.errors << Shapes::ShapeRef.new(shape: MethodNotAllowedException)
379
+ o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
380
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerErrorException)
381
+ end)
382
+ end
383
+
384
+ end
385
+ end
@@ -0,0 +1,14 @@
1
+ # WARNING ABOUT GENERATED CODE
2
+ #
3
+ # This file is generated. See the contributing guide for more information:
4
+ # https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
5
+ #
6
+ # WARNING ABOUT GENERATED CODE
7
+
8
+ module Aws::ResourceGroups
9
+ module Errors
10
+
11
+ extend Aws::Errors::DynamicErrors
12
+
13
+ end
14
+ end
@@ -0,0 +1,23 @@
1
+ # WARNING ABOUT GENERATED CODE
2
+ #
3
+ # This file is generated. See the contributing guide for more information:
4
+ # https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
5
+ #
6
+ # WARNING ABOUT GENERATED CODE
7
+
8
+ module Aws::ResourceGroups
9
+ class Resource
10
+
11
+ # @param options ({})
12
+ # @option options [Client] :client
13
+ def initialize(options = {})
14
+ @client = options[:client] || Client.new(options)
15
+ end
16
+
17
+ # @return [Client]
18
+ def client
19
+ @client
20
+ end
21
+
22
+ end
23
+ end
@@ -0,0 +1,623 @@
1
+ # WARNING ABOUT GENERATED CODE
2
+ #
3
+ # This file is generated. See the contributing guide for more information:
4
+ # https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
5
+ #
6
+ # WARNING ABOUT GENERATED CODE
7
+
8
+ module Aws::ResourceGroups
9
+ module Types
10
+
11
+ # @note When making an API call, you may pass CreateGroupInput
12
+ # data as a hash:
13
+ #
14
+ # {
15
+ # name: "GroupName", # required
16
+ # description: "GroupDescription",
17
+ # resource_query: { # required
18
+ # type: "TAG_FILTERS_1_0", # required, accepts TAG_FILTERS_1_0
19
+ # query: "Query", # required
20
+ # },
21
+ # tags: {
22
+ # "TagKey" => "TagValue",
23
+ # },
24
+ # }
25
+ #
26
+ # @!attribute [rw] name
27
+ # The name of the group, which is the identifier of the group in other
28
+ # operations. A resource group name cannot be updated after it is
29
+ # created. A resource group name can have a maximum of 127 characters,
30
+ # including letters, numbers, hyphens, dots, and underscores. The name
31
+ # cannot start with `AWS` or `aws`; these are reserved. A resource
32
+ # group name must be unique within your account.
33
+ # @return [String]
34
+ #
35
+ # @!attribute [rw] description
36
+ # The description of the resource group. Descriptions can have a
37
+ # maximum of 511 characters, including letters, numbers, hyphens,
38
+ # underscores, punctuation, and spaces.
39
+ # @return [String]
40
+ #
41
+ # @!attribute [rw] resource_query
42
+ # The resource query that determines which AWS resources are members
43
+ # of this group.
44
+ # @return [Types::ResourceQuery]
45
+ #
46
+ # @!attribute [rw] tags
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 127
49
+ # characters, and tag values can have a maximum length of 255
50
+ # characters.
51
+ # @return [Hash<String,String>]
52
+ #
53
+ # @see http://docs.aws.amazon.com/goto/WebAPI/resource-groups-2017-11-27/CreateGroupInput AWS API Documentation
54
+ #
55
+ class CreateGroupInput < Struct.new(
56
+ :name,
57
+ :description,
58
+ :resource_query,
59
+ :tags)
60
+ include Aws::Structure
61
+ end
62
+
63
+ # @!attribute [rw] group
64
+ # A full description of the resource group after it is created.
65
+ # @return [Types::Group]
66
+ #
67
+ # @!attribute [rw] resource_query
68
+ # The resource query associated with the group.
69
+ # @return [Types::ResourceQuery]
70
+ #
71
+ # @!attribute [rw] tags
72
+ # The tags associated with the group.
73
+ # @return [Hash<String,String>]
74
+ #
75
+ # @see http://docs.aws.amazon.com/goto/WebAPI/resource-groups-2017-11-27/CreateGroupOutput AWS API Documentation
76
+ #
77
+ class CreateGroupOutput < Struct.new(
78
+ :group,
79
+ :resource_query,
80
+ :tags)
81
+ include Aws::Structure
82
+ end
83
+
84
+ # @note When making an API call, you may pass DeleteGroupInput
85
+ # data as a hash:
86
+ #
87
+ # {
88
+ # group_name: "GroupName", # required
89
+ # }
90
+ #
91
+ # @!attribute [rw] group_name
92
+ # The name of the resource group to delete.
93
+ # @return [String]
94
+ #
95
+ # @see http://docs.aws.amazon.com/goto/WebAPI/resource-groups-2017-11-27/DeleteGroupInput AWS API Documentation
96
+ #
97
+ class DeleteGroupInput < Struct.new(
98
+ :group_name)
99
+ include Aws::Structure
100
+ end
101
+
102
+ # @!attribute [rw] group
103
+ # A full description of the deleted resource group.
104
+ # @return [Types::Group]
105
+ #
106
+ # @see http://docs.aws.amazon.com/goto/WebAPI/resource-groups-2017-11-27/DeleteGroupOutput AWS API Documentation
107
+ #
108
+ class DeleteGroupOutput < Struct.new(
109
+ :group)
110
+ include Aws::Structure
111
+ end
112
+
113
+ # @note When making an API call, you may pass GetGroupInput
114
+ # data as a hash:
115
+ #
116
+ # {
117
+ # group_name: "GroupName", # required
118
+ # }
119
+ #
120
+ # @!attribute [rw] group_name
121
+ # The name of the resource group.
122
+ # @return [String]
123
+ #
124
+ # @see http://docs.aws.amazon.com/goto/WebAPI/resource-groups-2017-11-27/GetGroupInput AWS API Documentation
125
+ #
126
+ class GetGroupInput < Struct.new(
127
+ :group_name)
128
+ include Aws::Structure
129
+ end
130
+
131
+ # @!attribute [rw] group
132
+ # A full description of the resource group.
133
+ # @return [Types::Group]
134
+ #
135
+ # @see http://docs.aws.amazon.com/goto/WebAPI/resource-groups-2017-11-27/GetGroupOutput AWS API Documentation
136
+ #
137
+ class GetGroupOutput < Struct.new(
138
+ :group)
139
+ include Aws::Structure
140
+ end
141
+
142
+ # @note When making an API call, you may pass GetGroupQueryInput
143
+ # data as a hash:
144
+ #
145
+ # {
146
+ # group_name: "GroupName", # required
147
+ # }
148
+ #
149
+ # @!attribute [rw] group_name
150
+ # The name of the resource group.
151
+ # @return [String]
152
+ #
153
+ # @see http://docs.aws.amazon.com/goto/WebAPI/resource-groups-2017-11-27/GetGroupQueryInput AWS API Documentation
154
+ #
155
+ class GetGroupQueryInput < Struct.new(
156
+ :group_name)
157
+ include Aws::Structure
158
+ end
159
+
160
+ # @!attribute [rw] group_query
161
+ # The resource query associated with the specified group.
162
+ # @return [Types::GroupQuery]
163
+ #
164
+ # @see http://docs.aws.amazon.com/goto/WebAPI/resource-groups-2017-11-27/GetGroupQueryOutput AWS API Documentation
165
+ #
166
+ class GetGroupQueryOutput < Struct.new(
167
+ :group_query)
168
+ include Aws::Structure
169
+ end
170
+
171
+ # @note When making an API call, you may pass GetTagsInput
172
+ # data as a hash:
173
+ #
174
+ # {
175
+ # arn: "GroupArn", # required
176
+ # }
177
+ #
178
+ # @!attribute [rw] arn
179
+ # The ARN of the resource for which you want a list of tags. The
180
+ # resource must exist within the account you are using.
181
+ # @return [String]
182
+ #
183
+ # @see http://docs.aws.amazon.com/goto/WebAPI/resource-groups-2017-11-27/GetTagsInput AWS API Documentation
184
+ #
185
+ class GetTagsInput < Struct.new(
186
+ :arn)
187
+ include Aws::Structure
188
+ end
189
+
190
+ # @!attribute [rw] arn
191
+ # The ARN of the tagged resource.
192
+ # @return [String]
193
+ #
194
+ # @!attribute [rw] tags
195
+ # The tags associated with the specified resource.
196
+ # @return [Hash<String,String>]
197
+ #
198
+ # @see http://docs.aws.amazon.com/goto/WebAPI/resource-groups-2017-11-27/GetTagsOutput AWS API Documentation
199
+ #
200
+ class GetTagsOutput < Struct.new(
201
+ :arn,
202
+ :tags)
203
+ include Aws::Structure
204
+ end
205
+
206
+ # A resource group.
207
+ #
208
+ # @!attribute [rw] group_arn
209
+ # The ARN of a resource group.
210
+ # @return [String]
211
+ #
212
+ # @!attribute [rw] name
213
+ # The name of a resource group.
214
+ # @return [String]
215
+ #
216
+ # @!attribute [rw] description
217
+ # The description of the resource group.
218
+ # @return [String]
219
+ #
220
+ # @see http://docs.aws.amazon.com/goto/WebAPI/resource-groups-2017-11-27/Group AWS API Documentation
221
+ #
222
+ class Group < Struct.new(
223
+ :group_arn,
224
+ :name,
225
+ :description)
226
+ include Aws::Structure
227
+ end
228
+
229
+ # The underlying resource query of a resource group. Resources that
230
+ # match query results are part of the group.
231
+ #
232
+ # @!attribute [rw] group_name
233
+ # The name of a resource group that is associated with a specific
234
+ # resource query.
235
+ # @return [String]
236
+ #
237
+ # @!attribute [rw] resource_query
238
+ # The resource query which determines which AWS resources are members
239
+ # of the associated resource group.
240
+ # @return [Types::ResourceQuery]
241
+ #
242
+ # @see http://docs.aws.amazon.com/goto/WebAPI/resource-groups-2017-11-27/GroupQuery AWS API Documentation
243
+ #
244
+ class GroupQuery < Struct.new(
245
+ :group_name,
246
+ :resource_query)
247
+ include Aws::Structure
248
+ end
249
+
250
+ # @note When making an API call, you may pass ListGroupResourcesInput
251
+ # data as a hash:
252
+ #
253
+ # {
254
+ # group_name: "GroupName", # required
255
+ # max_results: 1,
256
+ # next_token: "NextToken",
257
+ # }
258
+ #
259
+ # @!attribute [rw] group_name
260
+ # The name of the resource group.
261
+ # @return [String]
262
+ #
263
+ # @!attribute [rw] max_results
264
+ # The maximum number of group member ARNs that are returned in a
265
+ # single call by ListGroupResources, in paginated output. By default,
266
+ # this number is 50.
267
+ # @return [Integer]
268
+ #
269
+ # @!attribute [rw] next_token
270
+ # The NextToken value that is returned in a paginated
271
+ # ListGroupResources request. To get the next page of results, run the
272
+ # call again, add the NextToken parameter, and specify the NextToken
273
+ # value.
274
+ # @return [String]
275
+ #
276
+ # @see http://docs.aws.amazon.com/goto/WebAPI/resource-groups-2017-11-27/ListGroupResourcesInput AWS API Documentation
277
+ #
278
+ class ListGroupResourcesInput < Struct.new(
279
+ :group_name,
280
+ :max_results,
281
+ :next_token)
282
+ include Aws::Structure
283
+ end
284
+
285
+ # @!attribute [rw] resource_identifiers
286
+ # The ARNs and resource types of resources that are members of the
287
+ # group that you specified.
288
+ # @return [Array<Types::ResourceIdentifier>]
289
+ #
290
+ # @!attribute [rw] next_token
291
+ # The NextToken value to include in a subsequent `ListGroupResources`
292
+ # request, to get more results.
293
+ # @return [String]
294
+ #
295
+ # @see http://docs.aws.amazon.com/goto/WebAPI/resource-groups-2017-11-27/ListGroupResourcesOutput AWS API Documentation
296
+ #
297
+ class ListGroupResourcesOutput < Struct.new(
298
+ :resource_identifiers,
299
+ :next_token)
300
+ include Aws::Structure
301
+ end
302
+
303
+ # @note When making an API call, you may pass ListGroupsInput
304
+ # data as a hash:
305
+ #
306
+ # {
307
+ # max_results: 1,
308
+ # next_token: "NextToken",
309
+ # }
310
+ #
311
+ # @!attribute [rw] max_results
312
+ # The maximum number of resource group results that are returned by
313
+ # ListGroups in paginated output. By default, this number is 50.
314
+ # @return [Integer]
315
+ #
316
+ # @!attribute [rw] next_token
317
+ # The NextToken value that is returned in a paginated `ListGroups`
318
+ # request. To get the next page of results, run the call again, add
319
+ # the NextToken parameter, and specify the NextToken value.
320
+ # @return [String]
321
+ #
322
+ # @see http://docs.aws.amazon.com/goto/WebAPI/resource-groups-2017-11-27/ListGroupsInput AWS API Documentation
323
+ #
324
+ class ListGroupsInput < Struct.new(
325
+ :max_results,
326
+ :next_token)
327
+ include Aws::Structure
328
+ end
329
+
330
+ # @!attribute [rw] groups
331
+ # A list of resource groups.
332
+ # @return [Array<Types::Group>]
333
+ #
334
+ # @!attribute [rw] next_token
335
+ # The NextToken value to include in a subsequent `ListGroups` request,
336
+ # to get more results.
337
+ # @return [String]
338
+ #
339
+ # @see http://docs.aws.amazon.com/goto/WebAPI/resource-groups-2017-11-27/ListGroupsOutput AWS API Documentation
340
+ #
341
+ class ListGroupsOutput < Struct.new(
342
+ :groups,
343
+ :next_token)
344
+ include Aws::Structure
345
+ end
346
+
347
+ # The ARN of a resource, and its resource type.
348
+ #
349
+ # @!attribute [rw] resource_arn
350
+ # The ARN of a resource.
351
+ # @return [String]
352
+ #
353
+ # @!attribute [rw] resource_type
354
+ # The resource type of a resource, such as `AWS::EC2::Instance`.
355
+ # @return [String]
356
+ #
357
+ # @see http://docs.aws.amazon.com/goto/WebAPI/resource-groups-2017-11-27/ResourceIdentifier AWS API Documentation
358
+ #
359
+ class ResourceIdentifier < Struct.new(
360
+ :resource_arn,
361
+ :resource_type)
362
+ include Aws::Structure
363
+ end
364
+
365
+ # The query that is used to define a resource group or a search for
366
+ # resources.
367
+ #
368
+ # @note When making an API call, you may pass ResourceQuery
369
+ # data as a hash:
370
+ #
371
+ # {
372
+ # type: "TAG_FILTERS_1_0", # required, accepts TAG_FILTERS_1_0
373
+ # query: "Query", # required
374
+ # }
375
+ #
376
+ # @!attribute [rw] type
377
+ # The type of the query. The valid value in this release is
378
+ # `TAG_FILTERS_1_0`.
379
+ #
380
+ # <i> <code>TAG_FILTERS_1_0:</code> </i> A JSON syntax that lets you
381
+ # specify a collection of simple tag filters for resource types and
382
+ # tags, as supported by the AWS Tagging API GetResources operation.
383
+ # When more than one element is present, only resources that match all
384
+ # filters are part of the result. If a filter specifies more than one
385
+ # value for a key, a resource matches the filter if its tag value
386
+ # matches any of the specified values.
387
+ # @return [String]
388
+ #
389
+ # @!attribute [rw] query
390
+ # The query that defines a group or a search.
391
+ # @return [String]
392
+ #
393
+ # @see http://docs.aws.amazon.com/goto/WebAPI/resource-groups-2017-11-27/ResourceQuery AWS API Documentation
394
+ #
395
+ class ResourceQuery < Struct.new(
396
+ :type,
397
+ :query)
398
+ include Aws::Structure
399
+ end
400
+
401
+ # @note When making an API call, you may pass SearchResourcesInput
402
+ # data as a hash:
403
+ #
404
+ # {
405
+ # resource_query: { # required
406
+ # type: "TAG_FILTERS_1_0", # required, accepts TAG_FILTERS_1_0
407
+ # query: "Query", # required
408
+ # },
409
+ # max_results: 1,
410
+ # next_token: "NextToken",
411
+ # }
412
+ #
413
+ # @!attribute [rw] resource_query
414
+ # The search query, using the same formats that are supported for
415
+ # resource group definition.
416
+ # @return [Types::ResourceQuery]
417
+ #
418
+ # @!attribute [rw] max_results
419
+ # The maximum number of group member ARNs returned by
420
+ # `SearchResources` in paginated output. By default, this number is
421
+ # 50.
422
+ # @return [Integer]
423
+ #
424
+ # @!attribute [rw] next_token
425
+ # The NextToken value that is returned in a paginated
426
+ # `SearchResources` request. To get the next page of results, run the
427
+ # call again, add the NextToken parameter, and specify the NextToken
428
+ # value.
429
+ # @return [String]
430
+ #
431
+ # @see http://docs.aws.amazon.com/goto/WebAPI/resource-groups-2017-11-27/SearchResourcesInput AWS API Documentation
432
+ #
433
+ class SearchResourcesInput < Struct.new(
434
+ :resource_query,
435
+ :max_results,
436
+ :next_token)
437
+ include Aws::Structure
438
+ end
439
+
440
+ # @!attribute [rw] resource_identifiers
441
+ # The ARNs and resource types of resources that are members of the
442
+ # group that you specified.
443
+ # @return [Array<Types::ResourceIdentifier>]
444
+ #
445
+ # @!attribute [rw] next_token
446
+ # The NextToken value to include in a subsequent `SearchResources`
447
+ # request, to get more results.
448
+ # @return [String]
449
+ #
450
+ # @see http://docs.aws.amazon.com/goto/WebAPI/resource-groups-2017-11-27/SearchResourcesOutput AWS API Documentation
451
+ #
452
+ class SearchResourcesOutput < Struct.new(
453
+ :resource_identifiers,
454
+ :next_token)
455
+ include Aws::Structure
456
+ end
457
+
458
+ # @note When making an API call, you may pass TagInput
459
+ # data as a hash:
460
+ #
461
+ # {
462
+ # arn: "GroupArn", # required
463
+ # tags: { # required
464
+ # "TagKey" => "TagValue",
465
+ # },
466
+ # }
467
+ #
468
+ # @!attribute [rw] arn
469
+ # The ARN of the resource to which to add tags.
470
+ # @return [String]
471
+ #
472
+ # @!attribute [rw] tags
473
+ # The tags to add to the specified resource. A tag is a
474
+ # string-to-string map of key-value pairs. Tag keys can have a maximum
475
+ # character length of 127 characters, and tag values can have a
476
+ # maximum length of 255 characters.
477
+ # @return [Hash<String,String>]
478
+ #
479
+ # @see http://docs.aws.amazon.com/goto/WebAPI/resource-groups-2017-11-27/TagInput AWS API Documentation
480
+ #
481
+ class TagInput < Struct.new(
482
+ :arn,
483
+ :tags)
484
+ include Aws::Structure
485
+ end
486
+
487
+ # @!attribute [rw] arn
488
+ # The ARN of the tagged resource.
489
+ # @return [String]
490
+ #
491
+ # @!attribute [rw] tags
492
+ # The tags that have been added to the specified resource.
493
+ # @return [Hash<String,String>]
494
+ #
495
+ # @see http://docs.aws.amazon.com/goto/WebAPI/resource-groups-2017-11-27/TagOutput AWS API Documentation
496
+ #
497
+ class TagOutput < Struct.new(
498
+ :arn,
499
+ :tags)
500
+ include Aws::Structure
501
+ end
502
+
503
+ # @note When making an API call, you may pass UntagInput
504
+ # data as a hash:
505
+ #
506
+ # {
507
+ # arn: "GroupArn", # required
508
+ # keys: ["TagKey"], # required
509
+ # }
510
+ #
511
+ # @!attribute [rw] arn
512
+ # The ARN of the resource from which to remove tags.
513
+ # @return [String]
514
+ #
515
+ # @!attribute [rw] keys
516
+ # The keys of the tags to be removed.
517
+ # @return [Array<String>]
518
+ #
519
+ # @see http://docs.aws.amazon.com/goto/WebAPI/resource-groups-2017-11-27/UntagInput AWS API Documentation
520
+ #
521
+ class UntagInput < Struct.new(
522
+ :arn,
523
+ :keys)
524
+ include Aws::Structure
525
+ end
526
+
527
+ # @!attribute [rw] arn
528
+ # The ARN of the resource from which tags have been removed.
529
+ # @return [String]
530
+ #
531
+ # @!attribute [rw] keys
532
+ # The keys of tags that have been removed.
533
+ # @return [Array<String>]
534
+ #
535
+ # @see http://docs.aws.amazon.com/goto/WebAPI/resource-groups-2017-11-27/UntagOutput AWS API Documentation
536
+ #
537
+ class UntagOutput < Struct.new(
538
+ :arn,
539
+ :keys)
540
+ include Aws::Structure
541
+ end
542
+
543
+ # @note When making an API call, you may pass UpdateGroupInput
544
+ # data as a hash:
545
+ #
546
+ # {
547
+ # group_name: "GroupName", # required
548
+ # description: "GroupDescription",
549
+ # }
550
+ #
551
+ # @!attribute [rw] group_name
552
+ # The name of the resource group for which you want to update its
553
+ # description.
554
+ # @return [String]
555
+ #
556
+ # @!attribute [rw] description
557
+ # The description of the resource group. Descriptions can have a
558
+ # maximum of 511 characters, including letters, numbers, hyphens,
559
+ # underscores, punctuation, and spaces.
560
+ # @return [String]
561
+ #
562
+ # @see http://docs.aws.amazon.com/goto/WebAPI/resource-groups-2017-11-27/UpdateGroupInput AWS API Documentation
563
+ #
564
+ class UpdateGroupInput < Struct.new(
565
+ :group_name,
566
+ :description)
567
+ include Aws::Structure
568
+ end
569
+
570
+ # @!attribute [rw] group
571
+ # The full description of the resource group after it has been
572
+ # updated.
573
+ # @return [Types::Group]
574
+ #
575
+ # @see http://docs.aws.amazon.com/goto/WebAPI/resource-groups-2017-11-27/UpdateGroupOutput AWS API Documentation
576
+ #
577
+ class UpdateGroupOutput < Struct.new(
578
+ :group)
579
+ include Aws::Structure
580
+ end
581
+
582
+ # @note When making an API call, you may pass UpdateGroupQueryInput
583
+ # data as a hash:
584
+ #
585
+ # {
586
+ # group_name: "GroupName", # required
587
+ # resource_query: { # required
588
+ # type: "TAG_FILTERS_1_0", # required, accepts TAG_FILTERS_1_0
589
+ # query: "Query", # required
590
+ # },
591
+ # }
592
+ #
593
+ # @!attribute [rw] group_name
594
+ # The name of the resource group for which you want to edit the query.
595
+ # @return [String]
596
+ #
597
+ # @!attribute [rw] resource_query
598
+ # The resource query that determines which AWS resources are members
599
+ # of the resource group.
600
+ # @return [Types::ResourceQuery]
601
+ #
602
+ # @see http://docs.aws.amazon.com/goto/WebAPI/resource-groups-2017-11-27/UpdateGroupQueryInput AWS API Documentation
603
+ #
604
+ class UpdateGroupQueryInput < Struct.new(
605
+ :group_name,
606
+ :resource_query)
607
+ include Aws::Structure
608
+ end
609
+
610
+ # @!attribute [rw] group_query
611
+ # The resource query associated with the resource group after the
612
+ # update.
613
+ # @return [Types::GroupQuery]
614
+ #
615
+ # @see http://docs.aws.amazon.com/goto/WebAPI/resource-groups-2017-11-27/UpdateGroupQueryOutput AWS API Documentation
616
+ #
617
+ class UpdateGroupQueryOutput < Struct.new(
618
+ :group_query)
619
+ include Aws::Structure
620
+ end
621
+
622
+ end
623
+ end